/* =====================================================================
   THÁI NGUYÊN OPEN 2026 — Landing page
   Palette from brand: green #12be62 · deep #026739 · orange #f3822b
   ===================================================================== */
:root {
  --green: #12be62;
  --green-2: #0fa857;
  --green-deep: #026739;
  --ink: #04140c;
  --ink-2: #082117;
  --ink-3: #0d2e20;
  --orange: #f3822b;
  --orange-2: #ff9a3c;
  --cream: #f4fbf6;
  --white: #ffffff;
  --muted: rgba(244, 251, 246, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Unbounded", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1.1rem;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--ink); }

.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1240px, 100% - 4rem); } }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--green); }
.section__head { max-width: 860px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { margin-top: 1.4rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 640px; }
.section__head--center .section__lead { margin-inline: auto; }
.section__lead a { color: var(--green); border-bottom: 1px solid currentColor; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem .4rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.4rem;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(243,130,43,.2); }

.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .55rem .6rem .55rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .7s var(--ease), background .5s var(--ease), color .5s var(--ease), box-shadow .7s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-style: normal; font-size: 1rem;
  background: rgba(0,0,0,.14);
  transition: transform .7s var(--ease), background .5s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.08); }
.btn--lg { padding: .7rem .7rem .7rem 1.8rem; font-size: 1.02rem; }
.btn--lg .btn__icon { width: 42px; height: 42px; }
.btn--sm { padding: .4rem .45rem .4rem 1.1rem; font-size: .85rem; }
.btn--sm .btn__icon { width: 30px; height: 30px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: space-between; }
.btn--orange { background: var(--orange); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(243,130,43,.6); }
.btn--orange:hover { background: var(--orange-2); box-shadow: 0 18px 40px -12px rgba(243,130,43,.75); }
.btn--ghost { background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--ghost .btn__icon { background: rgba(255,255,255,.14); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark .btn__icon { background: var(--orange); color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid rgba(4,20,12,.5); }
.btn--ghost-dark .btn__icon { background: rgba(4,20,12,.12); }

.link { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--green); border-bottom: 1px solid rgba(18,190,98,.4); transition: border-color .4s var(--ease); }
.link:hover { border-color: var(--green); }

.tag {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(18,190,98,.16); color: var(--green); border: 1px solid rgba(18,190,98,.3);
  margin-bottom: 1rem;
}
.tag--orange { background: rgba(243,130,43,.14); color: var(--orange); border-color: rgba(243,130,43,.35); }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 900; }
.cursor { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.cursor__ball {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  animation: cursor-spin 2.4s linear infinite;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
@keyframes cursor-spin { to { rotate: 360deg; } }
.cursor.is-hover .cursor__ball { transform: scale(1.6); opacity: .9; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--white); mix-blend-mode: difference; }
@media (hover: none), (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); height: 180px; width: 14px; z-index: 850; pointer-events: none; }
.progress__track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line-2); border-radius: 2px; }
.progress__ball {
  position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb46b, #f3822b 60%, #a9481a);
  box-shadow: 0 0 0 3px rgba(243,130,43,.2);
}
@media (max-width: 900px) { .progress { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 700;
  display: flex; align-items: center; gap: 1.6rem;
  padding: .45rem .55rem .45rem .7rem;
  border-radius: 999px;
  background: rgba(4,20,12,.5);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .8s var(--ease), opacity .6s var(--ease), background .5s var(--ease);
  width: max-content; max-width: calc(100% - 2rem);
}
.nav.is-hidden { transform: translate(-50%, -140%); opacity: 0; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.nav__brand b { color: var(--green); font-weight: 900; }
.nav__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.15); }
.nav__links { display: flex; gap: .2rem; }
.nav__links a { padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: rgba(244,251,246,.78); transition: background .4s var(--ease), color .4s var(--ease); }
.nav__links a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); top: 50%; transition: transform .6s var(--ease); }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger.is-open span:first-child { transform: rotate(45deg); }
.nav__burger.is-open span:last-child { transform: rotate(-45deg); }
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav { gap: .8rem; }
}

.menu {
  position: fixed; inset: 0; z-index: 650;
  background: rgba(4,20,12,.86);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
  display: grid; place-items: center;
}
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu__inner { width: min(560px, 100% - 3rem); }
.menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 7vw, 2.6rem);
  padding: .5rem 0; border-bottom: 1px solid var(--line);
  transform: translateY(40px); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.menu__link em { font-family: var(--body); font-style: normal; font-size: .8rem; color: var(--orange); letter-spacing: .2em; }
.menu.is-open .menu__link { transform: translateY(0); opacity: 1; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .08s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .14s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .2s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .26s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .32s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: .38s; }
.menu.is-open .menu__link:nth-child(7) { transition-delay: .44s; }
.menu__foot { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; color: var(--muted); font-size: .9rem; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 3; background: var(--ink); color: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1rem 0; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 26s linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee__track span { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 1.4rem 1.2rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .35rem;
}
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; color: var(--white); }
.stat i { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--green); font-size: .9rem; }
.stat span { grid-column: 1 / -1; margin-top: .6rem; font-size: .8rem; color: var(--muted); }

