/* Airsoft Match Planner — landing. Visual system "Team sheet": chalk paper, a slate scoreboard header,
   marker yellow, armband colours as the only accents, bib-number tiles. Fonts are self-hosted
   (SIL OFL, see /assets/fonts). */

@font-face { font-family: "Kanit"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/kanit-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/kanit-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kanit"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/kanit-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/kanit-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #17212b;
  --ink-soft: #2a3642;
  --chalk: #f2f0ea;
  --paper: #ffffff;
  --sunk: #e8e5dc;
  --line: #d9d5ca;
  --soft: #4e5a66;
  --marker: #ffc629;
  --marker-tint: #fff3c9;
  --marker-text: #7a5a00;
  --ok: #1f7a4f;
  --red: #d33a3a;
  --blue: #2d66d6;
  --yellow: #f2b705;
  --green: #2b8f55;
  --display: "Kanit", "Arial Narrow", Arial, sans-serif;
  --text: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--chalk); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { background: var(--marker-tint); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
p, li, dd, dt, summary { overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
.email { overflow-wrap: anywhere; word-break: break-word; hyphens: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--marker-text); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 5px; border-radius: 3px; background: var(--marker); flex: none; }
.kicker.light { color: var(--marker); }
.small { font-size: 0.92rem; color: var(--soft); }

/* Header: slate scoreboard band closed by a dashed touchline */
.top { background: var(--ink); color: var(--chalk); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; min-width: 0; }
.brand:hover { background: none; color: var(--marker); }
.brand img { border-radius: 8px; flex: none; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.nav a { display: inline-block; color: var(--chalk); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.98rem; padding: 8px 12px; border-radius: 6px; border: 1.5px solid transparent; }
.nav a:hover { background: var(--ink-soft); }
.nav a[aria-current="page"] { background: var(--marker); color: var(--ink); }
.touchline { height: 18px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  background:
    linear-gradient(var(--marker), var(--marker)) 24px 7px / 34px 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(247, 245, 239, 0.35) 0 10px, transparent 10px 18px) 70px 8px / calc(100% - 94px) 2px no-repeat; }

/* Hero */
.hero { position: relative; padding: 64px 0 72px; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(var(--red) 0 25%, var(--blue) 25% 50%, var(--yellow) 50% 75%, var(--green) 75% 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.hero h1 span { display: block; }
.mark { background: linear-gradient(transparent 58%, var(--marker) 58% 92%, transparent 92%); display: inline !important; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 1.2rem; color: var(--ink); margin: 26px 0 26px; max-width: 36em; }
.bibs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.bibs li { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 14px 6px 6px; font-weight: 700; }
.bib-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--ink); color: var(--marker); font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.text-link { font-family: var(--display); font-weight: 600; }
.text-link.light { color: var(--chalk); }
.text-link.light:hover { background: var(--ink-soft); }
.hero-shots { position: relative; min-height: 560px; }
.shot { margin: 0; border: 8px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 14px 14px 0 var(--sunk); }
.shot img { width: 100%; }
.shot-back { position: absolute; top: 0; right: 0; width: 64%; opacity: 0.96; }
.shot-front { position: absolute; top: 70px; left: 0; width: 64%; }

/* Google Play label */
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 10px; background: var(--ink); color: var(--chalk); text-decoration: none; border: 2px solid var(--ink); }
.play:hover { background: var(--ink-soft); color: var(--chalk); }
.play-soon { background: var(--paper); color: var(--ink); border-style: dashed; cursor: default; }
.play-flag { width: 22px; height: 26px; flex: none; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 3px 100% no-repeat, linear-gradient(135deg, var(--marker) 50%, transparent 50%) 3px 0 / 19px 14px no-repeat; }
.play:not(.play-soon) .play-flag { background: linear-gradient(var(--chalk), var(--chalk)) 0 0 / 3px 100% no-repeat, linear-gradient(135deg, var(--marker) 50%, transparent 50%) 3px 0 / 19px 14px no-repeat; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.8rem; }
.play-big { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* Sections */
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2, .extras h2, .faq h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.section-lead { color: var(--soft); font-size: 1.1rem; margin: 16px 0 0; }

/* Programme: one timetable slot per stage */
.programme { background: var(--paper); padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.slot { display: grid; grid-template-columns: 170px minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding: 44px 0; border-top: 2px solid var(--ink); }
.slot:first-child { border-top: none; padding-top: 8px; }
.slot-time { display: flex; flex-direction: column; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--soft); }
.slot-no { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: var(--ink); color: var(--marker); font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
.slot-label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--marker-text); margin: 0 0 8px; }
.slot h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 11px; border-radius: 3px; background: var(--marker); border: 1.5px solid var(--ink); }
.slot-shot { width: 100%; max-width: 300px; justify-self: end; }
.slot-flip .slot-shot { box-shadow: -14px 14px 0 var(--sunk); }

