:root {
  color-scheme: light;
  --ink: #0b1825;
  --navy: #101f30;
  --green: #284a19;
  --lime: #d8ef66;
  --paper: #f6f8f2;
  --muted: #536050;
  --line: #dce2d6;
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, "Thonburi", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #5a7a13; outline-offset: 4px; }
.section-dark :focus-visible, .top :focus-visible, .hero :focus-visible { outline-color: var(--lime); }
.shell { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: .5rem; left: .5rem; transform: translateY(-150%); background: white; padding: .75rem; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.top { background: var(--ink); color: #fff; }
.nav { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 700; font-size: .93rem; }
.nav a:not(.button):hover { color: var(--lime); }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.08; }
.brand-logo { display: grid; place-items: center; width: 83px; height: 40px; background: white; padding: 6px 9px; border-radius: 9px; }
.brand-logo img { width: 100%; height: auto; display: block; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1.3rem; border: 1px solid transparent; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; line-height: 1.3; text-decoration: none; }
.button:hover { background: #e8f8a7; box-shadow: 0 6px 20px #111c2220; }
.nav-button { min-height: 39px; padding: .56rem 1.08rem; }

.hero { position: relative; isolation: isolate; color: white; background: #233822; overflow: hidden; }
.hero-image, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 48%; z-index: -2; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, #0a1523f8 0%, #0a1523db 34%, #0a15236b 68%, #0a152328 100%), linear-gradient(0deg, #0a1523ce 0%, transparent 56%); }
.hero-inner { display: flex; min-height: 660px; flex-direction: column; justify-content: space-between; padding-block: 80px 30px; gap: 48px; }
.hero-copy { max-width: 800px; }
.kicker, .eyebrow { margin: 0 0 12px; text-transform: uppercase; font-size: .78rem; letter-spacing: .15em; font-weight: 800; color: var(--green); }
.hero .kicker, .section-dark .kicker { color: var(--lime); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; }
h1 { text-transform: uppercase; font-weight: 950; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.075em; line-height: .9; }
h1 em { color: var(--lime); font-style: normal; }
h2 { font-size: clamp(2.15rem, 4.7vw, 4.25rem); font-weight: 850; letter-spacing: -.06em; }
h3 { font-weight: 800; font-size: 1.33rem; letter-spacing: -.025em; }
.hero-lede { max-width: 490px; margin: 23px 0 25px; font-size: 1.08rem; color: #ecf2ef; }
.hero-button { min-height: 53px; }
.event-plate { display: grid; grid-template-columns: 1.5fr 1.25fr .65fr; width: min(780px, 100%); border: 1px solid #e1eee656; border-radius: 21px; background: #0c1d28d2; backdrop-filter: blur(10px); }
.event-plate div { padding: 16px 20px; }
.event-plate div + div { border-left: 1px solid #e1eee633; }
.event-plate .eyebrow { display: block; margin: 0 0 2px; color: #d2e3d5; }
.event-plate strong { font-size: 1.12rem; line-height: 1.2; }

.event-announcement {
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid #afba98;
  border-radius: 12px;
  background: #e8efdb;
  color: var(--green);
}
.event-announcement p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.section { padding-block: 88px; }
.event-section { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(38px, 7vw, 120px); align-items: center; }
.section-intro { max-width: 560px; color: var(--muted); font-size: 1.05rem; margin-block: 20px 26px; }
.rulebook-link {
  margin-bottom: 24px;
  border-color: #8b9a79;
  background: #eaf1df;
  color: var(--green);
}
.rulebook-link:hover { background: #dce9cd; }
.schedule { margin: 0; border-top: 1px solid var(--line); }
.schedule div { display: grid; grid-template-columns: 142px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.schedule dt { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule dd { margin: 0; font-weight: 750; }
.schedule small { display: block; color: var(--muted); font-weight: 400; }
.poster { display: block; max-width: 365px; overflow: hidden; border-radius: 24px; justify-self: end; text-align: center; text-decoration: none; background: var(--navy); color: white; box-shadow: 0 16px 36px #12251f1c; }
.poster img { height: auto; width: 100%; display: block; }
.poster span { display: block; padding: 10px 16px; font-weight: 750; font-size: .94rem; }
.poster:hover span { color: var(--lime); }

.section-dark { color: white; background: var(--ink); }
.scoring-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 28px; }
.score-card { display: flex; flex-direction: column; background: #142637; border: 1px solid #344756; border-radius: 21px; padding: 22px; }
.score-type { margin: 0 0 12px; color: var(--lime); font-weight: 800; font-size: .87rem; }
.score-card p:not(.score-type):not(.prize) { color: #d8e1e3; margin: 14px 0 20px; }
.prize { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .9rem; font-weight: 700; border-top: 1px solid #40525e; padding-top: 14px; margin: auto 0 0; }
.prize span { padding: 2px 9px; color: var(--ink); background: var(--lime); border-radius: 99px; font-size: .78rem; }
.score-note { color: #d8e1e3; margin: 16px 0 22px; }
.challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.challenge { display: flex; align-items: center; gap: 15px; padding: 15px 20px; background: #18242b; border: 1px solid #40525e; border-radius: 16px; }
.challenge > span { display: inline-grid; flex: none; place-items: center; min-width: 56px; min-height: 44px; border-radius: 9px; color: var(--lime); border: 1px solid #a8ba58; font-weight: 750; font-size: .85rem; }
.challenge h3 { font-size: 1.1rem; }
.challenge p { margin: 3px 0 0; color: #d8e1e3; font-size: .95rem; }

.registration { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(30px, 6vw, 85px); align-items: start; }
.registration-info > p:not(.kicker) { margin: 18px 0 24px; color: var(--muted); }
.price-list { border-top: 1px solid var(--line); margin: 0; }
.price-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-list dt, .price-list dd { font-weight: 800; margin: 0; }
.price-list dd { text-align: end; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.price-list small { display: block; font-weight: 550; color: var(--muted); }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 20px; margin-top: 30px; border-radius: 16px; background: #e8eddf; }
.contact .eyebrow { display: block; margin-bottom: 4px; }
.contact strong { font-size: 1.14rem; }
.contact-phone, .contact-line { display: inline-flex; align-items: center; gap: 9px; min-height: 35px; font-weight: 700; }
.contact-phone svg { height: 22px; width: 22px; }
.contact-line { border: 0; padding: 0; color: var(--ink); background: none; text-align: start; }
.contact-line:hover span:last-child { text-decoration: underline; }
.line-mark { display: inline-flex; position: relative; color: #fff; background: #087a47; font-size: .61rem; border-radius: 22px; padding: 3px 6px; line-height: 1.3; }
.line-mark::after { content: ""; position: absolute; bottom: -2px; left: 8px; border-top: 4px solid #087a47; border-right: 4px solid transparent; }

.form-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3.1vw, 32px); box-shadow: 0 12px 35px #12251f12; min-width: 0; }
.form-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.form-heading h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.badge { padding: 4px 11px; border-radius: 99px; background: #eff3e5; color: #304223; white-space: nowrap; font-size: .83rem; font-weight: 800; }
.form-description, .field-hint { color: var(--muted); margin: 10px 0 17px; }
.field-hint { font-size: .9rem; margin: 8px 0 0; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
legend { font-weight: 800; padding: 0; margin: 0 0 9px; }
.entry-types, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.entry-types label { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border-radius: 11px; border: 1px solid var(--line); cursor: pointer; }
.entry-types label:has(:checked) { border-color: #647f27; background: #f3f7e8; }
.entry-types input, .terms-check input { margin: 5px 0 0; accent-color: #345821; width: 17px; height: 17px; flex: none; }
.entry-types strong, .entry-types small { display: block; }
.entry-types small, .field small, .payment small { color: var(--muted); }
.team-fields, .player-fields, .payment { margin-top: 20px; }
.team-fields { border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: #fafcf7; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-weight: 750; font-size: .91rem; }
.field > span small { font-weight: 500; }
.field input, .field select { width: 100%; min-width: 0; min-height: 43px; border-radius: 8px; border: 1px solid #aab5a4; padding: 7px 9px; color: var(--ink); background: #fff; }
.field select { appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23213226' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") right 11px center no-repeat; padding-right: 32px; }
.form-grid + .field, .team-fields .form-grid, .payment-details + .field { margin-top: 11px; }
.file-field input { padding: 5px; border-style: dashed; }
.file-field input::file-selector-button { border: 0; background: #eaf0e0; padding: 6px 9px; margin-inline-end: 7px; border-radius: 5px; color: var(--ink); cursor: pointer; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-block: 1px solid var(--line); padding: 12px 0; margin-top: 22px; font-weight: 750; }
.total-row output { color: var(--green); font-size: 1.45rem; font-weight: 850; }
.payment-details { display: flex; gap: 13px; align-items: center; padding: 12px; background: #f3f6ef; border-radius: 12px; }
.payment-details p { margin: 0; font-size: .91rem; }
.payment-details small { display: block; margin-top: 2px; }
.qr-placeholder, #payment-qr { width: 108px; height: 108px; flex: none; border: 1px dashed #9ba694; border-radius: 8px; background: #fff; }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: .7rem; }
#payment-qr { object-fit: contain; }
#terms-preview, #terms-live { margin-top: 16px; }
.terms-check { display: flex; align-items: flex-start; gap: 8px; }
.terms-check a, #terms-live a { font-weight: 750; text-decoration-thickness: 1px; color: var(--green); }
.submit-button { width: 100%; border-radius: 10px; margin-top: 16px; }
.notice { color: #263e20; background: #eef5e8; border: 1px solid #c4d8bd; border-radius: 9px; padding: 10px 12px; margin: 12px 0 0; overflow-wrap: anywhere; }
.notice[data-error] { color: #74231b; background: #fff1ec; border-color: #e1b5a9; }
.footer { background: var(--ink); color: #e5eae5; }
.footer .shell { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.footer span { font-size: .92rem; }

@media (max-width: 880px) {
  .shell { width: calc(100% - 48px); }
  .section { padding-block: 65px; }
  .hero-inner { min-height: 570px; padding-top: 70px; }
  .event-section { gap: 38px; }
  .registration { grid-template-columns: 1fr 1.25fr; gap: 22px; }
  .scoring-grid { gap: 9px; }
  .score-card { padding: 16px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 20px; }
  .shell { width: calc(100% - 34px); }
  .nav { min-height: 65px; }
  .nav nav { gap: 9px; }
  .nav nav > a:not(.button) { display: none; }
  .brand { font-size: .83rem !important; }
  .brand-logo { width: 68px; height: 34px; padding: 4px 6px; }
  .hero-image { object-position: 61% center; }
  .hero::before { background: linear-gradient(90deg,#0a1523ed,#0a152374),linear-gradient(0deg, #0a1523b8, transparent 80%); }
  .hero-inner { min-height: 0; padding-top: 62px; padding-bottom: 19px; gap: 30px; }
  h1 { font-size: clamp(2.95rem, 9.1vw, 4.4rem); }
  .hero-lede { font-size: 1rem; margin-block: 18px 20px; }
  .event-plate { grid-template-columns: 1fr 1fr; border-radius: 15px; }
  .event-plate div { padding: 11px; }
  .event-plate div:first-child { grid-column: 1 / -1; border-bottom: 1px solid #e1eee633; }
  .event-plate div:nth-child(2) { border-left: 0; }
  .event-plate strong { font-size: .98rem; }
  .section { padding-block: 48px; }
  .event-section, .registration, .scoring-grid, .challenge-grid { grid-template-columns: 1fr; }
  .poster { justify-self: start; max-width: 310px; }
  .challenge { padding: 12px 14px; }
  .footer .shell { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 14px; }
}
@media (max-width: 360px) {
  .form-grid { grid-template-columns: 1fr; }
  .schedule div { grid-template-columns: 113px 1fr; }
  .entry-types label { padding: 7px; }
  .payment-details { align-items: flex-start; }
  .qr-placeholder, #payment-qr { width: 82px; height: 82px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.language-menu { position: relative; z-index: 3; }
.language-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 4px 9px;
  border: 1px solid #60707c;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.language-menu summary:hover, .language-menu[open] summary { border-color: var(--lime); }
.language-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 133px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--ink);
  border: 1px solid #60707c;
  border-radius: 12px;
  box-shadow: 0 12px 28px #0005;
}
.language-menu a { display: flex; align-items: center; gap: 8px; padding: .55rem .65rem; border-radius: 8px; white-space: nowrap; }
.language-menu a[aria-current="page"] { background: #233849; }
.language-menu summary span:first-child, .language-menu a span { font-size: 1rem; }
.language-code { font-size: .81rem; }
html[lang="th"] { --display: "Thonburi", "Noto Sans Thai", Arial, sans-serif; --body: "Thonburi", "Noto Sans Thai", Arial, sans-serif; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { letter-spacing: -.035em; line-height: 1.17; }
html[lang="th"] h1 { font-size: clamp(2.9rem, 6.8vw, 6rem); }
html[lang="th"] .kicker, html[lang="th"] .eyebrow { letter-spacing: .065em; }
@media (max-width: 425px) {
  .brand > span:last-child { display: none; }
  .nav-button { padding-inline: .75rem; }
}