/* ---------- Cards / Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.card { grid-column: span 4; padding: .45rem; border-radius: var(--r-xl); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.card--xl { grid-column: span 8; grid-row: span 2; }
.card--wide { grid-column: span 8; }
.card--map { grid-column: span 4; }
.card__inner {
  height: 100%; padding: 1.6rem; border-radius: calc(var(--r-xl) - .45rem);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12);
}
.card__inner h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; margin-bottom: .6rem; }
.card__inner p { color: var(--muted); font-size: .95rem; }
.card__big { font-size: clamp(1.8rem, 2.8vw, 2.4rem) !important; letter-spacing: -.02em; }
.card__big small { font-size: .5em; color: var(--orange); margin: 0 .3em; vertical-align: middle; }
.card__inner--photo { position: relative; padding: 0; overflow: hidden; min-height: 420px; }
.card__inner--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.6s var(--ease); }
.card:hover .card__inner--photo img { transform: scale(1.05); }
.card__overlay { position: absolute; inset: auto 0 0 0; padding: 2rem; background: linear-gradient(transparent, rgba(4,20,12,.92)); }
.card__overlay h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); max-width: 480px; }
.card__overlay p { max-width: 460px; }
.card__inner--place { padding: 0; overflow: hidden; min-height: 260px; display: grid; grid-template-rows: 150px 1fr; }
.place__court { position: relative; background: #0b3a26;
  background-image: radial-gradient(circle at 50% 100%, transparent 26%, rgba(255,255,255,.35) 26.5%, rgba(255,255,255,.35) 27.5%, transparent 28%),
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35));
  background-size: 100% 100%, 2px 100%, 42% 2px, 100% 2px; background-position: 0 0, 50% 0, 50% 100%, 0 45%; background-repeat: no-repeat; }
.place__pin { position: absolute; left: 50%; top: 42%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(243,130,43,.25); }
.place__pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(243,130,43,.6); animation: pin-pulse 1.8s var(--ease) infinite; }
@keyframes pin-pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.place__body { padding: 1.3rem 1.5rem 1.5rem; }
.place__body h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.place__body p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
@media (max-width: 1024px) { .card, .card--xl, .card--wide, .card--map { grid-column: span 6; } .card--xl { grid-row: auto; } }
@media (max-width: 640px) { .card, .card--xl, .card--wide, .card--map { grid-column: 1 / -1; } .card__inner--photo { min-height: 340px; } }

.checks { list-style: none; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: .95rem; }
.checks li b { color: var(--cream); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18,190,98,.2); }

/* ---------- Format / Bracket ---------- */
.format { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.bracket {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  padding: 1.6rem; border-radius: var(--r-xl);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  margin-bottom: 3rem;
}
.bracket__col { display: grid; align-content: center; gap: .7rem; }
.bracket__label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--green); margin-bottom: .4rem; }
.bnode {
  padding: .8rem 1rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  transition: transform .6s var(--ease), background .5s var(--ease), border-color .5s;
}
.bnode:hover { transform: translateX(4px); background: rgba(18,190,98,.12); border-color: rgba(18,190,98,.5); }
.bnode--vs { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bnode--vs em { font-style: normal; font-size: .65rem; color: var(--orange); letter-spacing: .1em; }
.bnode--final { background: var(--orange); color: var(--ink); border-color: transparent; font-size: .9rem; }
.bnode--final em { font-style: normal; opacity: .6; margin: 0 .3em; }
.bnode--final span, .bnode--bronze span { display: block; font-size: 1.4rem; margin-bottom: .2rem; }
.bnode--bronze { background: rgba(255,255,255,.08); }
.bracket__note { font-size: .78rem; color: var(--muted); font-family: var(--body); }
.bracket__lines { display: none; }
@media (max-width: 900px) { .bracket { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bracket { grid-template-columns: 1fr; } }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } }
.rule { padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .5s var(--ease), transform .7s var(--ease); }
.rule:hover { border-color: rgba(243,130,43,.5); transform: translateY(-4px); }
.rule__n { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: .8rem; letter-spacing: .1em; }
.rule h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: .7rem 0 .5rem; }
.rule p { color: var(--muted); font-size: .92rem; }

