/* NREL — dark esports landing, accent purple, unified surfaces */
:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --surface: #141414;
  --surface-raised: #1a1a1a;
  --gold: #6300ff;
  --gold-dim: rgba(99, 0, 255, 0.35);
  --gold-soft: rgba(99, 0, 255, 0.12);
  --gold-glow: rgba(99, 0, 255, 0.22);
  --white: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.68);
  --border: rgba(255, 255, 255, 0.09);
  --panel-light: linear-gradient(160deg, #ffffff 0%, #f9f8f6 45%, #f3f1ee 100%);
  --max-width: 1200px;
  --section-py: clamp(3.5rem, 6vw, 5rem);
  --section-px: clamp(1.25rem, 3vw, 2rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 1;
  transition: opacity 0.26s ease;
}

body.is-leaving {
  opacity: 0;
}

/* หัวข้อใหญ่: ลด tracking เล็กน้อยเพื่อความคมบนจอ */
h1,
h2,
h3 {
  font-family: var(--font);
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--gold);
  color: #000;
  padding: 10px 14px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.7) 80%, transparent);
  transition: background 0.2s;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.header-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.header-nav-panel a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.header-nav-panel a:hover {
  color: var(--white);
  background: var(--gold-soft);
  border-color: rgba(99, 0, 255, 0.25);
}
.header-nav-panel a[aria-current="page"] {
  color: var(--white);
  background: var(--gold-soft);
  border-color: var(--gold-dim);
}

.header-nav-panel a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.header-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  place-items: center;
}

