/* ==========================================================================
   KIKI49 — Crimson Luchador Stadium Arena (#5E0000 / #E62B32 / #FFFFFF)
   Design Tokens, Typography, Sticky Header & Deep Wine Footer
   ========================================================================== */

:root {
  --bg: #5E0000;
  --bg-deep: #3B0000;
  --bg-header: #2B0000;
  --surface: #74060A;
  --surface-hover: #8C0A10;
  --surface-dark: #4A0204;
  --scarlet: #E62B32;
  --scarlet-hover: #FF4047;
  --scarlet-soft: rgba(230, 43, 50, 0.18);
  --scarlet-border: rgba(230, 43, 50, 0.62);
  --gold-accent: #F5B82E;
  --border-subtle: rgba(255, 255, 255, 0.14);
  --white: #FFFFFF;
  --text-soft: #F6DCE0;
  --text-muted: #E3B8BE;

  --font-heading: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--white);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.22;
  margin: 0 0 0.55em;
}
p { margin: 0 0 1em; color: var(--text-soft); }

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--scarlet);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   TOP SCARLET TICKER (#E62B32) & STICKY DEEP-WINE HEADER (#2B0000)
   ========================================================================== */
.arena-ticker {
  background: var(--scarlet);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
}
.arena-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.ticker-pill {
  background: var(--bg-header);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-header);
  border-bottom: 2px solid var(--scarlet);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.48);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Brand Logo ONLY — Zero Extra Text */
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color 0.16s, background 0.16s;
}
.main-nav a:hover {
  color: var(--white);
  background: rgba(230, 43, 50, 0.16);
}
.main-nav a.is-active {
  color: var(--white);
  font-weight: 700;
}
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2.5px;
  background: var(--scarlet);
}

/* Buttons — Primary Strictly #E62B32 with Crisp White Text */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-kk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--scarlet);
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn-kk:hover { transform: translateY(-1px); }

.btn-kk-red {
  background: var(--scarlet);
  color: var(--white);
  border-color: var(--scarlet);
  box-shadow: 0 4px 16px rgba(230, 43, 50, 0.38);
}
.btn-kk-red:hover {
  background: var(--scarlet-hover);
  border-color: var(--scarlet-hover);
  box-shadow: 0 6px 22px rgba(230, 43, 50, 0.55);
}
.btn-kk-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-kk-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.btn-kk-dark {
  background: var(--bg-header);
  color: var(--white);
  border-color: var(--white);
}
.btn-kk-dark:hover {
  background: #1A0000;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--surface);
  color: var(--white);
  padding: 0;
}
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 0, 0, 0.8);
  display: none;
  justify-content: flex-end;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer-panel {
  width: min(320px, 86vw);
  height: 100%;
  background: var(--bg-header);
  border-left: 2px solid var(--scarlet);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-drawer-head img { height: 30px; width: auto; }
.mobile-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--white);
}
.mobile-nav-list a.is-active {
  background: var(--scarlet);
  border-color: var(--scarlet);
  color: var(--white);
}
.mobile-drawer-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SOLID #E62B32 CONVERSION BAND & 4-COL #2B0000 FOOTER
   ========================================================================== */
.scarlet-cta-band {
  background: linear-gradient(110deg, var(--scarlet) 0%, #B81219 100%);
  color: var(--white);
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.scarlet-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.scarlet-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.site-footer {
  background: var(--bg-header);
  color: var(--white);
  border-top: 2px solid var(--scarlet);
}
.footer-main {
  padding-top: 48px;
  padding-bottom: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-pay-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--white);
}
.footer-col h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  border-left: 3px solid var(--scarlet);
  padding-left: 9px;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.16s, padding-left 0.16s;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; color: var(--text-muted); }
.badge-18 {
  border: 1px solid var(--scarlet-border);
  background: var(--surface);
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}