/* ---------- Prizes ---------- */
.prizes { background: var(--ink-2); overflow: hidden; }
.prizes::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(243,130,43,.14), transparent 60%); pointer-events: none; }
.podium { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1px; align-items: end; }
@media (max-width: 860px) { .podium { grid-template-columns: 1fr; gap: 1rem; } .prize--1 { order: -1; } }
.prize {
  position: relative; overflow: hidden;
  padding: 1.8rem 1.8rem 2rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  min-height: 330px;
  display: flex; flex-direction: column;
  transition: background .6s var(--ease);
}
.prize--2 { border-radius: var(--r-xl) 0 0 var(--r-xl); }
.prize--3 { border-radius: 0 var(--r-xl) var(--r-xl) 0; }
.prize--1 { min-height: 420px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: #11392a; z-index: 1; }
@media (max-width: 860px) { .prize, .prize--1, .prize--2, .prize--3 { border-radius: var(--r-xl); min-height: 0; } }
.prize:hover { background: #123d2c; }
.prize__bar { position: absolute; left: 0; right: 0; top: 0; height: 6px; }
.prize--1 .prize__bar { background: linear-gradient(90deg, #8a5a12, #ffd86b 35%, #fff2b8 50%, #ffd86b 65%, #8a5a12); }
.prize--2 .prize__bar { background: linear-gradient(90deg, #6b7280, #e5e7eb 35%, #ffffff 50%, #e5e7eb 65%, #6b7280); }
.prize--3 .prize__bar { background: linear-gradient(90deg, #6a3410, #e0956a 35%, #ffd2b3 50%, #e0956a 65%, #6a3410); }
.prize__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: auto; }
.prize__rank { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 7vw, 6.5rem); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.35); }
.prize--1 .prize__rank { color: #ffd86b; -webkit-text-stroke: 0; }
.prize__medal { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; }
.prize--1 .prize__medal { color: #ffd86b; border-color: rgba(255,216,107,.4); }
.prize h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 1.6rem 0 .9rem; letter-spacing: -.01em; }
.prize--1 h3 { font-size: 2rem; }
.prize ul { list-style: none; }
.prize ul li { padding: .6rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.prize ul li b { color: var(--cream); font-weight: 600; }
.prize__trophy { position: absolute; right: 1.4rem; top: 1.6rem; width: 84px; height: 84px; color: #ffd86b; opacity: .9; }
@media (max-width: 860px) { .prize__trophy { width: 64px; height: 64px; } }
.mvp {
  margin-top: 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem;
  padding: 1.2rem 1.6rem 1.2rem 1.2rem; border-radius: var(--r-lg);
  background: var(--ink-3); border: 1px solid var(--line);
}
.mvp__label { display: grid; justify-items: center; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--green); color: var(--ink); }
.mvp__label span { font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1; letter-spacing: .02em; }
.mvp__label small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-top: .25rem; }
.mvp h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: .2rem; }
.mvp p { color: var(--muted); font-size: .92rem; }
.mvp__icon { width: 44px; height: 44px; color: var(--orange); }
@media (max-width: 560px) { .mvp { grid-template-columns: auto 1fr; } .mvp__icon { display: none; } }

/* ---------- Register ---------- */
.register { background: var(--ink); }
.register__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
@media (max-width: 1024px) { .register__grid { grid-template-columns: 1fr; } }
.fees { display: grid; gap: .7rem; margin: 2rem 0; }
.fee { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .5s var(--ease), background .5s var(--ease); }
.fee:hover { border-color: rgba(18,190,98,.5); background: rgba(18,190,98,.06); }
.fee__for { color: var(--muted); font-size: .92rem; }
.fee__v { font-family: var(--display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; color: var(--white); }
.fee__v small { font-size: .6em; color: var(--green); margin-left: .1em; }
.fee--note { font-size: .85rem; color: var(--muted); background: rgba(243,130,43,.06); border-color: rgba(243,130,43,.3); }
.fee--note b { color: #ffd8b3; }
.docs h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: .8rem; }
.register__form { position: sticky; top: 100px; }
.form__shell { padding: .5rem; border-radius: var(--r-xl); background: rgba(18,190,98,.12); border: 1px solid rgba(18,190,98,.3); }
.form { padding: 1.8rem; border-radius: calc(var(--r-xl) - .5rem); background: var(--ink-2); box-shadow: inset 0 1px 1px rgba(255,255,255,.1); display: grid; gap: 1rem; }
.form__head h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.form__head p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--white);
  font: inherit; outline: none; transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,190,98,.15); }
.field input.is-invalid { border-color: var(--orange); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field__row { grid-template-columns: 1fr; } }
.form__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.step { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem .4rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: background .5s var(--ease), color .5s var(--ease); }
.step em { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: .7rem; }
.step.is-active { background: var(--green); color: var(--ink); }
.step.is-active em { background: rgba(4,20,12,.2); }
.step.is-done em { background: var(--orange); color: var(--ink); }
@media (max-width: 420px) { .step { font-size: .7rem; } .step em { display: none; } }
.fs { display: none; border: 0; gap: 1rem; }
.fs.is-active { display: grid; }
.roster__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.roster__head b { font-family: var(--display); font-weight: 700; font-size: .95rem; display: block; }
.roster__head small { color: var(--muted); font-size: .78rem; }
.roster__count { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--muted); }
.roster__count b { color: var(--green); font-size: 1.2rem; }
.roster { display: grid; gap: .5rem; max-height: 380px; overflow: auto; padding-right: .2rem; scrollbar-width: thin; }
.player { display: grid; grid-template-columns: 28px 1.6fr .7fr .55fr .9fr 30px; gap: .4rem; align-items: center; padding: .45rem; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.player > i { font-style: normal; font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--orange); text-align: center; }
.player input, .player select { width: 100%; padding: .55rem .6rem; border-radius: .7rem; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--white); font: inherit; font-size: .85rem; outline: none; }
.player input:focus, .player select:focus { border-color: var(--green); }
.player input.is-invalid { border-color: var(--orange); }
.player select option { color: var(--ink); }
.player__del { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--muted); font-size: .8rem; transition: background .4s, color .4s; }
.player__del:hover { background: rgba(243,130,43,.25); color: var(--orange); }
@media (max-width: 560px) { .player { grid-template-columns: 24px 1fr 30px; } .player .p-sm { grid-column: 2 / span 1; } }
.roster__add { padding: .8rem; border-radius: var(--r-md); border: 1px dashed rgba(18,190,98,.5); color: var(--green); font-weight: 600; font-size: .9rem; transition: background .4s var(--ease); }
.roster__add:hover { background: rgba(18,190,98,.08); }
.roster__add:disabled { opacity: .35; cursor: not-allowed; }
.roster__tools { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.summary { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.summary b { color: var(--cream); }
.summary .summary__fee { color: var(--orange); font-family: var(--display); font-weight: 700; font-size: 1rem; margin-top: .3rem; }
.agree { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.agree input { margin-top: .25rem; accent-color: var(--green); width: 16px; height: 16px; }
.agree a { color: var(--green); border-bottom: 1px solid currentColor; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.form__hint { font-size: .82rem; color: var(--muted); }
.form__hint a { color: var(--green); font-weight: 600; }
.form__done { padding: 1rem 1.2rem; border-radius: var(--r-md); background: rgba(18,190,98,.12); border: 1px solid rgba(18,190,98,.4); font-size: .92rem; }
.form__done b { color: var(--green); }
.form__done a { color: var(--orange); font-weight: 600; }

/* ---------- History / timeline ---------- */
.history { padding-bottom: 0; background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.history__head { margin-bottom: 3rem; }
.timeline { position: relative; overflow: hidden; }
.timeline__track { display: flex; gap: 3rem; padding: 0 max(1rem, calc((100vw - 1240px) / 2)) 3rem; will-change: transform; }
.season { flex: 0 0 auto; width: min(88vw, 980px); display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.season__head { position: sticky; top: 0; }
.season__year { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); }
.season__head h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: .6rem 0 .4rem; }
.season__head p { color: var(--muted); font-size: .92rem; max-width: 240px; }
.season__head .btn { margin-top: 1.2rem; }
.season__photos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 24vh, 230px); grid-auto-flow: dense; gap: .7rem; }
.season__photos--many { grid-template-columns: repeat(4, 1fr); }
.ph { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--ink-3); border: 1px solid var(--line); }
.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph:hover img { transform: scale(1.06); }
.ph::after { content: "↗"; position: absolute; right: .6rem; top: .6rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,20,12,.6); font-size: .8rem; opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); }
.ph:hover::after { opacity: 1; transform: translateY(0); }
.season--next { width: min(88vw, 760px); }
.season__poster { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(18,190,98,.6); }
.timeline__bar { height: 3px; background: var(--line); margin: 0 max(1rem, calc((100vw - 1240px) / 2)) 4rem; border-radius: 3px; overflow: hidden; }
.timeline__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--orange)); }
@media (max-width: 1024px) {
  .timeline { overflow: visible; }
  .timeline__track { flex-direction: column; gap: 4rem; padding: 0 1rem 2rem; }
  .season { width: 100%; grid-template-columns: 1fr; }
  .season__head { position: static; }
  .season__photos, .season__photos--many { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .timeline__bar { display: none; }
  .season--next { width: 100%; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--ink); }
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
@media (max-width: 1024px) { .faq__grid { grid-template-columns: 1fr; } }
.faq .section__head { margin-bottom: 0; position: sticky; top: 100px; }
.acc { display: grid; gap: .6rem; }
.acc__item { border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.03); overflow: hidden; transition: border-color .5s var(--ease); }
.acc__item[open] { border-color: rgba(18,190,98,.45); }
.acc__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); font-family: var(--body); font-weight: 400; transition: transform .6s var(--ease), background .4s; }
.acc__item[open] summary::after { transform: rotate(45deg); background: var(--green); color: var(--ink); }
.acc__body { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .95rem; }
.acc__body b { color: var(--cream); }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; background: var(--green); color: var(--ink); padding: clamp(6rem, 14vw, 11rem) 0; }
.final__ball {
  position: absolute; right: -8%; top: 50%; width: 46vw; max-width: 620px; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), transparent 34%),
    linear-gradient(rgba(20,10,0,.7), rgba(20,10,0,.7)) 50% 50% / 100% 6px no-repeat,
    linear-gradient(rgba(20,10,0,.7), rgba(20,10,0,.7)) 50% 50% / 6px 100% no-repeat,
    radial-gradient(circle at 50% 50%, #ff9a3c 0, #f3822b 55%, #9e4914 100%);
  box-shadow: inset -40px -50px 90px rgba(0,0,0,.3), 0 60px 120px -40px rgba(0,0,0,.4);
  overflow: hidden;
}
.final__ball::before, .final__ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 6px solid rgba(20,10,0,.7); }
.final__ball::before { transform: scaleX(.55); }
.final__ball::after { transform: scaleY(.55); }
.final__inner { position: relative; z-index: 1; }
.final__title { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 10vw, 8rem); line-height: .92; letter-spacing: -.035em; }
.final__title em { font-style: normal; color: var(--white); }
.final p { margin: 1.6rem 0 2.2rem; font-size: 1.1rem; max-width: 460px; color: rgba(4,20,12,.78); }
.final__cta { display: flex; gap: .9rem; flex-wrap: wrap; }
@media (max-width: 768px) { .final__ball { width: 70vw; right: -30%; top: auto; bottom: -20%; transform: none; opacity: .9; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.12); }
.footer__brand b { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.footer__brand p { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.footer__col h5 { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; }
.footer__col p, .footer__col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: .45rem; }
.footer__col a:hover { color: var(--white); }
.footer__col b { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer__credit { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .8rem .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .5s var(--ease), background .5s var(--ease), transform .6s var(--ease); }
.footer__credit:hover { border-color: rgba(24,186,189,.6); background: rgba(24,186,189,.08); transform: translateY(-2px); }
.footer__credit img { height: 22px; width: auto; }

/* ---------- Lightbox / video modal ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(4,20,12,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
  display: grid; place-items: center;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__fig { width: min(1100px, 92vw); max-height: 86vh; display: grid; gap: .8rem; justify-items: center; }
.lightbox__fig img { max-width: 100%; max-height: 78vh; border-radius: var(--r-lg); object-fit: contain; box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); transform: scale(.96); transition: transform .7s var(--ease); }
.lightbox.is-open .lightbox__fig img { transform: scale(1); }
.lightbox__fig figcaption { font-size: .85rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); font-size: 1rem; transition: background .4s var(--ease), transform .5s var(--ease); }
.lightbox__close:hover { background: var(--orange); color: var(--ink); transform: rotate(90deg); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 1.2rem; transition: background .4s var(--ease); }
.lightbox__nav:hover { background: var(--green); color: var(--ink); }
.lightbox__nav--prev { left: 1.2rem; } .lightbox__nav--next { right: 1.2rem; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 1.2rem; transform: none; } }

/* ---------- Reveal defaults (JS enhances) ---------- */
.reveal, .reveal-lines { opacity: 0; transform: translateY(36px); }
.no-js .reveal, .no-js .reveal-lines, .is-revealed { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-lines { opacity: 1; transform: none; filter: none; }
  .hero__title .line > span { transform: none; }
}


/* =====================================================================
   MOBILE PASS — horizontal rhythm instead of a long vertical stack
   ===================================================================== */
.swipe-hint { display: none; }
@media (max-width: 768px) {
  /* --- generic horizontal snap rails --- */
  .rail { display: flex !important; flex-wrap: nowrap; gap: .8rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 1rem; padding: .2rem 1rem 1rem; margin: 0 -1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; flex: 0 0 auto; }
  [data-swipe] .section__head::after { content: "← vuốt ngang để xem thêm →"; display: block; margin-top: 1rem; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
  .section { padding: 4.2rem 0; }
  .section__head { margin-bottom: 1.8rem; }
  .h2 { font-size: clamp(1.75rem, 8vw, 2.4rem); }

  /* --- marquee / stats --- */
  .marquee { padding: .7rem 0; }
  .marquee__track span { font-size: .78rem; }
  .stats { padding-top: 2.2rem; }
  .stats__grid { display: flex; flex-wrap: nowrap; gap: .6rem; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem .6rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .stats__grid::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 150px; scroll-snap-align: start; padding: 1rem 1.1rem; }
  .stat b { font-size: 2.2rem; }

  /* --- about bento -> rail --- */
  .bento { display: flex; flex-wrap: nowrap; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; margin: 0 -1rem; padding: .2rem 1rem 1rem; scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .card, .card--xl, .card--wide, .card--map { flex: 0 0 84%; scroll-snap-align: start; grid-column: auto; }
  .card__inner--photo { min-height: 380px; }
  .card__inner--place { min-height: 380px; grid-template-rows: 150px 1fr; }
  .card--wide .card__inner { min-height: 380px; }
  .checks li { font-size: .88rem; }

  /* --- format: bracket + rules rails --- */
  .bracket { display: flex; flex-wrap: nowrap; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.1rem; scrollbar-width: none; }
  .bracket::-webkit-scrollbar { display: none; }
  .bracket__col { flex: 0 0 74%; scroll-snap-align: start; align-content: start; }
  .rules { display: flex; flex-wrap: nowrap; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; margin: 0 -1rem; padding: .2rem 1rem 1rem; scrollbar-width: none; }
  .rules::-webkit-scrollbar { display: none; }
  .rule { flex: 0 0 76%; scroll-snap-align: start; }

  /* --- prizes: podium rail, champion first --- */
  .podium { display: flex; flex-wrap: nowrap; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; margin: 0 -1rem; padding: .2rem 1rem 1rem; scrollbar-width: none; align-items: stretch; }
  .podium::-webkit-scrollbar { display: none; }
  .prize, .prize--1, .prize--2, .prize--3 { flex: 0 0 80%; scroll-snap-align: start; min-height: 0; border-radius: var(--r-xl); padding: 1.5rem 1.4rem 1.6rem; }
  .prize--1 { order: -1; }
  .prize__rank { font-size: 4rem; }
  .prize__trophy { width: 60px; height: 60px; right: 1.2rem; top: 1.4rem; }
  .mvp { grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem; }
  .mvp__icon { display: none; }

  /* --- register: fees rail --- */
  .fees { display: flex; flex-wrap: nowrap; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; margin: 1.4rem -1rem; padding: .2rem 1rem .8rem; scrollbar-width: none; }
  .fees::-webkit-scrollbar { display: none; }
  .fee { flex: 0 0 68%; scroll-snap-align: start; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.1rem 1.2rem 1.2rem; }
  .fee__v { font-size: 1.6rem; }
  .fee--note { flex-basis: 86%; }
  .register__grid { gap: 2rem; }
  .form { padding: 1.3rem 1.1rem; }

  /* --- history: per-season photo strips --- */
  .history__head { margin-bottom: 1.4rem; }
  .timeline__track { gap: 2.4rem; padding: 0 0 1rem; }
  .season { gap: .8rem; }
  .season__head { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: baseline; padding: 0 1rem; }
  .season__year { font-size: 2.6rem; grid-row: span 2; }
  .season__head h3 { margin: 0; font-size: 1.05rem; }
  .season__head p { max-width: none; font-size: .85rem; }
  .season__head .btn { grid-column: 2; margin-top: .6rem; }
  .season__photos, .season__photos--many { display: flex; flex-wrap: nowrap; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; padding: 0 1rem .4rem; scrollbar-width: none; grid-auto-rows: auto; }
  .season__photos::-webkit-scrollbar { display: none; }
  .ph, .ph--tall, .ph--wide { flex: 0 0 62%; height: 230px; scroll-snap-align: start; grid-row: auto; grid-column: auto; }
  .ph--tall { flex-basis: 46%; }
  .ph--wide { flex-basis: 84%; }
  .season--next { padding: 0 1rem; }
  .season__poster { margin-top: .8rem; }

  /* --- faq / final / footer --- */
  .faq .section__head { position: static; }
  .final { padding: 4.5rem 0 5.5rem; }
  .final__title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .footer { padding-top: 2.5rem; }
}


/* =====================================================================
   PRELOADER v2 — dark court, ball drop, slam wipe
   ===================================================================== */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); overflow: hidden; color: var(--white); }
.preloader__court { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  font-family: var(--display); font-weight: 900; font-size: clamp(7rem, 30vw, 28rem); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.13); pointer-events: none;
}
.preloader__ball {
  position: absolute; left: 50%; top: calc(50% - 60px); width: 120px; height: 120px; margin-left: -60px;
  border-radius: 50%; overflow: hidden; transform: translateY(-120vh); will-change: transform;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 32%),
    radial-gradient(circle at 50% 50%, #ff9a3c 0, #f3822b 55%, #9c4a15 100%);
  box-shadow: inset -14px -18px 30px rgba(0,0,0,.3);
}
.preloader__ball i { position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(rgba(20,10,0,.8), rgba(20,10,0,.8)) 50% 50% / 100% 3px no-repeat, linear-gradient(rgba(20,10,0,.8), rgba(20,10,0,.8)) 50% 50% / 3px 100% no-repeat; }
.preloader__ball i::before, .preloader__ball i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(20,10,0,.8); }
.preloader__ball i::before { transform: scaleX(.55); }
.preloader__ball i::after { transform: scaleY(.55); }
.preloader__shadow { position: absolute; left: 50%; top: calc(50% + 64px); width: 120px; height: 22px; margin-left: -60px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(6px); opacity: 0; }
.preloader__meta { position: absolute; left: clamp(1.2rem, 5vw, 4rem); bottom: clamp(1.4rem, 6vh, 4rem); }
.preloader__count { font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 9vw, 7rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.preloader__count small { font-size: .35em; color: var(--green); margin-left: .12em; }
.preloader__label { margin-top: .5rem; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.preloader__label em { font-style: normal; color: var(--orange); }
.preloader__bar { margin-top: 1rem; width: min(320px, 60vw); height: 2px; background: rgba(255,255,255,.12); }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--green); }