.header-menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .header-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .header-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.28s ease, transform 0.28s ease;
    transform: translateY(-0.5rem);
    pointer-events: none;
  }

  .header-nav-panel.is-open {
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-nav-panel a {
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .header-menu-toggle {
    display: grid;
  }
}

/* —— Hero —— */
.hero-ewc {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  background: url("assets/images/hbg.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.07);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 4, 14, 0.38) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 35%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(ellipse at 50% 12%, rgba(99, 0, 255, 0.08), transparent 50%);
  z-index: 1;
}

.page-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: 
    linear-gradient(180deg, rgba(6, 4, 14, 0.6) 0%, rgba(0, 0, 0, 0.7) 55%, rgba(0, 0, 0, 0.85) 100%),
    url("assets/images/hbg.jpg") center / cover no-repeat;
  background-attachment: fixed;
  filter: blur(3px);
  animation: hero-kenburns 24s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-date {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.hero-brand-lockup {
  margin-bottom: 1.25rem;
}

.hero-brand-name {
  display: block;
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--white);
}

.hero-brand-sub {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.countdown-val {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.05em;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.countdown-sep {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--gold);
  padding-bottom: 1.5rem;
  opacity: 0.85;
}

.countdown-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll:hover {
  color: var(--gold);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* —— Sections —— */
.section-ewc {
  padding: var(--section-py) var(--section-px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.section-page-first,
.newsletter-ewc.section-page-first {
  padding-top: calc(5.25rem + var(--section-py));
}

main > .section-ewc:nth-of-type(even) {
  background: var(--surface);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-intro--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}

.section-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-link:hover {
  text-decoration: underline;
}

.section-intro--left {
  text-align: left;
}

/* Schedule grid */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.schedule-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  cursor: pointer;
}

.schedule-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.schedule-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.schedule-card-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  margin: 1rem 0 0.5rem;
}

.schedule-card-gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .schedule-card-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .schedule-card-gallery {
    grid-template-columns: 1fr;
  }
}

.schedule-card-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.schedule-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 10px 32px var(--gold-glow);
  transform: translateY(-2px);
}

.schedule-range {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.schedule-week {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-desc {
  flex: 1;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.schedule-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.schedule-btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(99, 0, 255, 0.35);
}
.schedule-btn:hover::before {
  left: 130%;
}
.schedule-btn:active {
  transform: translateY(0) scale(0.98);
}
.schedule-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 0, 255, 0.28), 0 10px 24px rgba(99, 0, 255, 0.35);
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.9);
}

.schedule-modal.is-open {
  display: flex;
}

.schedule-modal__panel {
  width: min(100%, 980px);
  max-height: 100%;
  overflow: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.schedule-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.schedule-modal__close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.schedule-modal__content h3,
.schedule-modal__content h4 {
  margin-top: 1.25rem;
}

.schedule-modal__content p,
.schedule-modal__content li {
  color: var(--muted);
  line-height: 1.8;
}

.schedule-modal__content ul,
.schedule-modal__content ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.35rem;
}

.schedule-modal__content li {
  margin-bottom: 0.75rem;
}

.schedule-modal__content strong {
  color: var(--white);
}

/* Banner */
.banner-ewc {
  background: linear-gradient(90deg, #0e0818, #160a28, #0e0818);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: var(--section-py) var(--section-px);
  text-align: center;
}

.banner-inner {
  max-width: 800px;
  margin: 0 auto;
}

.banner-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.banner-inner p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.banner-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.banner-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.banner-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(99, 0, 255, 0.4);
  filter: brightness(1.03);
}
.banner-cta:hover::before {
  left: 130%;
}
.banner-cta:active {
  transform: translateY(0) scale(0.98);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.news-card + .news-card {
  margin-top: 2rem;
}
.news-grid .news-card + .news-card {
  margin-top: 0;
}
.news-grid .news-card > .schedule-btn,
.news-grid .news-card > .card-actions {
  margin-top: auto;
}
.news-grid .news-card > .schedule-btn {
  align-self: flex-start;
}
.news-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 10px 32px var(--gold-glow);
  transform: translateY(-2px);
}

.news-card--featured {
  padding: 0;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.news-gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.news-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .news-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .news-gallery {
    grid-template-columns: 1fr;
  }
}

.news-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.news-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.news-video-grid iframe {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: var(--radius-md);
}

.event-divider {
  border: 0;
  height: 1px;
  margin: 2rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .news-video-grid {
    grid-template-columns: 1fr;
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__panel {
  width: min(100%, 1200px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.image-lightbox__img {
  width: 100%;
  max-height: calc(100vh - 5.5rem);
  object-fit: contain;
  border-radius: var(--radius-md);
}

.image-lightbox__caption {
  color: var(--white);
  opacity: 0.88;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}

.image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  align-items: center;
}

.news-meta {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* color: var(--gold); */
  color: #c29bff;
  margin: 0;
}

.news-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-excerpt {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

/* Title chips */
.title-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.title-chips li {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.title-chips li:hover {
  border-color: var(--gold-dim);
  color: var(--white);
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.about-text.muted {
  opacity: 0.9;
}

.about-media {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.about-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
}

/* Hero (index) — เข้ากับพื้นมืด + accent ม่วง */
@keyframes hero-logo-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes hero-logo-glow {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(99, 0, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 28px rgba(99, 0, 255, 0.18);
  }
}

.hero-content .about-logo-panel {
  flex: none;
  width: fit-content;
  max-width: min(320px, 92vw);
  margin: 0 auto 1.5rem;
  padding: clamp(1.15rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.35rem);
  /* background: linear-gradient(
    165deg,
    rgba(20, 10, 35, 0.1) 0%,
    rgba(255, 255, 255, 0.256) 50%,
    rgba(255, 255, 255, 0.12) 100%
  ); */
  /* border: 1px solid rgba(255, 255, 255, 0.14); */
  /* backdrop-filter: blur(1px); */
  animation:
    hero-logo-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
    hero-logo-glow 4.5s ease-in-out 1.1s infinite;
}

.hero-content .about-logo-img {
  max-width: min(260px, 100%);
  animation: hero-logo-float 5.5s ease-in-out 1.1s infinite;
}

/* About — พื้นอ่อนให้โลโก้มองเห็นชัด */
.about-media .about-logo-panel {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.06);
  /* background: var(--panel-light); */
  /* box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 48px rgba(0, 0, 0, 0.35); */
}

.about-logo-img {
  display: block;
  width: 100%;
  max-width: min(300px, 100%);
  height: auto;
  aspect-ratio: 2829 / 1854;
  object-fit: contain;
}

.about-media-inner {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}

/* Event */
.event-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.event-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--surface-raised);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.event-box:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 8px 28px var(--gold-glow);
}

.event-box h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-box p,
.event-box ul {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.event-box ul {
  padding-left: 1.25rem;
}

/* Newsletter */
.newsletter-ewc {
  padding: 4rem 1.5rem;
  background: #080808;
  border-top: 1px solid var(--border);
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-inner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.newsletter-inner > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.contact-card {
  background: linear-gradient(180deg, rgba(23, 18, 45, 0.95), rgba(15, 11, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.contact-card-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.contact-card-header span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(99, 0, 255, 0.18);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-card-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.contact-card-list li strong {
  color: var(--white);
  font-weight: 700;
}

.contact-card-list li a {
  color: #c29bff;
  /* color: var(--gold); */
  text-decoration: none;
  word-break: break-all;
}

.contact-card-list li a:hover,
.contact-card-list li a:focus {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .contact-card-list li {
    grid-template-columns: 1fr;
  }
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--white);
  font-size: 1rem;
}

.newsletter-btn {
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  border: none;
  border-radius: 999px;
  color: #000;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.newsletter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.newsletter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(99, 0, 255, 0.35);
  filter: brightness(1.03);
}
.newsletter-btn:hover::before {
  left: 130%;
}
.newsletter-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Partners */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-item {
  margin: 0;
  padding: 0;
  width: 260px;
  max-width: 100%;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 280px;
  min-height: 88px;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.partner-item:hover .partner-logo {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(99, 0, 255, 0.15);
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: contain;
  object-position: center;
}

/* Footer */
.site-footer {
  padding: 2.5rem var(--section-px);
  border-top: 1px solid var(--border);
  background: var(--black);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-note {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-logo-panel {
    padding: 1.5rem 1.25rem;
  }
  .about-logo-img {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .header-logo {
    justify-content: center;
  }
  .header-logo-img {
    height: 40px;
    max-width: 100px;
  }
  .header-nav {
    width: 100%;
    flex: none;
  }
  .header-nav-panel {
    justify-content: center;
    padding: 0.35rem 0;
    gap: 0.15rem 0.35rem;
  }
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .event-split {
    grid-template-columns: 1fr;
  }
  .countdown-sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
  .hero-video-fallback {
    animation: none;
    transform: none;
  }
  .hero-content .about-logo-panel,
  .hero-content .about-logo-img {
    animation: none;
  }
  .hero-content .about-logo-panel {
    opacity: 1;
    transform: none;
  }
  .schedule-btn,
  .banner-cta,
  .newsletter-btn,
  .schedule-card,
  .news-card,
  .partner-item .partner-logo {
    transition: none;
  }
  .schedule-card:hover,
  .news-card:hover,
  .partner-item:hover .partner-logo {
    transform: none;
  }
  .schedule-btn::before,
  .banner-cta::before,
  .newsletter-btn::before {
    display: none;
  }
}
