/* TH55 — patch layer (โหลดเป็นเลเยอร์สุดท้าย)
   เป้าหมาย: ความชัดเจนของ CTA, ลำดับชั้นสี/ตัวอักษร, ระยะห่างบนมือถือ */

:root{
  --tabbar-h:64px;
  --surface-1:#140707;
  --surface-2:#1d0b0b;
  --surface-3:#0b0404;
  --line-soft:#4a2a1c;
  --accent-red:#c4121f;
  --gold-300:#f3dca6;
  --gold-400:#e2bb6a;
  --gold-500:#c2913f;
  --text-secondary:#c6ae86;
  --font-size-body:1rem;
  --line-height-body:1.7;
  --space-2:.5rem;
  --space-4:1rem;
  --space-6:1.5rem;
  --space-8:2rem;
  --radius-lg:16px;
}

body{font-size:var(--font-size-body);line-height:var(--line-height-body)}

/* ---------- 1. แถบบนสุดให้กระชับ ---------- */
.announcement{padding-block:var(--space-2);font-size:.8125rem;min-height:0}
.announcement p{font-size:.8125rem;line-height:1.6}
.announcement>span{font-size:18px}
.announcement>a{font-size:.8125rem;font-weight:700;color:var(--gold-400);white-space:nowrap}
.navigation{height:52px}