/* =====================================================================
   HERO v2 — dark stage, layered poster, parallax
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero {
  position: relative; min-height: 100dvh; overflow: hidden;
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; left: 50%; bottom: -28%; width: 130vw; height: 95vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(18,190,98,.6) 0%, rgba(18,190,98,.2) 32%, transparent 62%); }
.hero__court { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bgtext { position: absolute; left: 0; right: 0; top: 7%; display: flex; justify-content: center; }
.hero__bgtext-in { display: grid; justify-items: center; font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 19vw, 19rem); line-height: .82; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.2); white-space: nowrap; will-change: transform; }
.hero__players { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding-left: 10%; z-index: 1; pointer-events: none; }
.hero__players-in { height: min(80vh, 780px); will-change: transform;
  -webkit-mask-image: linear-gradient(#000 84%, transparent 100%); mask-image: linear-gradient(#000 84%, transparent 100%); }
.hero__players-in img { height: 100%; width: auto; max-width: none; }
.hero__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 2; pointer-events: none;
  background: linear-gradient(transparent, rgba(4,20,12,.72) 55%, rgba(4,20,12,.95)); }
.hero__ball3d { position: absolute; right: 3%; top: 10%; width: 230px; height: 230px; z-index: 2; pointer-events: none; will-change: transform; }
.hero__ball3d canvas { position: relative; z-index: 1; width: 100% !important; height: 100% !important; }
.hero__ring { position: absolute; left: -31%; top: -31%; width: 162%; height: 162%; z-index: 2; animation: spin 22s linear infinite; }
.hero__ring text { font-family: var(--display); font-size: 5.2px; font-weight: 700; fill: var(--white); letter-spacing: .22em; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__ball-shadow { position: absolute; left: 14%; right: 14%; bottom: 2%; height: 14%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,.4), transparent 70%); animation: ball-shadow 2.6s ease-in-out infinite alternate; }
@keyframes ball-shadow { from { transform: scale(.85); opacity: .55; } to { transform: scale(1.05); opacity: .9; } }

.hero__stage { position: relative; z-index: 3; width: min(1280px, 100% - 2rem); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 2rem; padding-bottom: clamp(2.2rem, 6vh, 4.5rem); }
@media (min-width: 768px) { .hero__stage { width: min(1280px, 100% - 4rem); } }
.hero .eyebrow { border-color: rgba(255,255,255,.22); background: rgba(4,20,12,.5); margin-bottom: 1.1rem; }
.hero__title { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 12.5vw, 11.5rem); line-height: .82; letter-spacing: -.05em; color: var(--white); margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.hero__title .line--accent > span { color: var(--orange); }
.hero__lead { max-width: 440px; margin-top: 1.4rem; font-size: clamp(1rem, 1.2vw, 1.1rem); color: rgba(244,251,246,.82); }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__side { justify-self: end; width: min(100%, 380px); display: grid; gap: .7rem; }
.hero__countdown { padding: 1rem 1.2rem 1.1rem; border-radius: 1.4rem; background: rgba(4,20,12,.62); border: 1px solid rgba(255,255,255,.14); display: grid; gap: .6rem; }
.cd__label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.cd__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.cd { display: grid; text-align: center; }
.cd b { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.hero__meta { list-style: none; display: grid; gap: .4rem; }
.hero__meta li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .95rem; border-radius: .95rem; background: rgba(4,20,12,.5); border: 1px solid rgba(255,255,255,.09); }
.hero__meta span { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.hero__meta b { font-family: var(--display); font-weight: 700; font-size: .78rem; text-align: right; }
.hero__meta .hot { color: #ffd59a; }
.hero__scroll { position: absolute; right: 2.5rem; bottom: 1.3rem; z-index: 3; display: flex; align-items: center; gap: .6rem; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; opacity: .7; }
.hero__scroll span { width: 36px; height: 1px; background: var(--white); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: slide 1.6s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.eyebrow__x { display: inline; }
@media (max-width: 1024px) {
  .hero__stage { grid-template-columns: 1fr; }
  .hero__side { justify-self: start; width: 100%; }
  .hero__scroll { display: none; }
  .hero__ball3d { width: 170px; height: 170px; right: 4%; top: 12%; }
}
@media (max-width: 768px) {
  .hero { justify-content: flex-start; min-height: 0; padding-top: calc(var(--nav-h) + .4rem); }
  .hero__bgtext { top: 7%; }
  .hero__bgtext-in { font-size: 27vw; }
  .hero__players { position: relative; padding-left: 0; margin-top: .6rem; }
  .hero__players-in { height: 46vh; min-height: 300px; }
  .hero__shade { height: 46%; }
  .hero__ball3d { width: 110px; height: 110px; right: 3%; top: 9%; }
  .hero__ring text { font-size: 6.4px; }
  .hero__stage { width: 100%; padding: 0 1rem 1.8rem; margin-top: -3.4rem; gap: 1rem; }
  .hero .eyebrow { font-size: 9.5px; padding: .3rem .7rem .3rem .5rem; margin-bottom: .8rem; }
  .eyebrow__x { display: none; }
  .hero__title { font-size: clamp(3.6rem, 24vw, 5.6rem); }
  .hero__lead { margin-top: 1rem; font-size: .96rem; }
  .hero__cta { display: grid; grid-template-columns: 1.25fr 1fr; gap: .6rem; margin-top: 1.1rem; }
  .hero__cta .btn { justify-content: space-between; padding: .5rem .5rem .5rem 1rem; font-size: .88rem; }
  .hero__cta .btn__icon { width: 34px; height: 34px; }
  .hero__countdown { padding: .8rem 1rem .9rem; }
  .cd b { font-size: 1.5rem; }
  .hero__meta { display: flex; gap: .5rem; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem; scrollbar-width: none; }
  .hero__meta::-webkit-scrollbar { display: none; }
  .hero__meta li { flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: .15rem; white-space: nowrap; }
  .hero__meta b { text-align: left; }
}


/* =====================================================================
   HERO v3 — stadium atmosphere, speed type, sparks (overrides v2)
   ===================================================================== */
