/* BU CHAMPIONSHIP */

/* ── Knockout HTF (drop files into assets/fonts/ to activate) ── */
@font-face {
  font-family: 'Knockout HTF';
  src: url('../fonts/KnockoutHTF49-Liteweight.woff2') format('woff2'),
    url('../fonts/KnockoutHTF49-Liteweight.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Knockout HTF';
  src: url('../fonts/KnockoutHTF67-FullBantamwt.woff2') format('woff2'),
    url('../fonts/KnockoutHTF67-FullBantamwt.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Fallback / supporting fonts ── */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-400.woff2') format('woff2'),
    url('../fonts/barlow-condensed-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2'),
    url('../fonts/barlow-condensed-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2'),
    url('../fonts/barlow-condensed-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2'),
    url('../fonts/poppins-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2'),
    url('../fonts/poppins-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #005bff;
  --dark: #0b0e13;
  --darker: #060810;
  --white: #ffffff;
  --gold: #f5c518;
  --font-heading: 'Knockout HTF', 'Barlow Condensed', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  /* Figma dùng SVN-VT Redzone Classic (heading-type) cho hầu hết text */
  font-family: var(--font-heading);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

main {
  padding-top: 108px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 170px;
  top: -40px;
  padding-top: 40px;
}

/* Figma Background+Shadow image – full header bg */
.header-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block; pointer-events: none; z-index: 0;
}

.header-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 108px;
}

/* Logo area */
.header-logo-wrap {
  display: flex; align-items: center;
  flex-shrink: 0; height: 108px;
  position: relative; z-index: 2;
}

.header-logo-img {
  height: 108px; width: auto;
  object-fit: contain; object-position: left center;
  display: block;
  padding-left: 50px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--white);
}

.header-nav a.active {
  color: var(--blue);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.header-cta {
  display: flex; align-items: center;
  padding: 0 32px 0 20px;
}

/* Button uses Figma image */
.btn-register {
  display: inline-flex;
  align-items: center;
}

.btn-register-img {
  height: 56px; width: auto;
  display: block; transition: opacity 0.2s;
}

.btn-register:hover .btn-register-img {
  opacity: 0.88;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 0 35px 0 30px;
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
  height: 44px;
}

/* Toggle icons – two images, swap on open */
.nav-toggle-img {
  width: 52px;
  height: auto;
  display: block;
  transition: opacity 0.15s;
  position: absolute;
}

.nav-toggle {
  position: relative;
  width: 52px;
  height: 52px;
}

/* Default: show open-icon, hide close-icon */
.nav-toggle-open  { opacity: 1; pointer-events: none; }
.nav-toggle-close { opacity: 0; pointer-events: none; }

/* When open: swap */
.nav-toggle.open .nav-toggle-open  { opacity: 0; }
.nav-toggle.open .nav-toggle-close { opacity: 1; }

.nav-toggle:hover .nav-toggle-img { filter: brightness(1.15); }

/* ── Overlay ────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer (slide từ trái) ─────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1002;
  width: 280px;
  max-width: 85vw;
  background: #060810;
  border-right: 2px solid rgba(0, 91, 255, 0.45);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) 0 40px;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-drawer-item {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  position: relative;
}

.nav-drawer-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-drawer-item:hover,
.nav-drawer-item.active {
  color: var(--white);
  padding-left: 40px;
  background: rgba(0, 91, 255, 0.08);
}

.nav-drawer-item:hover::before,
.nav-drawer-item.active::before {
  opacity: 1;
}

.nav-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 24px;
  height: 52px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(6% 0%, 94% 0%, 100% 50%, 94% 100%, 6% 100%, 0% 50%);
  transition: opacity 0.2s;
}

.nav-drawer-cta:hover { opacity: 0.88; }

/* ══════════════════════════════════
   HERO SECTION
══════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Radial vignette – giảm opacity trung tâm để slogan nổi bật hơn */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 85% at 50% 48%,
      rgba(11, 14, 19, 0.30) 0%,
      rgba(11, 14, 19, 0.78) 52%,
      rgba(11, 14, 19, 0.96) 100%);
}

