@import url("fonts/fonts.css");
/* FireMS - layout modelled on the Duolingo landing (user pick 10-15, inspo "duolingo-com"): white page, character
   cluster hero, stacked chunky pill buttons, alternating feature rows, dark promo band, brand-colour closing wave.
   Brand colour = fire orange instead of green. No external fonts/CDNs. */
:root {
  --brand: #ff7a1a; --brand-d: #d95f00; --brand-l: #fff1e5; --sun: #ffc23d; --ink: #3c3c3c; --muted: #777;
  --line: #e5e5e5; --sky: #1cb0f6; --sky-d: #1899d6; --navy: #1b1340; --white: #fff; --ok: #58cc02;
  --font: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --head: "Kanit", "IBM Plex Sans Thai", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font: 400 17px/1.7 var(--font); color: var(--ink); background: var(--white); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; width: 100%; }
a { color: var(--sky-d); text-decoration: none; }
img.px { image-rendering: pixelated; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.25; }

/* nav */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 2px solid transparent; transition: border-color .2s; }
.top.solid { border-color: var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 22px; position: relative; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 30px; letter-spacing: -.5px; color: var(--brand); }
.logo img { width: 44px; height: 44px; }
.nav { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.nav a:hover, .nav a.on { color: var(--brand); }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: 18px; color: var(--ink); }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; background: var(--white); border-bottom: 2px solid var(--line); padding: 12px 20px 18px; }
  .nav.open { display: flex; }
}