.hero { background: radial-gradient(ellipse at 50% 28%, #0b3a24 0%, #072a1a 42%, #04140c 100%); }
.hero__glow { background: radial-gradient(ellipse at 50% 100%, rgba(18,190,98,.7) 0%, rgba(18,190,98,.22) 30%, transparent 60%); }
.hero__smoke { position: absolute; inset: -12%; pointer-events: none; will-change: transform;
  background:
    radial-gradient(42% 50% at 18% 72%, rgba(18,190,98,.26), transparent 70%),
    radial-gradient(36% 46% at 82% 22%, rgba(18,190,98,.2), transparent 70%),
    radial-gradient(55% 40% at 55% 95%, rgba(4,60,30,.95), transparent 70%),
    radial-gradient(30% 30% at 50% 10%, rgba(255,255,255,.06), transparent 70%);
  filter: blur(28px); animation: smoke 16s ease-in-out infinite alternate; }
@keyframes smoke { to { transform: translate(2.5%, -2%) scale(1.07); } }
.hero__rays { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: repeating-linear-gradient(112deg, transparent 0 150px, rgba(255,255,255,.045) 150px 210px, transparent 210px 330px);
  -webkit-mask-image: linear-gradient(#000, transparent 72%); mask-image: linear-gradient(#000, transparent 72%); }
.hero__sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.hero__sparks i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #ffc27a;
  box-shadow: 0 0 10px 2px rgba(255,150,60,.75); opacity: 0; animation: spark var(--d) linear infinite; animation-delay: var(--delay); }
@keyframes spark { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(60px, -260px) scale(1.05); opacity: 0; } }
.hero__playerglow { position: absolute; left: 50%; bottom: -8%; width: 78vw; height: 62vh; transform: translateX(-46%); z-index: 0; pointer-events: none; filter: blur(22px);
  background: radial-gradient(ellipse at 50% 78%, rgba(18,190,98,.55), transparent 65%); }
.hero__streak { position: absolute; left: -8%; right: -8%; bottom: 10%; height: 12px; z-index: 2; pointer-events: none; opacity: .9;
  transform: rotate(-5deg); transform-origin: center;
  background: linear-gradient(90deg, transparent 5%, #ffb15a 32%, #f3822b 58%, transparent 92%);
  box-shadow: 0 0 46px rgba(243,130,43,.55); }
.hero__streak::after { content: ""; position: absolute; left: 6%; right: 10%; top: 26px; height: 3px; background: linear-gradient(90deg, transparent, rgba(255,177,90,.9), transparent); }
.hero__bgtext-in { color: rgba(18,190,98,.1); -webkit-text-stroke: 1.5px rgba(130,235,170,.32); text-shadow: 0 0 48px rgba(18,190,98,.35); transform: skewX(-6deg); }
.hero__title .line { transform: skewX(-7deg); padding-left: .08em; }
.hero__title .line > span { text-shadow: 0 8px 30px rgba(0,0,0,.55), 0 0 26px rgba(255,255,255,.14); }
.hero__title .line--accent > span { position: relative; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #ffbd6a 0%, #ff9a3c 45%, #e9731f 100%); text-shadow: none; filter: drop-shadow(0 10px 26px rgba(243,130,43,.45)); }
.hero__title .line--accent > span::after { content: ""; display: inline-block; width: .85em; height: .52em; margin-left: .14em; vertical-align: .06em;
  background: repeating-linear-gradient(transparent 0 .11em, #f3822b .11em .2em); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); opacity: .95; }
.hero__lead { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.btn__pre { width: 18px; height: 18px; flex: 0 0 auto; margin-right: -.15rem; }
.hero__countdown { background: linear-gradient(160deg, rgba(10,46,28,.86), rgba(4,20,12,.9)); border: 1px solid rgba(243,130,43,.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 60px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08), 0 0 40px -12px rgba(243,130,43,.45); }
.cd__label { color: var(--cream); }
.cd__label i { font-style: normal; color: var(--orange); letter-spacing: .05em; margin-left: .35rem; }
.cd { padding: .55rem .25rem .5rem; border-radius: .9rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.hero__meta li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .65rem; background: rgba(4,20,12,.62); }
.hero__meta svg { width: 18px; height: 18px; color: var(--orange); }
.hero__meta b { justify-self: end; }
.nav__links a { position: relative; }
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--orange); }
@media (max-width: 768px) {
  .hero__streak { bottom: auto; top: calc(var(--nav-h) + 46vh - 2rem); height: 9px; }
  .hero__playerglow { width: 140vw; height: 48vh; bottom: auto; top: 14vh; }
  .hero__rays { display: none; }
  .hero__meta li { grid-template-columns: auto auto; gap: .4rem .5rem; }
  .hero__meta li b { grid-column: 1 / -1; justify-self: start; }
  .hero__title .line { padding-left: .1em; }
}

/* hero v3.1 — wider cutout + mobile fixes */
.hero__players { padding-left: 12%; }
.hero__players-in { height: min(76vh, 740px); }
.hero__players-in img { width: auto; height: 100%; }
@media (max-width: 768px) {
  .hero__title .line--accent > span::after { display: none; }
  .hero__title { font-size: clamp(3.4rem, 22vw, 5.2rem); }
  .hero__players { padding-left: 0; }
  .hero__players-in { height: 42vh; min-height: 280px; }
}

/* hero v3.2 — title smaller & flush left, faces clear (per mockup) */
@media (min-width: 1025px) {
  .hero__stage { width: min(1400px, 100% - 3rem); grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
  .hero__copy { max-width: 520px; }
  .hero__title { font-size: clamp(3.6rem, 9vw, 8.4rem); }
  .hero__lead { max-width: 400px; margin-top: 1.1rem; font-size: 1rem; }
  .hero__cta { margin-top: 1.3rem; }
  .hero__cta .btn--lg { padding: .55rem .55rem .55rem 1.4rem; font-size: .95rem; }
  .hero__cta .btn--lg .btn__icon { width: 38px; height: 38px; }
  .hero__side { width: 360px; }
  .hero__countdown { padding: .9rem 1rem 1rem; }
  .cd b { font-size: 1.9rem; }
  .hero__players { padding-left: 15%; }
  .hero__players-in { height: min(78vh, 760px); }
  .hero__bgtext { top: 6%; }
  .hero__bgtext-in { font-size: clamp(6rem, 17vw, 17rem); }
  .hero__ball3d { width: 210px; height: 210px; right: 3.5%; top: 9%; }
}

/* hero v3.3 — breathing room around faces */
@media (min-width: 1025px) {
  .hero__title { font-size: clamp(3.4rem, 8.4vw, 7.8rem); }
  .hero__players { padding-left: 19%; }
  .hero__ball3d { width: 190px; height: 190px; right: 2%; top: 5%; }
  .hero__meta b { font-size: .72rem; }
  .hero__meta span { font-size: 9px; }
  .hero__meta li { padding: .5rem .85rem; }
}

/* =====================================================================
   MOBILE v2 — khung hẹp (Zalo ~360px): chống tràn khung + nút/nhãn nổi
   ===================================================================== */
/* nút phụ (ghost): kính tối, viền sáng, icon trắng -> đọc được trên ảnh & vệt cam */
.btn--ghost { background: rgba(4,20,12,.58); border: 1.5px solid rgba(255,255,255,.55); color: var(--white);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-shadow: 0 1px 2px rgba(0,0,0,.5);
  box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 16px 34px -16px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.85); }
.btn--ghost .btn__icon { background: var(--white); color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0,0,0,.6); }
.btn__pre { filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.btn--orange { box-shadow: 0 0 0 1px rgba(4,20,12,.35), 0 14px 30px -10px rgba(243,130,43,.7); }

/* nhãn nhỏ (tag / eyebrow): nền tối đặc hơn, chữ sáng hơn */
.tag { background: rgba(4,20,12,.82); color: #86f2b4; border: 1px solid rgba(18,190,98,.55); font-weight: 800;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); }
.tag--orange { background: rgba(4,20,12,.82); color: #ffb470; border-color: rgba(243,130,43,.6); }
.eyebrow { background: rgba(4,20,12,.62); border-color: rgba(255,255,255,.24); color: var(--white);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }

@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  /* grid/flex item không được phình quá cột (min-width:auto) */
  .hero__stage > *, .hero__copy > *, .hero__side > *, .register__grid > *, .register__info > *, .register__form > *,
  .form, .form > *, .fs > *, .faq__grid > *, .footer__grid > *, .season__head > *, .section__head, .section__head > * { min-width: 0; }
  .hero__cta { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .hero__cta .btn { width: 100%; }
  .hero__streak { top: calc(var(--nav-h) + 1rem + max(42vh, 280px) - 1.6rem); }
  .season__head { grid-template-columns: auto minmax(0, 1fr); }
  .season__head h3 { white-space: normal; }
  .roster__tools { flex-wrap: wrap; }
  .roster__tools .btn { flex: 1 1 auto; justify-content: space-between; }
  .roster__head { flex-wrap: wrap; }
  .footer__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 400px) {
  .hero__title { font-size: clamp(3rem, 21vw, 5rem); }
  .hero__lead { font-size: .92rem; }
  .season__year { font-size: 2.2rem; }
  .stat { flex-basis: 136px; }
  .form { padding: 1.1rem .9rem; }
  .form__head h3 { font-size: 1.15rem; }
  .step { padding: .5rem .25rem; font-size: .66rem; letter-spacing: 0; }
  .prize, .prize--1, .prize--2, .prize--3 { flex-basis: 86%; }
  .rule { flex-basis: 84%; }
  .card, .card--xl, .card--wide, .card--map { flex-basis: 88%; }
  .final__title { font-size: clamp(2.3rem, 13vw, 3.2rem); }
}
@media (max-width: 768px) { .stats__grid { width: auto; } }
@media (max-width: 768px) {
  .hero__ball3d { width: 100px; height: 100px; right: 2%; top: 3.5%; }
  .hero__ring text { font-size: 6.8px; }
}
@media (max-width: 768px) {
  .stats__grid { width: 100%; margin: 0; }
  .season__head .btn { grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }
}

/* registration result */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done p { margin-top: .35rem; }
.form__code { font-family: var(--display); color: var(--orange) !important; letter-spacing: .04em; white-space: nowrap; }

/* deposit QR */
.deposit { display: grid; gap: .9rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(18,190,98,.35); }
.deposit__head span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-2); }
.deposit__head strong { display: block; margin-top: .15rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--white); }
.deposit__grid { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 1rem; align-items: center; }
.deposit__qr { display: grid; justify-items: center; gap: .15rem; padding: .35rem .35rem .5rem; border-radius: var(--r-md); background: var(--white); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.deposit__qr img { width: 100%; height: auto; }
.deposit__qr small { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--green-deep); }
.deposit__info { display: grid; gap: .55rem; min-width: 0; }
.deposit__info > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; align-items: center; }
.deposit__info dt { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); }
.deposit__info dd { min-width: 0; font-weight: 700; font-size: .95rem; color: var(--white); overflow-wrap: anywhere; }
.deposit__info .deposit__amount { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--orange-2); }
.deposit__info button { padding: .22rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--ink); background: var(--green); white-space: nowrap; }
.deposit__note { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.form__done .deposit .btn { color: var(--ink); }
@media (max-width: 560px) {
  .deposit__grid { grid-template-columns: minmax(0, 1fr); }
  .deposit__qr { justify-self: center; width: min(240px, 100%); }
}

/* roster: cuộn riêng trong danh sách, không kéo cả trang */
.roster { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(18,190,98,.55) transparent; padding-right: .35rem; }
.roster::-webkit-scrollbar { width: 6px; }
.roster::-webkit-scrollbar-track { background: transparent; }
.roster::-webkit-scrollbar-thumb { background: rgba(18,190,98,.55); border-radius: 6px; }
@media (min-width: 561px) {
  .player { grid-template-columns: 26px minmax(0, 1.25fr) minmax(74px, .7fr) minmax(58px, .5fr) minmax(98px, .85fr) 30px; gap: .3rem; }
  .player input, .player select { padding-left: .5rem; padding-right: .4rem; font-size: .82rem; }
}

/* ---------- Ảnh đội và VĐV trong form ---------- */
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.logoup { position: relative; display: flex; align-items: center; gap: 1rem; padding: .7rem; border-radius: var(--r-md); border: 1px dashed rgba(18,190,98,.5); background: rgba(18,190,98,.06); cursor: pointer; transition: background .5s var(--ease), border-color .5s var(--ease); }
.logoup:hover { background: rgba(18,190,98,.12); }
.logoup:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,190,98,.15); }
.logoup.has-photo { border-style: solid; border-color: var(--line-2); background: rgba(255,255,255,.04); }
.logoup.is-invalid { border-color: var(--orange); background: rgba(243,130,43,.1); }
.logoup__box { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.08); }
.logoup__box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logoup__box i { font-style: normal; font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--green); }
.logoup__box img:not([hidden]) + i { display: none; }
.logoup__txt { display: grid; gap: .1rem; min-width: 0; }
.logoup__txt b { font-family: var(--display); font-weight: 700; font-size: .88rem; }
.logoup__txt small { color: var(--muted); font-size: .78rem; line-height: 1.35; }