.hero-char {
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-char-left  { left: 0; }
.hero-char-right { right: 0; }

/* Figma: left char 537px / 605px section = 88.8%, right 507/605 = 83.8% */
.hero-char img { width: auto; height: calc((100vh - var(--header-h)) * 0.888); max-height: none; display: block; }
.hero-char-right img { height: calc((100vh - var(--header-h)) * 0.838); }

.hero-center {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 24px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -51%);
  width: 100%;
  max-width: 1160px;
  pointer-events: none;
  opacity: 0.92;
  z-index: 2;
  mix-blend-mode: screen;
}

.hero-banner-img {
  position: relative; z-index: 2;
  /* Figma: banner 771px wide in 1430px frame = 53.9% */
  width: 53.9%; max-width: 771px; min-width: 320px; height: auto;
  /* brightness(1.2) để slogan nổi bật hơn so với dark overlay */
  filter: drop-shadow(0 0 40px rgba(0, 91, 255, 0.5)) brightness(1.2);
}

.hero-layer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero-arrow {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

.hero-arrow img {
  display: block;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ══════════════════════════════════
   ABOUT / INTRO SECTION
══════════════════════════════════ */
.about {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: #08090d;
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.45;
}

.about-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: 601px 1fr;
  gap: 64px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.about-img-wrap {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 91, 255, 0.45);
  box-shadow: 0 0 40px rgba(0, 91, 255, 0.2);
  cursor: pointer;
  aspect-ratio: 601 / 545;
  max-height: calc(100vh - 200px);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.about-img-wrap:hover img {
  transform: scale(1.03);
}

.about-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(28, 246, 254, 0.2);
  backdrop-filter: blur(4px);
  border: 3px solid rgba(28, 246, 254, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.about-play::after {
  content: '';
  border-left: 30px solid #45f882;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-left: 8px;
}

.about-img-wrap:hover .about-play {
  background: rgba(28, 246, 254, 0.35);
}

/* Label row with trophy icon */
.about-label-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.about-trophy-icon {
  width: 76px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.about-label {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.about-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
  margin-bottom: 0;
}

.about-title span {
  color: var(--blue);
  display: block;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Figma PNG hexagon icons */
.about-feature-icon-img {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.about-feature-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 8px;
}

.text-blue {
  color: var(--blue);
  font-weight: 700;
}

.btn-community-img-wrap {
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-community-img-wrap:hover {
  opacity: 0.85;
}

.btn-community-img {
  height: 56px;
  width: auto;
  display: block;
}

/* ══════════════════════════════════
   SCHEDULE SECTION
══════════════════════════════════ */
.schedule {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.schedule-bg {
  position: absolute;
  inset: 0;
}

.schedule-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.schedule-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.schedule-char {
  position: absolute;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.schedule-char-left {
  left: 0;
}

.schedule-char-right {
  right: 0;
}

.schedule-char-left img {
  width: auto;
  height: calc(75vh - 81px);
  max-height: none;
  display: block;
}

.schedule-char-right img {
  width: auto;
  height: calc(75vh - 81px);
  max-height: none;
  display: block;
}

.schedule-content {
  position: relative;
  z-index: 2;
  max-width: 622px;
  margin: 0 auto;
  padding: 0 16px 16px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1;
  margin-top: 4px;
}

.schedule-date {
  font-family: var(--font-heading);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  margin: 18px 0 28px;
}

.btn-qualifier {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  height: 60px;
  padding: 0 24px;
  border-radius: 0;
  margin-bottom: 8px;
  clip-path: polygon(2% 0%, 98% 0%, 100% 50%, 98% 100%, 2% 100%, 0% 50%);
}

.schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Hexagon row shape – from Figma vector path M12.44 0 L609.56 0 L622 30 L609.56 60 L12.44 60 L0 30 Z */
/* Scaled to % of width: 12.44/622=2%, 609.56/622=98%, mid=50% height */
.schedule-row {
  position: relative;
  width: 100%;
  height: 60px;
  background: rgba(4, 28, 75, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px 0 60px;
  clip-path: polygon(2% 0%, 98% 0%, 100% 50%, 98% 100%, 2% 100%, 0% 50%);
}

/* Blue border via outline box behind */
.schedule-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 91, 255, 0.85);
  clip-path: polygon(2% 0%, 98% 0%, 100% 50%, 98% 100%, 2% 100%, 0% 50%);
  z-index: -1;
}

.schedule-row::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(4, 28, 75, 0.92);
  clip-path: polygon(2% 0%, 98% 0%, 100% 50%, 98% 100%, 2% 100%, 0% 50%);
  z-index: -1;
}

.schedule-row-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 14px;
}

.schedule-row-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  flex: 1;
}

.schedule-row-date-overlay {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* ══════════════════════════════════
   PRIZES SECTION
══════════════════════════════════ */
.prizes {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.prizes-bg {
  position: absolute;
  inset: 0;
}

.prizes-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prizes-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.prizes-content {
  position: relative;
  z-index: 1;
  max-width: 1350px;
  margin: 0 auto;
  padding: 32px 60px 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  margin-top: 24px;
}

/* Left: Champion group – transparent PNG from Figma */
.prizes-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
}

.prize-champion-img {
  width: 100%;
  max-width: 670px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 91, 255, 0.25));
}

/* Right: Other prizes */
.prizes-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 0 0 0 40px;
  justify-content: center;
  align-items: flex-start;
}

.prize-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.prize-badge-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.prize-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prize-rank-label {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.prize-amount {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ══════════════════════════════════
   SPONSORS SECTION
══════════════════════════════════ */
.sponsors {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: calc(20vh + 60px);
  /* room for watch section overlap */
}

.sponsors-bg {
  position: absolute;
  inset: 0;
}

.sponsors-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sponsors-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.sponsors-content {
  position: relative;
  z-index: 1;
  max-width: 1430px;
  margin: 0 auto;
  padding: 100px 185px 0;
  display: grid;
  grid-template-columns: 455px 471px;
  gap: 0 104px;
  align-items: start;
  width: 100%;
}

/* Desktop: text LEFT col 1, logo RIGHT col 2 (span 2 rows), button col 1 row 2 */
.sponsors-left  { grid-column: 1; grid-row: 1; }
.sponsors-right { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sponsors-btns  { grid-column: 1; grid-row: 2; margin-top: 24px; }

.sponsors-logo-big {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
}

.sponsors-desc {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 32px;
  max-width: 455px;
}

.sponsors-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-blue:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.sponsors-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  position: relative;
}

.sponsors-right::before {
  content: '';
  position: absolute;
  width: 394px;
  height: 315px;
  background: rgba(0, 21, 255, 0.35);
  border-radius: 50%;
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sponsors-right img {
  width: 471px;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.sponsors-grid {
  position: relative;
  z-index: 1;
  max-width: 1172px;
  margin: 40px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sponsor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 18px 12px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.sponsor-card:hover {
  border-color: rgba(0, 91, 255, 0.4);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  transition: filter 0.2s;
}

.sponsor-card:hover img {
  filter: none;
}

/* ══════════════════════════════════
   WATCH SECTION
══════════════════════════════════ */
.watch {
  position: relative;
  overflow: visible;
  min-height: 520px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Gradient dark → darker → dark để blend với sponsors và register */
  background: linear-gradient(180deg,
    rgba(6, 8, 16, 0) 0%,
    rgba(6, 8, 16, 0.85) 15%,
    #060810 35%,
    #060810 65%,
    rgba(6, 8, 16, 0.85) 85%,
    rgba(6, 8, 16, 0) 100%
  );
  margin-top: -20vh;
  padding: 80px 0;
  z-index: 2;
}

.watch-panel {
  width: 1065px;
  max-width: calc(100% - 200px);
  position: relative;
  z-index: 3;
}

.watch-panel-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile watch panel: hidden on desktop */
.watch-mobile-content { display: none; }

/* Precise transparent overlays – positions from pixel analysis of panel image */
/* Panel: 1065×330, YouTube btn: top=54.2% left=29.9% w=18.7% h=16.8% */
/* Fanpage btn: top=54.2% left=51.5% w=18.7% h=16.8% */
.watch-link-area {
  position: absolute;
  top: 54.2%;
  height: 16.8%;
  cursor: pointer;
  display: block;
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
}

.watch-link-yt {
  left: 29.9%;
  width: 18.7%;
}

.watch-link-fb {
  left: 51.5%;
  width: 18.7%;
}

/* Glow overlay on hover */
.watch-btn-glow {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s;
}

.watch-btn-glow--blue {
  background: rgba(100, 160, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 100, 255, 0.8);
}

.watch-btn-glow--orange {
  background: rgba(255, 200, 50, 0.35);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.8);
}

.watch-link-area:hover .watch-btn-glow {
  opacity: 1;
}

.watch-char {
  position: absolute;
  bottom: 30px;
  z-index: 4;
  pointer-events: none;
}

.watch-char-left {
  left: 18%;
}

.watch-char-right {
  right: 18%;
}

/* Figma: chars 492px tall, panel 330px → chars extend ~162px above panel */
.watch-char-left img {
  width: auto;
  height: 492px;
  display: block;
}

.watch-char-right img {
  width: auto;
  height: 492px;
  display: block;
}

/* ══════════════════════════════════
   REGISTER SECTION
══════════════════════════════════ */
.register {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.register-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.register-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.register-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.87);
}

.register-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 22px;
  z-index: 2;
  position: relative;
}

.register-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.register-title-wrap>div {
  text-align: center;
}

.coins-img {
  width: 108px;
  height: 92px;
  object-fit: contain;
  opacity: 0.95;
}

.coins-left {
  transform: scaleX(-1);
}

.coins-right {
  transform: scaleX(1);
}

.register-char {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.register-char-left {
  left: 0;
}

.register-char-right {
  right: 0;
}

.register-char-left img {
  height: calc(62vh - 108px);
  max-height: 440px;
  width: auto;
  display: block;
}

.register-char-right img {
  height: calc(70vh - 108px);
  max-height: 490px;
  width: auto;
  display: block;
}

/* Register card – full standalone image from Figma */
.register-card-standalone {
  width: 331px;
  max-width: 90vw;
  height: auto;
  z-index: 2;
  position: relative;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(0, 91, 255, 0.5));
}

.btn-register-now {
  display: inline-block;
  margin-top: 20px;
  transition: opacity 0.2s;
}

.btn-register-now:hover {
  opacity: 0.85;
}

.btn-register-now-img {
  height: 56px;
  width: auto;
  display: block;
}

.register-section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: transparent;
  padding: 0;
}

.footer-bar-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── CSS custom property for header height ── */
:root { --header-h: 108px; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  opacity: 0.8;
}

.scroll-top-img {
  width: 50px;
  height: 50px;
  display: block;
}

/* ══════════════════════════════════
   RESPONSIVE – TABLET (≤ 1024px)
══════════════════════════════════ */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  /* Keep register btn on tablet */
  .header-cta .btn-register { display: inline-flex; }
  .nav-toggle { display: flex; }

  /* Header layout: logo LEFT, [button + hamburger] grouped RIGHT (matches Figma) */
  .header-wrap { justify-content: flex-start; }
  .header-cta  { margin-left: auto; padding: 0 8px 0 0; }

  /* ── Hero · TABLET ──────────────────────────────────
     Figma: banner 707/758px=93%, chars 273/255px (44/43% of BG)
     Override cả height + min-height để prevent expansion trên tall viewports
     (iPad Air 820×1180: base min-height=1072px sẽ thắng nếu không override) */
  .hero {
    align-items: flex-start;
    height: 680px;
    min-height: 600px;
    max-height: 680px;
  }
  .hero-center { padding-top: 5vh; }

  .hero-banner-img {
    width: 88%;
    max-width: 680px;
  }

  .hero-char-left {
    left: 0;
  }
  .hero-char-left img {
    width: auto;
    height: clamp(260px, calc((100vh - var(--header-h)) * 0.44), 330px);
    display: block;
  }

  .hero-char-right {
    right: 0;
  }
  .hero-char-right img {
    width: auto;
    height: clamp(240px, calc((100vh - var(--header-h)) * 0.41), 308px);
    display: block;
  }

  /* About – 2 col (matches Figma tablet) */
  .about-wrap { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 24px; }
  .about-img-wrap { aspect-ratio: 601/545; height: auto; max-height: 58vh; }
  .about-label { font-size: 36px; }
  .about-title { font-size: 36px; }

  /* Reset full-viewport section heights from base CSS → allow content-height on tablet */
  .about    { height: auto; min-height: auto; }
  .schedule { height: auto; min-height: 580px; }
  .prizes   { height: auto; min-height: auto; }
  .sponsors { height: auto; min-height: auto; padding-bottom: 40px; }
  .register { height: auto; min-height: auto; }

  /* Schedule */
  .schedule-char-left img, .schedule-char-right img { height: clamp(400px, 62vh, 560px); }
  .schedule-content { padding: 40px 24px; max-width: 560px; }
  .section-title { font-size: 36px; }
  .section-subtitle { font-size: 36px; }
  .schedule-row { height: 52px; padding: 0 24px 0 48px; }
  .schedule-row-name { font-size: 20px; }
  .schedule-row-date-overlay { font-size: 20px; }
  .btn-qualifier { font-size: 20px; }

  /* Prizes – TABLET: Figma champion 446/768=58%, rows 263/768=34% */
  .prizes-content { padding: 40px 24px; }
  .prizes-grid { grid-template-columns: 58% 42%; gap: 0; }
  .prizes-left { justify-content: flex-end; padding-right: 16px; }
  .prize-champion-img { max-width: 420px; width: 100%; }
  .prizes-right { padding: 0 0 0 16px; gap: 18px; align-items: flex-start; }
  .prize-amount { font-size: 28px; }
  .prize-badge-img { width: 72px; height: 72px; }

  /* Sponsors – tablet */
  .sponsors-content { padding: 48px 24px; gap: 24px 32px; grid-template-columns: 1fr 1fr; }
  .sponsors-right img { width: 320px; }

  /* Watch – reset negative margin that causes watch to overlap sponsors on tablet */
  .watch { margin-top: 0; z-index: auto; min-height: 380px; padding: 48px 0; }
  .watch-char-left img, .watch-char-right img { height: 360px; }
  .watch-char-left{
    left: 0;
  }
  .watch-char-right{
    right: 0;
  }
  .watch-panel { max-width: calc(100% - 280px); }
  /* Also ensure sponsors doesn't have leftover gap meant for watch overlap */
  .sponsors { padding-bottom: 40px; }

  /* Register */
  .register-char-left img  { height: calc(60vh - var(--header-h)); max-height: 380px; }
  .register-char-right img { height: calc(68vh - var(--header-h)); max-height: 430px; }
  .register-card-standalone { width: 280px; }
  .coins-img { width: 80px; height: auto; }
}

/* ══════════════════════════════════
   RESPONSIVE – MOBILE (< 768px / ≤ 767px)
   768px itself is treated as tablet (matches Figma)
══════════════════════════════════ */
@media (max-width: 767px) {
  :root { --header-h: 80px; }
  main { padding-top: 80px; }

  /* Header */
  .header { height: 80px; top: 0;padding-top: 0;}
  .header-bg-img { height: 80px; }
  .header-logo-img { height: 80px; }
  .header-wrap { height: 80px; }
  /* Keep register btn on mobile (matches Figma) */
  .header-cta .btn-register { display: inline-flex; }
  .header-cta { padding: 0 8px; }
  .btn-register-img { height: 40px; }

  /* ── Hero · MOBILE ──────────────────────────────────
     Figma: banner 419/440px=95%, chars 292/264px (49/45% of BG)
     Hero capped at 630px; chars offset -5% so edges bleed like Figma */
  .hero {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    max-height: 630px;
    align-items: flex-start;
  }
  .hero-center { padding-top: 7vh; }

  .hero-banner-img {
    width: 92%;
  }

  .hero-char-left {
    left: 0;
  }
  .hero-char-left img {
    width: auto;
    height: 45vh;
    display: block;
  }

  .hero-char-right {
    right: 0;
  }
  .hero-char-right img {
    width: auto;
    height: 45vh;
    display: block;
  }

  /* About – 1 col stacked: video first, text below */
  .about { height: auto; min-height: auto; }
  .about-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    padding: 32px 30px;
  }
  /* Reset justify-content từ desktop (601px 1fr grid) */
  .about-wrap { justify-content: stretch; }
  .about-img-wrap { max-width: 100%; margin: 0; aspect-ratio: 601/545; height: auto; max-height: 48vh; }
  .about-text { width: 100%; }
  .about-label-wrap { gap: 12px; margin-top: 0; padding-left: 0; margin-bottom: 16px; }
  .about-trophy-icon { width: 48px; }
  .about-label { font-size: 34px; }
  .about-title { font-size: 34px; }
  .about-feature-icon-img { width: 64px; height: 64px; }
  .about-feature-text { font-size: 14px; }

  /* Schedule – Figma mobile: section 440x598, chars float at y=135-141 from top
     Left char: 242x306 | Right char: 309x326
     bottom ≈ (598-135-306)/598 ≈ 26% from section bottom */
  .schedule { height: auto; min-height: 580px; }
  .schedule-char { display: block; }
  .schedule-char-left {
    left: 0;
    bottom: 26%;
  }
  .schedule-char-left img {
    width: auto;
    height: 306px;
    display: block;
  }
  .schedule-char-right {
    right: 0;
    bottom: 22%;
  }
  .schedule-char-right img {
    width: auto;
    height: 326px;
    display: block;
  }
  .schedule-content { padding: 36px 16px 32px; gap: 0; }
  /* Figma mobile: headings=34px, schedule rows=20px */
  .section-title { font-size: 34px; }
  .section-subtitle { font-size: 34px; }
  .schedule-date { font-size: 20px; margin: 10px 0 16px; }
  .btn-qualifier { font-size: 20px; height: 54px; }
  .schedule-row { height: 54px; padding: 0 20px 0 44px; }
  .schedule-row-name { font-size: 20px; }
  .schedule-row-date-overlay { font-size: 20px; }
  .schedule-row-icon-img { width: 36px; height: 36px; }

  /* Prizes – MOBILE: Figma champion 406/440=92%, rows 326/440=74% h=70px */
  .prizes { height: auto; min-height: auto; }
  .prizes-content { padding: 36px 16px; }
  .prizes-grid { grid-template-columns: 1fr; gap: 24px; }
  .prizes-left { justify-content: center; padding-right: 0; }
  .prize-champion-img { width: 92%; max-width: 406px; margin: 0 auto; display: block; }
  .prizes-right { padding: 0; gap: 12px; align-items: stretch; width: 100%; }
  .prize-row {
    gap: 0;
    max-width: 340px;
    margin: 0 auto;
    min-height: 72px;
    align-items: center;
  }
  /* Badge column: fixed 72px, centered */
  .prize-badge-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 16px;
    display: block;
  }
  /* Text column: takes remaining width, left-aligned */
  .prize-info { flex: 1; }
  .prize-rank-label { font-size: 13px; }
  .prize-amount { font-size: 20px; white-space: nowrap; }

  /* Sponsors */
  .sponsors { height: auto; min-height: auto; padding-bottom: 60px; }
  .sponsors-content { grid-template-columns: 1fr; gap: 20px; padding: 36px 20px 24px; text-align: center; }
  /* Sponsors – mobile: text row1, logo row2, button row3 */
  .sponsors-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
    padding: 36px 20px 24px;
    text-align: center;
  }
  .sponsors-left  { grid-column: 1; grid-row: 1; }
  .sponsors-right {
    grid-column: 1; grid-row: 2;
    justify-content: center;
    padding-top: 0;
    align-self: auto;
  }
  .sponsors-right::before { display: none; }
  .sponsors-right img { width: 86%; max-width: 380px; }
  .sponsors-btns {
    grid-column: 1; grid-row: 3;
    justify-content: center;
    margin-top: 4px;
  }
  .sponsors-desc { font-size: 14px; margin-bottom: 0; }

  /* Watch – Figma mobile: stacked buttons (YouTube + Fanpage dọc)
     Chars visible, panel 384px (87% of 440px), section ~300px */
  .watch {
    min-height: auto;
    margin-top: 0;
    padding: 16px 0 24px;
  }
  .watch-char { display: block; }
  .watch-char-left {
    left: 0;
    bottom: 0;
  }
  .watch-char-left img {
    width: auto;
    height: 200px;
    display: block;
  }
  .watch-char-right {
    right: 0;
    bottom: 0;
  }
  .watch-char-right img {
    width: auto;
    height: 200px;
    display: block;
  }
  /* Hide desktop panel + overlays, show mobile content */
  .watch-panel-img { display: none; }
  .watch-link-area { display: none; }
  .watch-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 24px;
    background: #000b2e;
    border: 2px solid var(--blue);
    border-radius: 12px;
    width: 88%;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
  }
  .watch-mobile-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .watch-mobile-btn {
    display: block;
    width: 80%;
    max-width: 240px;
    transition: opacity 0.2s;
  }
  .watch-mobile-btn:hover { opacity: 0.85; }
  .watch-mobile-btn img { width: 100%; height: auto; display: block; }
  .watch-panel { max-width: 100%; }

  /* Register – Figma mobile: chars visible, card + button centered */
  .register { height: auto; min-height: auto; padding-bottom: 60px; }
  .register-char { display: block; }
  .register-char-left img  { height: 200px; max-height: none; }
  .register-char-right img { height: 220px; max-height: none; }
  .register-card-standalone { width: 260px; }
  .register-title-wrap { padding: 0 16px; gap: 10px; }
  .register-section-title { font-size: 24px; }
  .section-subtitle { font-size: 34px; }
  .coins-img { width: 64px; height: auto; }
  .btn-register-now-img { height: 48px; }
}