/* ---------- 2. CTA: ปุ่มหลักหนึ่งเดียวต่อหนึ่งส่วน ---------- */
.cta-btn{border-radius:10px;letter-spacing:.3px}
.header-actions .cta-register{min-height:44px;padding:11px 22px;font-size:13px;background:linear-gradient(#e2493a,#b00d16);border-color:#ffb37c;box-shadow:0 6px 20px rgba(201,27,45,.32)}
.header-actions .cta-login{min-height:44px;padding:11px 18px;font-size:13px;background:transparent;border:1px solid var(--gold-500);color:var(--gold-300)}
.header-actions .cta-login:hover{background:rgba(226,187,106,.12);color:#fff1c8;border-color:var(--gold-400)}

.cta-actions{gap:14px;margin-top:22px;align-items:stretch}
.cta-actions .cta-register{min-height:54px;padding:15px 30px;font-size:15px;font-weight:700;background:linear-gradient(#e2493a,#ae0c15);border-color:#ffb37c;box-shadow:0 12px 30px rgba(201,27,45,.38)}
.cta-actions .cta-register:hover{filter:brightness(1.08);transform:translateY(-2px)}

/* ปุ่มรองในฮีโร่ = ghost (ไม่แย่งความสนใจจากปุ่มสมัคร) */
.sky-hero .gold-button{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:15px 26px;font-size:14px;font-weight:700;border-radius:10px;background:transparent;border:1px solid var(--gold-500);color:var(--gold-300);box-shadow:none;text-shadow:none}
.sky-hero .gold-button:hover{background:rgba(226,187,106,.12);border-color:var(--gold-400);color:#fff1c8}

/* ลิงก์ CTA รองแบบข้อความ ให้อ่านออกว่าเป็นปุ่ม */
.cta-band .cta-secondary{display:inline-flex;align-items:center;min-height:54px;padding:0 6px;font-size:14px;color:var(--gold-300);border-bottom:1px solid rgba(226,187,106,.5)}
.cta-band .cta-secondary:hover{color:#fff1c8;border-bottom-color:var(--gold-400)}

/* ปุ่มท้ายเว็บ = ghost */
footer nav .cta-btn{background:transparent;border:1px solid var(--gold-500);color:var(--gold-300);min-height:44px;padding:11px 20px;font-size:13px}
footer nav .cta-btn:hover{background:rgba(226,187,106,.12);color:#fff1c8}

.cta-note{font-size:.8125rem;line-height:1.7;color:var(--text-secondary);margin-top:14px}

/* ---------- 3. ฮีโร่: สมดุลคอลัมน์และหัวเรื่อง ---------- */
.sky-hero{min-height:430px}
.sky-hero>div{width:min(620px,56%);padding:56px 0 48px var(--space-8)}
.sky-hero p{font-size:.75rem;letter-spacing:.12em;color:var(--gold-400);font-weight:700;margin-bottom:14px}
.sky-hero h2{font-size:clamp(2.2rem,4.2vw,3.5rem);line-height:1.25;max-width:18ch}
.sky-hero strong{display:inline;font-size:1em}
.sky-hero div>span{font-size:1rem;line-height:1.8;max-width:48ch;margin-top:14px}

/* ---------- 4. ตัวอักษรไทยอ่านง่ายขึ้น ---------- */
.eyebrow{color:var(--gold-400);font-size:.75rem;letter-spacing:.12em;font-weight:700;margin-bottom:10px}
.cta-band p,.article-grid p,.about p:not(.eyebrow),.faq details p,.card-note{font-size:var(--font-size-body);line-height:var(--line-height-body)}
.cta-band p{color:var(--text-secondary)}
.article-grid p,.faq details p{color:var(--text-secondary)}
.faq summary{font-size:1rem;line-height:1.6;padding-right:8px}
.caption{font-size:.8125rem;line-height:1.7;color:#9a8457}

/* ---------- 5. พื้นหลังแยกชั้นของแต่ละส่วน ---------- */
#explore{background:var(--surface-3);border:1px solid #33181a;border-radius:var(--radius-lg);padding:28px 26px 32px;margin-top:26px}
#journal{display:block;background:var(--surface-1);border:1px solid #33181a;border-radius:var(--radius-lg);padding:26px;margin:0 0 42px}
#journal .article-grid{margin-bottom:0}
.cta-band{background:linear-gradient(110deg,var(--surface-2),#120606 65%,#271010);border-color:#8a5530}
.about{background:var(--surface-1)}
.faq{background:var(--surface-3);border:1px solid #33181a;border-radius:var(--radius-lg);padding:30px 26px;margin-bottom:46px}

/* ---------- 6. การ์ดคอลเลกชัน: สัดส่วนกะทัดรัด + มีเนื้อหา ---------- */
.game-card{background:var(--surface-1);border-color:#5d3522}
.game-card .icon-cover{aspect-ratio:4/3;background:linear-gradient(155deg,var(--surface-2),var(--surface-3) 72%);border-bottom:1px solid var(--line-soft)}
.game-card .icon-cover:before{width:92px;height:92px;border-color:rgba(226,187,106,.22);background:rgba(226,187,106,.05);box-shadow:none}
.category-icon{width:56px;height:56px;color:var(--gold-400)}
.game-card .icon-cover>span{opacity:1;left:auto;right:10px;bottom:10px;background:rgba(10,4,4,.72);border:1px solid rgba(226,187,106,.45);color:var(--gold-300);font-size:.75rem;padding:6px 12px;font-weight:700}
.game-card:hover .icon-cover>span{background:rgba(196,18,31,.85);border-color:#ffb37c;color:#fff2de}
.game-card h3{background:none;border-top:0;text-align:left;font-size:1rem;font-weight:700;color:#ecd6a4;padding:14px 14px 6px;min-height:0;display:block}
.card-note{margin:0;padding:0 14px 16px;font-size:.8125rem;line-height:1.6;color:var(--text-secondary)}

/* ---------- 7. ตัวกรอง / ปุ่มเล็ก ให้แตะง่าย ---------- */
.filters button{min-height:44px;padding:.625rem 1rem;font-size:.9375rem;border-radius:10px}
.section-heading .outline{min-height:44px;padding:.625rem 1.1rem;font-size:.875rem;font-weight:700}
.page-title>a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:700;color:var(--gold-400)}

/* ---------- 8. แถบฟังก์ชัน: เส้นคั่นทองและความกว้างไม่เท่ากัน ---------- */
.features>div{grid-template-columns:1.25fr 1fr 1fr 1.15fr}
.features a{border-right:1px solid rgba(194,145,63,.35)}
.features a:last-child{border-right:0}
.features b{font-size:.9375rem}
.features small{font-size:.8125rem;line-height:1.6}

/* ---------- 9. บทความ: 1 ใหญ่ + 2 เล็ก ---------- */
.article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.article-grid article:first-child{grid-row:span 2;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(140deg,#3a1410,#140606)}
.article-grid article:first-child h3{font-size:1.75rem}
.article-grid a{min-height:44px;display:inline-flex;align-items:center;font-size:.875rem;color:var(--gold-400)}

/* ---------- 10. FAQ: คอลัมน์ซ้ายมีเนื้อหา ---------- */
.faq{grid-template-columns:1fr 1.4fr;gap:46px}
.faq>div:first-child{position:sticky;top:96px;align-self:start}
.faq-intro{font-size:.9375rem;line-height:1.8;color:var(--text-secondary);margin-top:14px}
.faq .text-link{margin-top:12px}

/* ---------- 11. ส่วน "รู้จัก" ใช้ภาพจริงแทนกล่องโลโก้ ---------- */
.about-media{padding:0;border:0;background:none;overflow:hidden;border-radius:var(--radius-lg);position:relative;display:block}
.about-media img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-lg);display:block}
.about-media small{position:absolute;left:14px;bottom:12px;margin:0;font-size:.6875rem;letter-spacing:.12em;color:var(--gold-300);background:rgba(10,4,4,.6);padding:6px 10px;border-radius:8px}

/* ---------- 12. ความน่าเชื่อถือ: การเปิดเผยข้อมูล + ทีมงาน ---------- */
.disclosure{color:var(--text-secondary);font-size:.875rem;line-height:1.7;border-left:3px solid var(--gold-500);padding-inline-start:var(--space-4)}
footer>.disclosure{width:100%;border-top:0}
.footer-editor{flex:1 1 280px;min-width:240px;font-size:.875rem;line-height:1.7;color:var(--text-secondary)}
.footer-editor b{display:block;color:var(--gold-300);font-size:.9375rem;margin-bottom:6px}
.footer-editor p{margin:0 0 6px}
.footer-editor a{color:var(--gold-400);font-weight:700}
.footer-editor a:hover{color:#fff1c8;text-decoration:underline}

/* ---------- 13. มือถือ ---------- */
@media(max-width:768px){
  body{padding-bottom:calc(var(--tabbar-h) + var(--space-6))}
  footer{padding-bottom:calc(var(--space-6) + env(safe-area-inset-bottom,0px))}
  .mobile-bottom{min-height:var(--tabbar-h)}
  .toast{bottom:calc(var(--tabbar-h) + 18px)}

  .header-actions .cta-btn{min-height:44px;padding:10px 14px;font-size:12px}
  .header-actions .cta-full{display:inline}
  .header-actions .cta-short{display:none}

  .sky-hero{min-height:320px}
  .sky-hero>div{width:78%;padding:34px 0 26px 6%}
  .sky-hero h2{font-size:clamp(1.65rem,7vw,2.1rem);max-width:none}
  .sky-hero div>span{font-size:.9375rem;max-width:none}
  .cta-actions{margin-top:18px}
  .cta-actions .cta-btn{flex:1 1 100%;min-height:52px;font-size:14px}
  .cta-band .cta-secondary{min-height:48px;justify-content:center;width:100%}

  .filters{mask-image:linear-gradient(90deg,#000 86%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);padding-right:10px}
  .filters button{min-height:44px;padding:.625rem 1rem;font-size:.9375rem}

  #explore{padding:20px 16px 24px;margin-top:18px}
  #journal{padding:18px;margin-bottom:28px}
  .faq{grid-template-columns:1fr;gap:16px;padding:20px 16px;margin-bottom:28px}
  .faq>div:first-child{position:static}
  .faq summary{font-size:.9375rem}
  .article-grid{grid-template-columns:1fr}
  .article-grid article:first-child{grid-row:auto}
  .article-grid article:first-child h3{font-size:1.35rem}
  .features>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .features a{border-right:0}
  .game-card h3{font-size:.875rem;padding:10px 10px 4px}
  .card-note{font-size:.75rem;padding:0 10px 12px}
  .game-card .icon-cover>span{font-size:.625rem;padding:5px 8px;right:6px;bottom:6px}
  .category-icon{width:44px;height:44px}
  .game-card .icon-cover:before{width:72px;height:72px}
  .mobile-bottom .bottom-cta{background:linear-gradient(#e2493a,#ae0c15);color:#fff2de;border:1px solid #ffb37c}
  .mobile-bottom .bottom-cta span{color:#fff2de}
}