.roster { max-height: min(560px, 64vh); gap: .55rem; }
.player, .player:nth-child(n) { grid-template-columns: 74px minmax(0, 1fr); gap: .55rem; align-items: stretch; padding: .5rem; }
.player__photo { position: relative; display: grid; place-items: center; min-height: 92px; border-radius: .8rem; overflow: hidden; border: 1px dashed rgba(18,190,98,.5); background: rgba(18,190,98,.06); color: var(--green); cursor: pointer; transition: background .5s var(--ease), border-color .5s var(--ease); }
.player__photo:hover { background: rgba(18,190,98,.14); }
.player__photo:focus-within { border-color: var(--green); }
.player__photo span { display: grid; justify-items: center; font-size: .72rem; font-weight: 600; line-height: 1.2; }
.player__photo span b { font-size: 1.15rem; font-weight: 500; }
.player__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.player__photo.has-photo { border-style: solid; border-color: var(--line-2); }
.player__photo.has-photo span { display: none; }
.player__photo.is-invalid { border-color: var(--orange); color: var(--orange); background: rgba(243,130,43,.1); }
.player__photo.is-busy { opacity: .5; }
.player__main { display: grid; gap: .4rem; align-content: center; min-width: 0; }
.player__top { display: grid; grid-template-columns: 24px minmax(0, 1fr) 30px; gap: .35rem; align-items: center; }
.player__top > i { font-style: normal; font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--orange); text-align: center; }
.player__sub { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr) minmax(0, 1fr); gap: .35rem; }
.player input, .player select { min-width: 0; }
.summary__team { display: flex; align-items: center; gap: .7rem; }
.summary__team img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; flex: 0 0 auto; }
@media (max-width: 560px) {
  .player__sub { grid-template-columns: minmax(0, 1fr) 68px; }
  .player__sub [data-p="dob"] { grid-column: 1 / -1; }
  .player__sub [data-p="no"] { grid-column: 2; grid-row: 2; }
  .player__sub select { grid-column: 1; grid-row: 2; }
  .player, .player:nth-child(n) { grid-template-columns: 66px minmax(0, 1fr); }
}
.roster__count { flex: 0 0 auto; white-space: nowrap; }
.roster__count b { display: inline; }
.field__hint { font-size: .76rem; line-height: 1.35; color: var(--muted); }