/* ══════════════════════════════════
   RESPONSIVE – SMALL MOBILE (≤ 479px)
══════════════════════════════════ */
@media (max-width: 479px) {
  :root { --header-h: 68px; }
  main { padding-top: 68px; }

  /* Header */
  .header { height: 68px; top: 0;padding-top: 0;}
  .header-bg-img { height: 68px; }
  .header-logo-img {padding-left: 20px; }
  .header-wrap { height: 68px; }
  .btn-register-img { height: 36px; }

  /* ── Hero · SMALL MOBILE (≤479px) ───────────────────────
     max-height giảm để chars overlap với banner (như Figma)
     Tính: banner ends ≈ 257px, chars start ≈ 520-300=220px → overlap 37px */
  .hero {
    height: calc(100vh - 68px);
    min-height: calc(100vh - 68px);
    max-height: 520px;
    align-items: flex-start;
  }
  .hero-center { padding-top: 5vh; }

  .about-label-wrap { padding-left: 5px; }

  .hero-char-left {
    left: -33%;
  }
  .hero-char-left img {
    width: auto;
    height: clamp(630px, calc((100vh - var(--header-h)) * 0.46), 300px);
    display: block;
  }

  .hero-char-right {
    right: -33%;
  }
  .hero-char-right img {
    width: auto;
    height: clamp(610px, calc((100vh - var(--header-h)) * 0.42), 278px);
    display: block;
  }

  /* About */
  .about-wrap { padding: 28px 16px; gap: 18px; }
  /* Figma: all headings 34px, schedule 20px (same as 440px design) */
  .about-label { font-size: 34px; }
  .about-title { font-size: 34px; }
  .about-trophy-icon { width: 48px; }
  .about-feature-icon-img { width: 60px; height: 60px; }
  .about-feature-text { font-size: 14px; }

  /* Schedule – scale chars down for 390px */
  .schedule-char-left img { height: 250px;}
  .schedule-char-right img { height: 268px;}
  .schedule-char-right {bottom: 32%;}
  .schedule-char-left {bottom: 32%;}
  .schedule-content { padding: 28px 12px; }
  .section-title { font-size: 34px; }
  .section-subtitle { font-size: 34px; }
  .schedule-date { font-size: 18px; }
  .btn-qualifier { font-size: 18px; height: 50px; margin-top: 50px;}
  .schedule-row { height: 50px; padding: 0 16px 0 36px; }
  .schedule-row-name { font-size: 18px; }
  .schedule-row-date-overlay { font-size: 16px; }
  .schedule-row-icon-img { width: 32px; height: 32px; margin-right: 8px; }

  /* Prizes – SMALL MOBILE */
  .prizes-content { padding: 28px 12px; }
  .prize-champion-img { width: 92%; max-width: 340px; }
  .prize-row { max-width: 300px; min-height: 64px; gap: 0; }
  .prize-badge-img { width: 62px; height: 62px; object-fit: contain; margin-right: 14px; }
  .prize-rank-label { font-size: 12px; }
  .prize-amount { font-size: 18px; }
  .prize-amount { font-size: 18px; }

  /* Sponsors */
  .sponsors-content { padding: 28px 16px 20px; }
  .sponsors-right img { width: 200px; }
  .btn-community-img { height: 46px; }

  /* Watch */
  .watch-panel { max-width: calc(100% - 20px); }

  /* Register */
  .register-card-standalone { width: 240px; }
  .register-section-title { font-size: 24px; }
  .section-subtitle { font-size: 34px; }
  .coins-img { width: 56px; }
  .btn-register-now-img { height: 46px; }
}