/* นายเล้ง อารีน่า — ธีมดำ-เขียว (สนามกลางคืน) + แดง/กรมจากโลโก้ */
:root {
  --bg: #050a07; --bg-2: #0b1510; --card: #0f1c15; --card-2: #142419; --line: rgba(255,255,255,.09);
  --ink: #f2f5f1; --muted: #9fb0a5; --grass: #2fbf5b; --grass-2: #1f8f43; --red: #e3263b; --red-2: #b81428;
  --navy: #1f3f8f; --gold: #f5c542; --radius: 18px; --shadow: 0 18px 50px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "IBM Plex Sans Thai", "Kanit", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .kanit { font-family: "Kanit", sans-serif; line-height: 1.15; margin: 0 0 .4em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.label { display: inline-flex; align-items: center; gap: 8px; font-family: "Kanit"; font-weight: 500; font-size: .85rem; letter-spacing: .06em; color: var(--grass); text-transform: uppercase; margin: 0 0 10px; }
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
section { padding: 84px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); font: 600 1rem "Kanit", sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.btn.primary { background: linear-gradient(135deg, var(--grass), var(--grass-2)); border-color: transparent; color: #04140a; box-shadow: 0 10px 28px rgba(47,191,91,.3); }
.btn.red { background: linear-gradient(135deg, var(--red), var(--red-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 28px rgba(227,38,59,.3); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ส่วนหัว */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(5,10,7,.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 50px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.brand b { font: 700 1.25rem "Kanit"; letter-spacing: .01em; display: block; line-height: 1; }
.brand small { color: var(--grass); font-size: .75rem; letter-spacing: .14em; }
nav.menu { display: flex; align-items: center; gap: 4px; }
nav.menu a { padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-family: "Kanit"; transition: color .2s, background .2s; }
nav.menu a:hover, nav.menu a[aria-current] { color: var(--ink); background: rgba(255,255,255,.06); }
nav.menu a.cta { background: var(--red); color: #fff; margin-left: 6px; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-family: "Kanit"; }
@media (max-width: 860px) {
  .burger { display: block; }
  nav.menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; display: none; }
  nav.menu.open { display: flex; }
  nav.menu a.cta { margin: 6px 0 0; text-align: center; }
}
.notice { background: linear-gradient(90deg, var(--red-2), var(--red)); color: #fff; text-align: center; padding: 8px 16px; font-size: .95rem; }

/* hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,7,.2) 0%, rgba(5,10,7,.55) 50%, var(--bg) 100%), linear-gradient(90deg, rgba(5,10,7,.85), rgba(5,10,7,0) 70%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 70px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -.01em; margin: 0; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.hero h1 span { display: block; background: linear-gradient(90deg, var(--gold), #fff3c4, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; max-width: 40ch; color: rgba(255,255,255,.88); margin: 14px 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hb { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hb b { font-family: "Kanit"; font-size: 1.2rem; color: var(--gold); }
.hb span { color: rgba(255,255,255,.8); font-size: .9rem; }

/* การ์ดราคา */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -40px; position: relative; z-index: 2; }
.pc { padding: 22px; border-radius: var(--radius); background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pc .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,191,91,.14); color: var(--grass); font-size: 1.4rem; margin-bottom: 12px; }
.pc h3 { font-size: 1.15rem; margin: 0 0 4px; }
.pc .v { font: 700 2rem "Kanit"; color: var(--gold); }
.pc .v small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.pc p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.pc.red .ic { background: rgba(227,38,59,.15); color: #ff6b7b; }
@media (max-width: 900px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .prices { grid-template-columns: 1fr; } }

/* ว่างวันนี้ */
.today { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px; border-radius: var(--radius); background: radial-gradient(600px 200px at 0 0, rgba(47,191,91,.18), transparent), var(--card); border: 1px solid rgba(47,191,91,.25); }
.today h3 { font-size: 1.4rem; }
.mini-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ms { font: 600 .85rem "Kanit"; padding: 5px 10px; border-radius: 999px; background: rgba(47,191,91,.15); color: #7ef0a2; }
.ms.x { background: rgba(255,255,255,.05); color: #5d6b62; text-decoration: line-through; }
@media (max-width: 700px) { .today { grid-template-columns: 1fr; } }

/* ฟีเจอร์ */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(47,191,91,.4); }
.feat .ic { font-size: 1.8rem; margin-bottom: 10px; }
.feat h3 { font-size: 1.15rem; }
.feat p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* แกลเลอรี */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gal img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; transition: transform .5s, filter .3s; filter: saturate(1.05); }
.gal a { overflow: hidden; border-radius: 14px; display: block; }
.gal a:hover img { transform: scale(1.06); }
.gal a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) { .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } }

/* รายการแข่ง */
.tlist { display: grid; gap: 16px; }
.tcard { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tcard.open { border-color: rgba(47,191,91,.35); }
.thead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; }
.tcard h3 { font-size: 1.4rem; margin: 0; }
.tmeta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { font: 500 .82rem "Kanit"; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.chip.g { background: rgba(47,191,91,.16); color: #7ef0a2; }
.chip.r { background: rgba(227,38,59,.16); color: #ff8592; }
.chip.y { background: rgba(245,197,66,.16); color: var(--gold); }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 12px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--grass), var(--gold)); border-radius: 99px; transition: width .8s; }
.teams { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.teams li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.teams li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams li .n { color: var(--muted); font-size: .85rem; margin-right: 6px; }
.st { font: 600 .75rem "Kanit"; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.pending { background: rgba(245,197,66,.16); color: var(--gold); }
.st.unpaid { background: rgba(255,255,255,.08); color: #b9c4bc; }
.st.deposit { background: rgba(47,191,91,.16); color: #7ef0a2; }
.st.paid { background: var(--grass); color: #04140a; }
.st.confirmed { background: var(--grass); color: #04140a; }
.st.cancelled, .st.expired { background: rgba(227,38,59,.16); color: #ff8592; }

/* จองสนาม */
.bkgrid > * { min-width: 0; }
.bkgrid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .bkgrid { grid-template-columns: 1fr; } }
.panel { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.panel h2 { font-size: 1.35rem; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.dchip { flex: 0 0 auto; width: 66px; padding: 10px 0; border-radius: 14px; text-align: center; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink); cursor: pointer; font-family: "Kanit"; transition: all .2s; }
.dchip small { display: block; color: var(--muted); font-size: .75rem; }
.dchip b { display: block; font-size: 1.35rem; }
.dchip.on { background: var(--grass); color: #04140a; border-color: var(--grass); }
.dchip.on small { color: #04140a; }
.dchip.we:not(.on) small { color: var(--red); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 18px; }
.slot { padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(47,191,91,.08); color: var(--ink); text-align: center; cursor: pointer; font-family: "Kanit"; transition: all .15s; }
.slot b { display: block; font-size: 1.1rem; }
.slot small { display: block; font-size: .72rem; color: #7ef0a2; }
.slot:hover:not(:disabled) { border-color: var(--grass); transform: translateY(-2px); }
.slot.sel { background: var(--grass); color: #04140a; border-color: var(--grass); }
.slot.sel small { color: #04140a; }
.slot:disabled { cursor: not-allowed; background: rgba(255,255,255,.03); }
.slot.booked small, .slot.event small { color: #ff8592; }
.slot.pending small { color: var(--gold); }
.slot.buffet { background: rgba(245,197,66,.08); }
.slot.buffet small { color: var(--gold); }
.slot.past { opacity: .35; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.sum { display: grid; gap: 6px; margin: 14px 0; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px dashed var(--line); }
.sum div { display: flex; justify-content: space-between; }
.sum .big { font: 700 1.3rem "Kanit"; color: var(--gold); }
form.f { display: grid; gap: 12px; }
.f label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.f input, .f textarea, .f select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--grass); box-shadow: 0 0 0 3px rgba(47,191,91,.2); }
.f .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .f .row { grid-template-columns: 1fr; } }
.qr { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; background: #fff; color: #10251a; }
.qr .qbox { background: #fff; border-radius: 10px; }
.qr .qbox img, .qr .qbox svg { width: 100%; height: auto; }
.qr b { font: 700 1.6rem "Kanit"; color: #0f4a8a; display: block; }
.qr small { color: #4a5d52; display: block; }
.pp-logo { font: 700 .95rem "Kanit"; color: #fff; background: #0f4a8a; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
@media (max-width: 480px) { .qr { grid-template-columns: 1fr; text-align: center; } .qr .qbox { width: 200px; margin: auto; } }
.file { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(47,191,91,.5); background: rgba(47,191,91,.05); cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.msg.err { background: rgba(227,38,59,.14); color: #ff9aa5; }
.msg.ok { background: rgba(47,191,91,.14); color: #9ff5bb; }
.done { text-align: center; padding: 10px 0; }
.done .code { font: 700 2.2rem "Kanit"; letter-spacing: .08em; color: var(--gold); margin: 8px 0; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .panel { width: min(560px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.modal .x { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.08); border: 0; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

/* ติดต่อ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cl { display: grid; gap: 10px; }
.cl a, .cl div { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.cl a:hover { border-color: var(--grass); }
.cl .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,191,91,.14); font-size: 1.2rem; flex: 0 0 auto; }
.cl small { display: block; color: var(--muted); }
.cl b { font-family: "Kanit"; font-size: 1.1rem; }
.mapbox { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--card); }
.mapbox iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.3) invert(.9) hue-rotate(180deg); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

footer.foot { border-top: 1px solid var(--line); padding: 40px 0 100px; color: var(--muted); font-size: .92rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.foot img { height: 44px; }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-size: 1.4rem; box-shadow: 0 10px 26px rgba(0,0,0,.4); transition: transform .2s; }
.fab a:hover { transform: scale(1.08); }
.fab .call { background: var(--grass-2); }
.fab .bk { background: var(--red); width: auto; padding: 0 20px; border-radius: 999px; font: 700 1rem "Kanit"; }

/* แอนิเมชัน */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero > img { animation: none; } }
.page-hero { padding: 64px 0 28px; background: radial-gradient(800px 300px at 10% 0, rgba(47,191,91,.14), transparent); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.skel { height: 120px; border-radius: 14px; background: linear-gradient(90deg, var(--card), var(--card-2), var(--card)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