/* form: ô cùng chiều cao, ảnh chưa chọn thì ẩn hẳn */
.logoup__box img[hidden], .player__photo img[hidden] { display: none; }
.field__row { align-items: start; }
.field input, .field select { min-height: 56px; }
.field select { text-overflow: ellipsis; }

/* Ảnh đội hình */
.form__poster { margin-top: .9rem; }
.poster { width: min(560px, 100% - 1.5rem); max-width: none; max-height: calc(100dvh - 1.5rem); margin: auto; padding: 1rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--ink-2); color: var(--cream); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.poster[open] { display: grid; gap: .8rem; }
.poster::backdrop { background: rgba(2,10,6,.8); }
.poster__bar { display: flex; align-items: center; justify-content: space-between; }
.poster__bar b { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--white); }
.poster__close { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); }
.poster__stage { display: grid; place-items: center; min-height: 240px; border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.poster__stage img { width: 100%; height: auto; }
.poster__stage img[hidden], .poster__spin[hidden], .poster [hidden] { display: none; }
.poster__spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--orange); animation: posterspin .9s linear infinite; }
@keyframes posterspin { to { transform: rotate(360deg); } }
.poster__actions { display: grid; gap: .5rem; }
.poster__actions .btn { justify-content: space-between; }
.poster__hint { font-size: .8rem; color: var(--muted); }

/* ban huấn luyện trong form */
.roster--staff { max-height: none; overflow: visible; padding-right: 0; }
.player--staff .player__sub { grid-template-columns: minmax(0, 1fr); }
.player--staff .player__sub select { grid-column: 1; grid-row: auto; }