/* chunky buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; min-width: 250px; padding: 14px 24px; border-radius: 16px; font: 600 16px/1.2 var(--font); letter-spacing: .6px;
  color: var(--white); background: var(--brand); border: 0; box-shadow: 0 5px 0 var(--brand-d); cursor: pointer; transition: filter .15s, transform .08s, box-shadow .08s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--brand-d); }
.btn.ghost { color: var(--sky-d); background: var(--white); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn.ghost:active { box-shadow: 0 0 0 var(--line); transform: translateY(4px); }
.btn.white { color: var(--brand-d); background: var(--white); box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.btn.sm { min-width: 0; padding: 10px 18px; font-size: 14px; border-radius: 12px; box-shadow: 0 4px 0 var(--brand-d); }
.stack { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 330px; max-width: 100%; }
.stack .btn { width: 100%; }

/* hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.cluster { position: relative; aspect-ratio: 1 / .92; }
.cluster img { position: absolute; filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); transition: transform .25s cubic-bezier(.3,1.6,.5,1); animation: pop .6s cubic-bezier(.3,1.6,.5,1) both; }
.cluster img:hover { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 { font-size: 34px; font-weight: 600; color: var(--ink); max-width: 420px; }
.live { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: #eaffd9; color: #3f8f00; font-weight: 600; font-size: 15px; }
.live .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(88,204,2,.6); animation: ping 1.8s infinite; }
.live.off { background: #ffe9e9; color: #c23b3b; }
.live.off .pulse { background: #ff4b4b; animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(88,204,2,0); } 100% { box-shadow: 0 0 0 0 rgba(88,204,2,0); } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .cluster { max-width: 460px; width: 100%; margin: 0 auto; } .hero-copy h1 { font-size: 28px; } }

/* job strip */
.strip { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.strip-in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 10px 8px; }
.strip button.arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: #afafaf; font-size: 22px; cursor: pointer; }
.strip button.arrow:hover { color: var(--ink); background: #f4f4f4; }
.strip .track { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.strip .track::-webkit-scrollbar { display: none; }
.strip .job { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .4px; }
.strip .job:hover { background: #f4f4f4; color: var(--ink); }
.strip .job img { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--brand-l); }

/* feature rows */
.feature { padding: 70px 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.flip .art { order: -1; }
.feature h2 { font-size: 46px; font-weight: 600; color: var(--brand); letter-spacing: -.5px; }
.feature p { color: var(--muted); font-size: 18px; margin: 0 0 12px; max-width: 470px; }
.feature .art { display: grid; place-items: center; position: relative; min-height: 280px; }
.feature .art img { max-height: 300px; max-width: 100%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.14)); }
.feature .art .blob { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 44% 56% 52% 48%; background: var(--brand-l); z-index: -1; }
.feature .art .duo { position: absolute; width: 38%; right: 0; bottom: 0; }
@media (max-width: 820px) { .feature .wrap { grid-template-columns: 1fr; gap: 24px; text-align: center; } .feature.flip .art { order: 0; } .feature p { margin-inline: auto; } .feature h2 { font-size: 34px; } }

/* dark promo band */
.promo { background: var(--navy); color: var(--white); padding: 70px 0; overflow: hidden; }
.promo .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promo h2 { font-size: 40px; font-weight: 600; font-style: italic; letter-spacing: -.5px; color: var(--sun); }
.promo p { color: #cfc8ef; max-width: 440px; }
.promo .bosses { position: relative; height: 300px; }
.promo .bosses img { position: absolute; max-height: 210px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
@media (max-width: 820px) { .promo .wrap { grid-template-columns: 1fr; text-align: center; } .promo p { margin-inline: auto; } .promo .bosses { height: 230px; } }

/* closing CTA + wave footer */
.closing { text-align: center; padding: 80px 0 0; }
.closing h2 { font-size: 46px; font-weight: 600; color: var(--brand); letter-spacing: -.5px; max-width: 560px; margin: 0 auto 26px; }
.closing .party { position: relative; height: 230px; max-width: 760px; margin: 30px auto 0; }
.closing .party img { position: absolute; bottom: 0; filter: drop-shadow(0 8px 10px rgba(0,0,0,.15)); }
.wave { display: block; width: 100%; height: 90px; margin-top: -2px; }
.foot { background: var(--brand); color: #fff3e8; }
.foot-in { max-width: 1040px; margin: 0 auto; padding: 30px 20px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-weight: 600; }
.foot-in a { color: #fff; }
.foot-in .sp { flex: 1; }

/* inner pages */
.page { padding: 40px 0 70px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.page-head img { height: 64px; }
.page-head h1 { font-size: 40px; font-weight: 600; color: var(--brand); margin: 0; }
.muted { color: var(--muted); }
.grad, .accent { color: var(--brand); }
.panel { border: 2px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 16px; background: var(--white); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 16px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--brand); box-shadow: 0 3px 0 var(--brand-d); }
.legal h3 { margin-top: 24px; color: var(--ink); }
.legal p, .legal li { color: #555; }

/* boss ranking */
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: 14px; }
.tabs button { background: none; border: 0; padding: 8px 16px; border-radius: 10px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; letter-spacing: .3px; }
.tabs button:hover { background: #f4f4f4; }
.tabs button.on { color: #fff; background: var(--sky); box-shadow: 0 3px 0 var(--sky-d); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.boss-tile { background: var(--white); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--line); padding: 14px 10px 12px; text-align: center; cursor: pointer; color: var(--ink); font: inherit; transition: transform .1s, border-color .15s; }
.boss-tile:hover { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand); }
.boss-tile:active { transform: translateY(4px); box-shadow: none; }
.boss-tile .pic { height: 110px; display: grid; place-items: center; margin-bottom: 8px; }
.boss-tile .pic img { max-height: 110px; max-width: 100%; object-fit: contain; }
.boss-tile b { display: block; font-weight: 600; }
.boss-tile small { color: var(--muted); font-weight: 600; }
.boss-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.boss-head img { height: 120px; max-width: 200px; object-fit: contain; }
.boss-head h2 { font-size: 38px; font-weight: 600; color: var(--brand); margin: 0; }
.back { background: none; border: 0; color: var(--sky-d); font: 600 15px var(--font); cursor: pointer; padding: 0; margin-bottom: 14px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line); padding: 18px 12px; text-align: center; background: var(--white); }
.pod .medal { font-weight: 600; font-size: 15px; color: #fff; display: inline-block; padding: 2px 12px; border-radius: 999px; background: #c9c9c9; }
.pod.r1 { border-color: var(--sun); box-shadow: 0 5px 0 #e0a21f; padding-top: 26px; }
.pod.r1 .medal { background: var(--sun); }
.pod.r3 .medal { background: #d9915a; }
.pod .ava { width: 90px; height: 90px; margin: 10px auto; border-radius: 50%; overflow: hidden; background: var(--brand-l); display: grid; place-items: center; }
.pod .ava img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pod b { display: block; font-size: 18px; font-weight: 600; }
.pod .t { font-size: 26px; font-weight: 600; color: var(--brand); }
.pod small { display: block; color: var(--muted); font-weight: 600; }
@media (max-width: 620px) { .podium { grid-template-columns: 1fr; } .pod.r1 { order: -1; } }
.tbl-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 2px solid #f0f0f0; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.flag td { background: #fff0f0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: #f0f0f0; color: var(--muted); }
.badge.warn { background: #ff4b4b; color: #fff; }
.badge.gm { background: #e5f6ff; color: var(--sky-d); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 600; }
.empty img { display: block; margin: 0 auto 10px; height: 90px; }
.reveal { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }
img.bust { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.strip .track { min-width: 0; }
.strip-in { min-width: 0; }
@media (max-width: 600px) { .closing .party img { height: auto !important; width: 24%; } .closing h2, .feature h2 { font-size: 30px; } .btn { min-width: 0; } }

/* Thai type (user 10-15 "ฟอนต์ไทยไม่สวย"): Kanit 500/600 for headings, buttons, nav, numbers; IBM Plex Sans Thai 400/500 body */
h1, h2, h3, .logo, .nav a, .btn, .tabs button, .back, .live, .strip .job, .boss-tile b, .pod b, .pod .t, .pod .medal, th, .badge, .page-head h1, .boss-head h2 { font-family: var(--head); }
h1, h2, .logo, .pod .t { font-weight: 600; }
h3, .nav a, .btn, .tabs button, .back, .live, .strip .job, .boss-tile b, .pod b, .pod .medal, th, .badge { font-weight: 500; }
.btn { letter-spacing: .3px; }
.hero-copy h1 { line-height: 1.4; }
.feature h2, .closing h2, .promo h2 { line-height: 1.3; }
b, strong { font-weight: 500; }
.promo h2 { font-style: normal; }