/* Scenario library */
.formats { padding: 84px 0; }
.format-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.format { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 30px 24px 22px; overflow: hidden; }
.format-band { position: absolute; left: 24px; top: 0; width: 56px; height: 10px; border-radius: 0 0 4px 4px; }
.band-0 { background: var(--red); } .band-1 { background: var(--blue); } .band-2 { background: var(--yellow); } .band-3 { background: var(--green); }
.format h3 { font-size: 1.45rem; }
.format-meta { font-family: var(--display); font-weight: 600; color: var(--soft); margin: 4px 0 10px; }
.format p:last-child { margin: 0; }

/* Extras */
.extras { padding: 20px 0 84px; }
.extra-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 0; }
.extra-list div { border-top: 2px solid var(--ink); padding: 18px 0 22px; }
.extra-list dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.extra-list dd { margin: 0; color: var(--soft); }

/* Privacy band */
.private { background: var(--ink); color: var(--chalk); padding: 76px 0; }
.private-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.private h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.private-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.private-list li { padding: 12px 16px 12px 52px; position: relative; border: 1.5px solid #3a4754; border-radius: 10px; }
.private-list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 12px; margin-top: -6px; border-radius: 3px; background: var(--marker); }

/* FAQ */
.faq { padding: 84px 0; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
.faq-list { display: grid; gap: 12px; }
details { background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 20px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.12rem; padding: 16px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p { margin: 0 0 16px; }

/* Download */
.download { padding: 0 0 84px; }
.download-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--marker); border: 2px solid var(--ink); border-radius: 16px; padding: 36px 40px; }
.download-inner > div { flex: 1 1 380px; min-width: 0; }
.download h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 10px; }
.download .small { color: var(--ink); margin: 0; }
.download a:hover { background: var(--paper); }

/* Inner pages */
.page { padding: 56px 0 84px; }
.page h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 8px; }
.page h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.page .lead { margin-top: 18px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 18px 20px 6px 76px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--marker); font-family: var(--display); font-weight: 700; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* Footer */
.foot { background: var(--ink); color: var(--chalk); }
.armbands { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.armbands span:nth-child(1) { background: var(--red); } .armbands span:nth-child(2) { background: var(--blue); } .armbands span:nth-child(3) { background: var(--yellow); } .armbands span:nth-child(4) { background: var(--green); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 32px; padding-bottom: 36px; }
.foot-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.foot-brand img { border-radius: 8px; flex: none; }
.foot-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0; }
.foot-small { margin: 0; color: #b9c1c9; font-size: 0.92rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; min-width: 0; }
.foot a { color: var(--chalk); }
.foot a:hover { background: var(--ink-soft); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-shots { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 560px; }
  .shot-back, .shot-front { position: static; width: 100%; }
  .shot-front { order: -1; }
  .slot { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px 28px; }
  .slot-time { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
  .slot-no { width: 52px; height: 52px; font-size: 1.4rem; }
  .format-grid, .extra-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .private-inner, .faq-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .touchline { padding: 0 18px; background-position: 18px 7px, 64px 8px; }
  .hero { padding: 40px 0 52px; }
  .hero::before { width: 8px; }
  .lead { font-size: 1.08rem; }
  .nav a { padding: 6px 9px; font-size: 0.92rem; }
  .brand { font-size: 1.05rem; }
  .shot { border-width: 6px; border-radius: 20px; box-shadow: 8px 8px 0 var(--sunk); }
  .slot-flip .slot-shot { box-shadow: 8px 8px 0 var(--sunk); }
  .programme, .formats, .faq, .private { padding: 56px 0; }
  .slot { grid-template-columns: minmax(0, 1fr); padding: 34px 0; }
  .slot-shot { justify-self: start; max-width: 260px; }
  .format-grid, .extra-list { grid-template-columns: minmax(0, 1fr); }
  .download-inner { padding: 26px 22px; }
  .steps li { padding: 16px 16px 4px 16px; }
  .steps li::before { position: static; margin-bottom: 10px; }
  .page { padding: 40px 0 60px; }
}
