/* Mass-RO · หน้ากิจกรรม (like / whiteeyes / poring / endless / battle)
   ธีมเดียวกับ Guild War: กล่องสีอ่อนโปร่ง · ขอบทอง #E0B236 · หัวข้อแท็บแฟ้มสีน้ำเงิน */
* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: #E0B236 rgba(255,255,255,.8); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.8); }
::-webkit-scrollbar-thumb { background: #E0B236; border-radius: 6px; border: 2px solid rgba(201,147,40,.38); }

body {
  margin: 0; color: #5d4d26; font-family: Tahoma, sans-serif; font-size: 15px; line-height: 1.75;
  background: linear-gradient(180deg, #eaf1fb 0%, #f6f3ec 45%, #fbf1e1 100%);
}
a { color: #8e6c0b; font-weight: bold; }
a:hover { color: #b8860b; }
b, strong { color: #8e6c0b; }
.k, h1, h2, .ftab, .when b, .tl b, .box b, .end, .eyebrow, .badge, .big, .step b { font-family: 'Kanit', Tahoma, sans-serif; }

.wrap { max-width: 880px; margin: 0 auto; padding: 14px 16px 34px; }

/* ภาพหัวกิจกรรม */
/* ขนาดเท่าสไลด์หน้า preload (480x235) */
.banner { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; border-radius: 14px; border: 2px solid #E0B236;
  box-shadow: 0 10px 28px rgba(20,40,90,.16), 0 0 0 4px rgba(255,255,255,.55); }

/* hero */
.hero { text-align: center; margin: 22px 0 6px; }
.eyebrow { font-weight: 500; letter-spacing: 4px; color: #705b29; font-size: 13px; }
.hero h1 { font-weight: 800; margin: 2px 0 0; font-size: clamp(26px, 5vw, 42px); line-height: 1.2;
  background: linear-gradient(180deg, #a8860f, #8e6c0b 45%, #6f4f12); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 8px rgba(20,40,90,.16)); }
.hero h1 .s2 { display: block; font-size: .62em; font-weight: 700; color: #242838; -webkit-text-fill-color: #242838; }
.hero .sub { color: #6d5b2c; font-size: 15.5px; margin-top: 6px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.badge { border: 1px solid rgba(224,178,54,.6); background: rgba(255,255,255,.65); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: #8e6c0b; }

/* กล่องเวลา / จุดเด่น */
.when { margin: 16px auto 4px; max-width: 560px; text-align: center; padding: 14px 18px; border-radius: 16px; border: 2px solid #E0B236;
  background: linear-gradient(180deg, rgba(255,243,207,.92), rgba(255,250,236,.85)); box-shadow: 0 0 22px rgba(224,178,54,.22); }
.when b { display: block; font-size: 25px; font-weight: 800; color: #8e6c0b; line-height: 1.3; }
.when span { font-size: 14px; color: #6d5b2c; }
.when span b { display: inline; font-size: inherit; font-weight: 700; }

/* หัวข้อแบบแท็บแฟ้มสีน้ำเงิน + กล่องเนื้อหา */
.sec { margin-top: 34px; }
.ftab { position: relative; display: inline-flex; align-items: baseline; gap: 10px; margin-left: 16px; padding: 7px 20px 6px;
  border: 3px solid transparent; border-bottom: 0; border-radius: 13px 13px 0 0;
  background: linear-gradient(180deg, #2d56b0, #17306f) padding-box, linear-gradient(180deg, #fff2c2, #f2c14e 45%, #c98e22 80%, #8a5a12) border-box;
  box-shadow: 0 -5px 14px rgba(20,40,90,.18); font-size: 19px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.ftab span { background: linear-gradient(180deg, #fff6d5, #ffd866 55%, #e0a83a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.ftab i { font-style: normal; }
.card { position: relative; background: rgba(255,255,255,.7); border: 2px solid #E0B236; border-radius: 16px; box-shadow: 0 0 24px rgba(224,178,54,.14);
  padding: 18px 22px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ftab + .card { border-top-left-radius: 4px; margin-top: -2px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.story { font-size: 15px; line-height: 1.85; color: #5d4d26; }
.cap { font-size: 13.5px; color: #705b29; margin-bottom: 10px; }

/* ไทม์ไลน์ 4 ช่อง */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tl div { text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid rgba(224,178,54,.5); background: rgba(255,255,255,.6); }
.tl b { display: block; color: #8e6c0b; font-size: 17px; font-weight: 700; line-height: 1.3; }
.tl span { display: block; font-size: 12.5px; color: #6d5b2c; line-height: 1.5; margin-top: 2px; }
.tl div.max { border: 2px solid #E0B236; background: linear-gradient(180deg, #FFE9A8, #f6d77a); box-shadow: 0 0 14px rgba(224,178,54,.35); }
.tl div.max b { color: #5a3a06; }
.tl div.max span { color: #5d4512; }
.bar { height: 6px; border-radius: 99px; margin: 12px 0 0; background: linear-gradient(90deg, rgba(224,178,54,.15), #E0B236 70%, #fff2c2); }
.big { margin-top: 12px; text-align: center; padding: 10px 14px; border-radius: 12px; font-size: 17px; color: #242838;
  background: linear-gradient(90deg, rgba(224,178,54,.05), rgba(224,178,54,.25), rgba(224,178,54,.05)); }

/* กล่องจุดเด่น 2 คอลัมน์ */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(224,178,54,.45); background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,247,226,.7)); }
.box i { font-style: normal; font-size: 26px; line-height: 1; }
.box b { display: block; color: #8e6c0b; font-size: 17px; font-weight: 700; margin: 6px 0 2px; }
.box span { display: block; font-size: 13.5px; color: #6b592e; line-height: 1.65; }

/* รายการ */
ul.list { margin: 0; padding: 0; list-style: none; }
ul.list li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px dashed rgba(224,178,54,.3); font-size: 14.5px; line-height: 1.6; }
ul.list li:last-child { border-bottom: 0; }
ul.list li::before { content: "⚔"; position: absolute; left: 4px; top: 7px; color: #c99a2e; }
ul.list.rule li::before { content: "✦"; }

.why { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1.5px dashed rgba(201,147,40,.6); background: rgba(255,243,207,.6); font-size: 14px; line-height: 1.7; }
.warn { margin-top: 18px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid #f0a58f; background: rgba(255,236,229,.8); }
.warn > b { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-size: 17px; color: #9c3216; margin-bottom: 4px; }
.warn ul.list li { border-bottom-color: rgba(240,165,143,.4); }
.warn ul.list li::before { content: "!"; font-weight: bold; color: #c2461f; left: 10px; }

/* รูปประกอบ */
.pic { display: block; max-width: 100%; height: auto; margin: 16px auto 0; border-radius: 14px; border: 2px solid #E0B236; box-shadow: 0 8px 20px rgba(20,40,90,.14); }

/* ปิดท้าย */
.end { text-align: center; margin-top: 30px; padding: 18px 16px; border-radius: 16px; font-size: 21px; font-weight: 700; color: #8e6c0b;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,243,207,.8)); border: 2px solid #E0B236; box-shadow: 0 0 22px rgba(224,178,54,.2); }
.end small { display: block; font-family: Tahoma, sans-serif; font-size: 14px; font-weight: normal; color: #6d5b2c; margin-top: 4px; }

/* ตาขาว: รายการพลัง 44 อย่าง */
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ab .g { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(224,178,54,.45); background: rgba(255,255,255,.7); }
.ab .g > b { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-size: 16px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(224,178,54,.35); }
.ab ol { margin: 0; padding: 0; list-style: none; }
.ab li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.55; padding: 2px 0; color: #5d4d26; }
.ab li::before { content: attr(data-n); flex: none; width: 28px; text-align: right; color: #a8860f; font-weight: bold; }
.ab .g.hot { border: 2px solid #E0B236; background: linear-gradient(180deg, rgba(255,243,207,.95), rgba(255,255,255,.75)); }

/* Like & Share: รางวัล + ขั้นตอน */
.prize { text-align: center; }
.prize .t { font-family: 'Kanit', Tahoma, sans-serif; font-size: 20px; font-weight: 700; color: #8e6c0b; }
.prize .n { font-size: 13px; color: #705b29; margin-bottom: 8px; }
.prize .items { font-size: 15.5px; font-weight: bold; color: #242838; line-height: 1.8; }
.prize .cash { display: inline-block; margin-top: 8px; padding: 5px 18px; border-radius: 999px; font-family: 'Kanit', Tahoma, sans-serif; font-size: 18px; font-weight: 700;
  color: #241a08; border: 1px solid #FFD866; background: linear-gradient(180deg, #FFE9A8, #E0B236 60%, #f8eee2); box-shadow: 0 0 14px rgba(224,178,54,.3); }
.medal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.medal div { padding: 12px 6px; border-radius: 12px; border: 1px solid rgba(224,178,54,.5); background: rgba(255,255,255,.7); font-size: 13.5px; color: #6d5b2c; }
.medal div:first-child { border: 2px solid #E0B236; background: linear-gradient(180deg, #FFF3CF, #fff); }
.medal b { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-size: 22px; color: #8e6c0b; line-height: 1.3; }
.steps { counter-reset: s; }
.step { position: relative; padding: 14px 0 16px 50px; border-bottom: 1px dashed rgba(224,178,54,.35); }
.step:last-child { border-bottom: 0; padding-bottom: 4px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, #FFE9A8, #E0B236); border: 1px solid #c99a2e; color: #241a08; font-family: 'Kanit', Tahoma, sans-serif; font-weight: 800; font-size: 17px;
  text-align: center; line-height: 32px; }
.step .pic { margin: 10px 0 0; }
.step .pic + .pic { margin-top: 10px; }
.hl { display: inline-block; padding: 1px 10px; border-radius: 8px; background: rgba(224,178,54,.18); color: #7a5210; font-weight: bold; }
.ok { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #7CE38B; background: rgba(124,227,139,.12); color: #1d6e2a; font-weight: bold; text-align: center; }
.note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1.5px dashed rgba(201,147,40,.6); background: rgba(255,243,207,.6); font-size: 14px; color: #6d4a10; text-align: center; }

@media (max-width: 640px) {
  .wrap { padding: 10px 10px 26px; }
  .tl { grid-template-columns: 1fr 1fr; }
  .grid, .ab { grid-template-columns: 1fr; }
  .card { padding: 14px 14px; }
  .ftab { font-size: 16px; padding: 6px 14px 5px; margin-left: 10px; white-space: normal; }
  .when b { font-size: 21px; }
  .medal b { font-size: 18px; }
}

/* ===== Like & Share (แผนใหม่): ของรางวัล + ฟอร์ม ===== */
.center { text-align: center; }
.when .joined { display: inline-block; margin-top: 8px; padding: 3px 14px; border-radius: 999px; background: #fff; border: 1px solid #E0B236; font-family: 'Kanit', Tahoma, sans-serif; font-weight: 600; color: #b8460f; }
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gifts div { position: relative; text-align: center; padding: 16px 10px 14px; border-radius: 14px; border: 1px solid rgba(224,178,54,.5); background: linear-gradient(180deg, #fff, rgba(255,243,207,.75)); }
.gifts i { font-style: normal; font-size: 34px; line-height: 1; display: block; }
.gifts b { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-size: 17px; color: #242838; margin-top: 6px; white-space: nowrap; }
.gifts span { display: block; font-size: 13px; color: #6d5b2c; }
.gifts em { position: absolute; top: 8px; right: 10px; font-style: normal; font-family: 'Kanit', Tahoma, sans-serif; font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(180deg, #f2c14e, #c98e22); border-radius: 10px; padding: 0 9px; box-shadow: 0 3px 8px rgba(201,147,40,.35); }
.prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pz { text-align: center; padding: 14px 6px 12px; border-radius: 14px; border: 1px solid rgba(224,178,54,.5); background: rgba(255,255,255,.8); }
.pz-n { display: block; font-size: 12.5px; color: #705b29; }
.pz b { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-size: 22px; font-weight: 800; color: #8e6c0b; line-height: 1.25; margin: 4px 0 2px; white-space: nowrap; }
.pz small { display: block; font-size: 12px; color: #6d5b2c; }
.pz.top { border: 2px solid #E0B236; background: linear-gradient(180deg, #FFE9A8, #fff3cf); box-shadow: 0 0 18px rgba(224,178,54,.4); transform: translateY(-4px); }
.pz.top b { color: #6e4508; font-size: 25px; }
.pz.hat { border: 2px solid #7fa8f0; background: linear-gradient(180deg, #e5eeff, #fff); }
.pz.hat b { color: #1b3a86; font-size: 19px; }
.steps .step > b:first-child { display: inline; color: #8e6c0b; font-size: 16px; }
.lsf .fg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.lsf label { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-weight: 500; color: #8e6c0b; font-size: 14.5px; }
.lsf label em { font-style: normal; color: #b8460f; }
.lsf label small { color: #8a7a55; font-weight: 400; }
.lsf input[type=text], .lsf input[type=url] { display: block; width: 100%; margin-top: 4px; font: 15px Tahoma, sans-serif; color: #3d3220; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid rgba(224,178,54,.55); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.lsf input:focus { border-color: #E0B236; box-shadow: 0 0 0 3px rgba(224,178,54,.2); }
.lsf input.bad { border-color: #e2643f; box-shadow: 0 0 0 3px rgba(226,100,63,.15); }
.howlink { margin-top: 12px; padding: 9px 14px; border-radius: 10px; background: rgba(229,238,255,.8); border: 1px solid #b8cdf3; color: #1c3d73; font-size: 13.5px; }
.howlink b { color: #1b3a86; }
.lsf .agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-family: Tahoma, sans-serif; font-weight: normal; font-size: 14px; color: #5d4d26; cursor: pointer; }
.lsf .agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: #E0B236; flex: none; }
.lsf .agree.bad, .lsf .agree:has(input.bad) span { color: #b8460f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ferr { margin-top: 12px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid #f0a58f; background: rgba(255,236,229,.9); color: #9c3216; font-size: 14px; }
.sbtn { display: block; width: 100%; max-width: 420px; margin: 16px auto 0; cursor: pointer; font-family: 'Kanit', Tahoma, sans-serif; font-weight: 700; font-size: 19px; padding: 13px 20px; border-radius: 14px;
  color: #241a08; border: 1px solid #FFD866; background: linear-gradient(180deg, #FFE9A8, #E0B236 55%, #c98e22); box-shadow: 0 6px 18px rgba(224,178,54,.4); transition: transform .15s, filter .15s; }
.sbtn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sbtn[disabled] { opacity: .65; cursor: wait; transform: none; }
.okbox { text-align: center; padding: 20px 16px; border-radius: 14px; border: 2px solid #7CE38B; background: rgba(124,227,139,.14); color: #1d6e2a; font-size: 15px; line-height: 1.8; }
.okbox b { display: block; font-family: 'Kanit', Tahoma, sans-serif; font-size: 24px; color: #168d25; }
.okbox span { font-weight: bold; }
@media (max-width: 760px) {
  .prizes { grid-template-columns: repeat(2, 1fr); }
  .pz.top { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .gifts { grid-template-columns: 1fr; }
  .gifts div { display: grid; grid-template-columns: 44px 1fr; text-align: left; align-items: center; column-gap: 10px; padding: 12px 14px; }
  .gifts i { grid-row: span 2; font-size: 30px; }
  .gifts b { margin-top: 0; }
  .lsf .fg { grid-template-columns: 1fr; }
  .pz b { font-size: 19px; }
}
[hidden] { display: none !important; }
.nw { white-space: nowrap !important; }
.cap, .big, .when span, .sub, .end, .story, .box span, ul.list li, .step { text-wrap-style: pretty; }
@media (max-width: 640px) { .hero h1 { font-size: 30px; } .hero h1 .s2 { font-size: 19px; } .big { font-size: 15.5px; } .end { font-size: 18px; } }
.when b span, .when span span { font-size: inherit; color: inherit; }

/* ===== กระชับ: ลดช่องว่าง ให้เลื่อนน้อยลง (v5) ===== */
.wrap { padding: 10px 16px 22px; }
.hero { margin: 12px 0 2px; }
.hero h1 { line-height: 1.15; }
.hero .sub { margin-top: 3px; }
.badges { margin: 8px 0 2px; gap: 6px; }
.badge { padding: 2px 12px; font-size: 13.5px; }
.when { margin: 10px auto 2px; padding: 9px 16px; }
.when b { font-size: 22px; }
.sec { margin-top: 20px; }
.ftab { padding: 5px 18px 4px; }
.card { padding: 14px 18px; }
.story { line-height: 1.7; }
.cap { margin-bottom: 8px; }
.tl div { padding: 8px 6px; }
.big { margin-top: 8px; padding: 7px 12px; font-size: 16px; }
.grid { gap: 8px; }
.box { padding: 10px 14px; }
.box i { font-size: 22px; }
.box b { margin: 3px 0 1px; font-size: 16px; }
.box span { line-height: 1.5; }
ul.list li { padding: 5px 0 5px 28px; line-height: 1.5; }
ul.list li::before { top: 5px; }
.why, .note, .ok { margin-top: 10px; padding: 8px 14px; }
.warn { margin-top: 12px; padding: 10px 14px; }
.pic { margin-top: 10px; }
.end { margin-top: 18px; padding: 12px 14px; font-size: 19px; }
.medal { margin-top: 8px; gap: 8px; }
.medal div { padding: 8px 6px; }
.step { padding: 9px 0 10px 46px; }
.step::before { top: 8px; }
.gifts { gap: 8px; }
.gifts div { padding: 10px 8px 9px; }
.prizes { gap: 8px; }
.pz { padding: 10px 6px 9px; }
.lsf .fg { gap: 8px 14px; }
.lsf input[type=text], .lsf input[type=url] { padding: 8px 12px; }
.howlink { margin-top: 8px; padding: 7px 12px; }
@media (max-width: 640px) {
  .wrap { padding: 8px 10px 18px; }
  .sec { margin-top: 16px; }
  .card { padding: 11px 12px; }
  .when b { font-size: 19px; }
  .end { font-size: 17px; }
}
.box { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; }
.box i { grid-row: span 2; margin-top: 2px; }
.box b { margin-top: 0; }
.pic { max-width: min(100%, 520px); }
.step .pic { max-width: min(100%, 460px); }
