/* Yamaha Promo 2026 — "Phiêu xuân rộn ràng, Ngập tràn may mắn"
   Bố cục bám theo Figma "Yamaha-tet 2027": frame desktop 01_Homepage (1440 px) và 01_Mobile_Home (375 px).
   - Header + hero: toạ độ đo từ Figma theo "đơn vị thiết kế" --u (1/1440 bề ngang trên desktop, 1/375 trên mobile),
     nên ảnh layer luôn khớp vị trí dù màn hình rộng/hẹp.
   - Các section bên dưới: kích thước px đúng như Figma ở 1440, co giãn khi màn hình hẹp hơn. */

/* Font: Figma dùng Futura (thương mại). Thay bằng League Spartan (OFL, cùng khung Futura, đủ tiếng Việt).
   size-adjust 115% để chiều cao chữ hoa bằng Futura ở cùng cỡ chữ → cỡ chữ trong CSS = cỡ chữ trong Figma. */
@font-face {
  font-family: "Brand";
  src: url("/static/fonts/league-spartan-b159ab34.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 115%;
}

:root {
  --red: #c01800;
  --red-deep: #7a1a0c;
  --ink: #1d1d1b;
  --font: "Brand", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* vàng nút/ô: tối ở trên, sáng ở dưới (đo từ Figma) */
  --gold-grad: linear-gradient(180deg, #eaae1e 0%, #f0bd34 45%, #fbd749 100%);
  --gold-edge: #b8862f;
  /* chữ trắng viền nâu trên nút vàng */
  --txt-on-gold: 0 1px 0 #a46700, 0 -1px 0 #a46700, 1px 0 0 #a46700, -1px 0 0 #a46700, 0 2px 3px rgba(90, 50, 0, .45);
  --txt-on-red: 0 1px 0 #6a0000, 0 -1px 0 #6a0000, 1px 0 0 #6a0000, -1px 0 0 #6a0000, 0 2px 3px rgba(0, 0, 0, .35);
  --v: calc(100vw / 1440); /* cho phần tử fixed (side-nav) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* Nền đỏ Figma (ảnh radial + chấm sáng), xếp lặp dọc bắt đầu ngay dưới hero */
  background: var(--red) url("/static/img/bg-red-1440.webp") 50% calc(700 * 100vw / 1440) / 100% auto repeat-y;
  background-image: image-set(url("/static/img/bg-red-1440.webp") 1x, url("/static/img/bg-red-2560.webp") 2x);
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
.muted { opacity: .85; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── Nút vàng (hình bình hành như Figma) ───── */
.btn-gold {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; padding: 0 1.4em; min-height: 50px;
  color: #fff; font-family: var(--font); font-weight: 800; font-size: 15.5px; line-height: 1.1;
  letter-spacing: .02em; text-transform: uppercase; text-align: center; text-decoration: none;
  text-shadow: var(--txt-on-gold);
  transition: translate .18s ease, filter .18s ease;
}
.btn-gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-10deg);
  background: var(--gold-grad); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 245, 210, .9), inset 0 -2px 0 rgba(150, 95, 20, .55), 0 4px 10px rgba(80, 10, 0, .35);
}
.btn-gold:hover { filter: brightness(1.08); translate: 0 -2px; }
.btn-gold:active { translate: 0 1px; }
.btn-gold:disabled { filter: grayscale(.7); cursor: not-allowed; translate: none; }
.link-gold { background: none; border: 0; padding: 0; color: #fde047; font-weight: 800; text-transform: uppercase; }

/* ───── Ribbon đỏ viền vàng (tiêu đề nhóm form) ───── */
.ribbon {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  width: 367px; height: 51px; margin: 4px auto 0;
  font-weight: 800; font-size: 19.5px; letter-spacing: .01em; text-transform: uppercase; text-shadow: var(--txt-on-red);
}
.ribbon::before, .thead span::before, .social a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg);
  border: 3px solid #f2c355; border-radius: 3px;
  background: linear-gradient(180deg, #9f1200 0%, #bd210e 45%, #dd2f1c 100%);
  box-shadow: inset 0 0 0 1.5px #7a0400, 0 0 0 1px rgba(120, 70, 10, .5), 0 4px 10px rgba(60, 0, 0, .3);
}

/* ═════════════ HEADER + HERO (đơn vị thiết kế) ═════════════ */
.top { position: relative; container-type: inline-size; overflow-x: clip; }
.site-header, .hero { --u: calc(100cqw / 1440); }

.site-header { position: absolute; left: 0; top: 0; width: 100%; height: calc(108 * var(--u)); z-index: 40; }
.brand { position: absolute; top: 0; height: 100%; background: #fff; }
.brand img { position: absolute; }
.brand--yamaha { left: 0; width: calc(282 * var(--u)); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.brand--yamaha img { left: calc(52 * var(--u)); top: calc(27 * var(--u)); width: calc(164 * var(--u)); }
.brand--moloi { left: calc(1150 * var(--u)); width: calc(290 * var(--u)); clip-path: polygon(0 0, 100% 0, 100% 100%, 23.4% 100%); }
.brand--moloi img { left: calc(70 * var(--u)); top: calc(23 * var(--u)); width: calc(147 * var(--u)); }
.top-nav {
  position: absolute; left: calc(522 * var(--u)); top: calc(31 * var(--u)); height: calc(46 * var(--u));
  display: flex; align-items: center; gap: calc(82 * var(--u));
}
.nav-link, .nav-btn {
  font-weight: 800; font-size: calc(16 * var(--u)); text-transform: uppercase; text-decoration: none; color: #fff;
  letter-spacing: .01em; white-space: nowrap;
}
.nav-link { background: none; border: 0; padding: 0; text-shadow: var(--txt-on-gold); }
.nav-btn {
  display: grid; place-items: center; width: calc(263 * var(--u)); height: 100%;
  border-radius: calc(7 * var(--u)); background: var(--gold-grad); text-shadow: var(--txt-on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .9), inset 0 -2px 0 rgba(150, 95, 20, .5), 0 3px 8px rgba(40, 0, 30, .3);
}
.menu-btn { display: none; }

.hero { position: relative; z-index: 0; height: calc(800 * var(--u)); }
.hero__stage { position: absolute; inset: 0; }
.hero__stage > * {
  position: absolute; margin: 0; max-width: none;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u));
}
.hero__sky    { --x: -49; --y: -202; --w: 1524;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 92%); mask-image: linear-gradient(180deg, #000 78%, transparent 92%); }
.hero__road   { --x: -48; --y: 256; --w: 1526;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 80%); mask-image: linear-gradient(180deg, #000 62%, transparent 80%); }
.hero__riders { --x: 626.7; --y: 272; --w: 716.6; transform: rotate(-7deg); } /* Figma xoay layer 7° */
.hero__title  { --x: 397; --y: 102; --w: 635; }
.hero__title img { width: 100%; }
.hero__date { position: absolute; left: 37.5%; top: 76.1%; width: 29.8% !important; } /* % theo khung tiêu đề */
.hero__cta {
  --x: 585.5; --y: 318; --w: 245; height: calc(51 * var(--u)); min-height: 0; padding: 0;
  font-size: calc(15.5 * var(--u)); line-height: 1.12;
}
.hero__note {
  --x: 74; --y: 673.5; --w: 720;
  font-size: calc(12.45 * var(--u)); line-height: calc(21 * var(--u)); font-weight: 400;
}

/* Cụm giải thưởng: 1 ảnh nguyên cụm theo file khách gửi (Deal.png), khung 725 px Figma như badge cũ */
.prizes { --x: 17; --y: 338; --w: 725; aspect-ratio: 725 / 366; }
.prizes > * { position: absolute; margin: 0; }
.prizes__deal { left: 0; top: 0; width: 100%; height: auto; }

/* Side nav cố định, bám sát mép trái + căn giữa theo chiều cao màn hình
   (QC: để lệch vào trong thì che chữ của hero/form ở zoom 100%). */
.side-nav {
  --sn: clamp(50px, calc(60 * var(--v)), 62px); /* QC 01/12: khối màu to hơn */
  position: fixed; z-index: 30; left: 0; top: 50%; translate: 0 -50%;
  width: var(--sn); padding: calc(var(--sn) * .12) 0;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #ebb12b, #fed94f); border-radius: 0 14px 14px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.side-nav a, .side-nav button {
  width: 100%; height: calc(var(--sn) * 1.2); display: grid; place-items: center;
  background: none; border: 0; padding: 0; color: #fff; cursor: pointer;
}
.side-nav svg { width: calc(var(--sn) * .52); height: calc(var(--sn) * .52); fill: #fff; filter: drop-shadow(0 1px 1px rgba(122, 70, 0, .45)); }
.side-nav svg[fill="none"] { fill: none; }
.side-nav a, .side-nav button { position: relative; }
/* Nhãn khi rê chuột (thay tooltip mặc định của trình duyệt — QC 01/12: "popup to hơn") */
.side-nav a::after, .side-nav button::after {
  content: attr(aria-label); position: absolute; left: calc(100% + 14px); top: 50%; translate: -6px -50%;
  padding: 10px 18px; border-radius: 10px; white-space: nowrap; pointer-events: none;
  background: linear-gradient(180deg, #fed94f, #ebb12b); color: #7a1206;
  font-size: 17px; font-weight: 800; line-height: 22px; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3); opacity: 0; transition: opacity .15s ease, translate .15s ease;
}
.side-nav a:hover::after, .side-nav button:hover::after,
.side-nav a:focus-visible::after, .side-nav button:focus-visible::after { opacity: 1; translate: 0 -50%; }

/* ═════════════ SECTION QUAY THƯỞNG ═════════════ */
main { position: relative; overflow-x: clip; }
main::before, main::after { /* confetti Figma (2 lớp: dưới hero và vùng danh sách) */
  content: ""; position: absolute; z-index: 0; pointer-events: none; width: 1200px; aspect-ratio: 4096 / 2666;
  background: image-set(url("/static/img/confetti-1280.webp") 1x, url("/static/img/confetti-2400.webp") 2x) 0 0 / 100% 100% no-repeat;
}
main::before { left: calc(50% - 380px); top: -622px; clip-path: inset(380px 0 0 0); } /* chỉ phần dưới hero trở xuống */
main::after { left: calc(50% - 170px); top: 368px; width: 1000px; }
.spin-section, .winners { position: relative; z-index: 1; }

.spin-section { padding: 10px 20px 0; }
.title-img { margin: 0; display: flex; justify-content: center; }
.title-img img { width: auto; height: auto; }
.title-img--spin img { width: 561px; }
.campaign-closed {
  text-align: center; background: rgba(0, 0, 0, .25); border: 1px solid #f2c355;
  border-radius: 8px; padding: 12px; margin: 10px auto 0; max-width: 700px;
}
.spin-form { max-width: 986px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 16px; margin-top: 23px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 17px; max-width: 651px; margin: 3px auto 0; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field > span:not(.select2) { /* nhãn; loại trừ span container của Select2 */
  height: 18px; margin-bottom: 7px; font-weight: 800; font-size: 15px; line-height: 18px; text-transform: uppercase; color: #fff;
  letter-spacing: .01em; white-space: nowrap; text-shadow: 0 1px 2px rgba(80, 0, 0, .35);
}
.field input, .field select {
  width: 100%; height: 51px; border: 2px solid transparent; border-radius: 9px; padding: 3px 16px 0;
  font-size: 16px; font-weight: 500; color: #2b2b2b; background: #fff;
}
.field input::placeholder { color: #333; opacity: 1; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='11'%3E%3Cpath d='M0 0h17L8.5 11z' fill='%23777'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field select:disabled { background-color: #fff; color: #333; opacity: 1; cursor: not-allowed; }
.field input:focus, .field select:focus, .chassis__box:focus { outline: none; border-color: #f6c62e; box-shadow: 0 0 0 3px rgba(246, 195, 67, .45); }
.field.has-error input, .field.has-error select { border-color: #ffd400; background-color: #fff7d6; }
.field__err { display: block; height: 15px; font-size: 12px; line-height: 15px; font-style: normal; color: #ffe066; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.field__err--center { text-align: center; }

.ribbon--2 { margin-top: 19px; }
.chassis { width: 874px; max-width: 100%; margin: 29px auto 0; }
.chassis__label {
  display: flex; align-items: center; gap: 10px; height: 18px; margin-bottom: 15px;
  font-weight: 800; font-size: 15px; line-height: 18px; text-transform: uppercase; text-shadow: 0 1px 2px rgba(80, 0, 0, .35);
}
.hint {
  width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; flex: none;
  background: #f4a810; color: #fff; font-size: 12px; font-weight: 800; line-height: 19px;
}
.hint { cursor: help; }
.hint-wrap { position: relative; display: inline-flex; }
.hint-tip {
  position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 12px); translate: -50% 4px;
  width: min(340px, 80vw); padding: 12px 14px; border-radius: 10px;
  background: #fff; color: #3a1a12; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  font-size: 14px; font-weight: 500; line-height: 1.5; text-transform: none; text-shadow: none; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, translate .15s ease, visibility .15s;
}
.hint-tip b { display: block; margin-bottom: 2px; color: #c8171c; font-weight: 800; }
.hint-tip::after { /* mũi tên chỉ xuống dấu ? */
  content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0;
  border: 8px solid transparent; border-top-color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .hint-wrap:hover .hint-tip, .hint:focus-visible + .hint-tip { opacity: 1; visibility: visible; translate: -50% 0; }
}
.chassis__boxes { display: flex; justify-content: space-between; gap: 8px; }
.chassis__box {
  flex: 0 1 44px; min-width: 0; width: 44px; height: 44px; padding: 0;
  border: 2px solid transparent; border-radius: 9px; background: #fff; color: #222;
  text-align: center; font-size: 19px; font-weight: 700; text-transform: uppercase;
}
.chassis.has-error .chassis__box { border-color: #ffd400; background: #fff7d6; }

.consent { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 6px; font-size: 14px; line-height: 20px; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 34px; margin: 0;
  border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-items: center;
}
.consent input::after {
  content: ""; width: 15px; height: 8px; margin-top: -4px; border: solid #c0282b; border-width: 0 0 3.5px 3.5px;
  transform: rotate(-45deg); opacity: 0; transition: opacity .1s;
}
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 3px solid #f6c62e; outline-offset: 2px; }
.captcha { display: flex; justify-content: center; margin-top: 8px; }
.form-error { text-align: center; color: #ffe066; font-weight: 700; margin: 8px 0 0; }
.btn-submit { display: flex; width: 244px; height: 50px; margin: 15px auto 0; }

/* ───── Select2 (ô chọn có tìm kiếm) — giữ đúng hình ô nhập theo Figma ───── */
.field .select2-container { width: 100% !important; }
.field .select2-container--default .select2-selection--single {
  height: 51px; border: 2px solid transparent; border-radius: 9px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 3px 44px 0 16px; line-height: 47px; font-size: 16px; font-weight: 500; color: #2b2b2b;
}
.field .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #333; }
.field .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 16px; width: 17px; height: 100%; }
.field .select2-container--default .select2-selection--single .select2-selection__arrow b {
  left: 0; top: 50%; margin: -5.5px 0 0; border-width: 11px 8.5px 0; border-color: #777 transparent transparent;
  transition: transform .2s;
}
.field .select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-width: 11px 8.5px 0; border-color: #777 transparent transparent; transform: rotate(180deg);
}
.field .select2-container--focus .select2-selection--single,
.field .select2-container--open .select2-selection--single { border-color: #f6c62e; box-shadow: 0 0 0 3px rgba(246, 195, 67, .45); }
.field .select2-container--disabled .select2-selection--single { background: #fff; cursor: not-allowed; }
.field .select2-container--disabled .select2-selection__rendered { color: #333; }
.field.has-error .select2-selection--single { border-color: #ffd400; background-color: #fff7d6; }

.select2-dropdown {
  border: 2px solid #f6c62e; border-radius: 9px; overflow: hidden; background: #fff; color: #2b2b2b;
  font-family: var(--font); box-shadow: 0 10px 28px rgba(60, 0, 0, .35); z-index: 60;
}
.select2-container--open .select2-dropdown--below { margin-top: 4px; border-top: 2px solid #f6c62e; border-radius: 9px; }
.select2-container--open .select2-dropdown--above { margin-top: -4px; border-bottom: 2px solid #f6c62e; border-radius: 9px; }
.select2-search--dropdown { padding: 10px 10px 6px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  height: 42px; padding: 3px 12px 0 38px; border: 1.5px solid #e2c27a; border-radius: 7px; outline: none;
  font-size: 16px; font-weight: 500; color: #2b2b2b; /* ≥16px để iOS không tự phóng to khi gõ */
  background: #fffaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b0882a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m12.5 12.5 4 4'/%3E%3C/svg%3E") no-repeat 12px 50%;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: #f6bc1e; box-shadow: 0 0 0 3px rgba(246, 195, 67, .35); }
.select2-container--default .select2-results > .select2-results__options { max-height: 264px; padding: 2px 6px 8px; overscroll-behavior: contain; }
.select2-results__option { padding: 10px 12px 8px; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.select2-container--default .select2-results__option--selected { background: #fff3cf; color: #9f1200; font-weight: 700; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: linear-gradient(180deg, #ffda52, #ebb12b); color: #3a1a00;
}
.select2-results__message { color: #777; font-weight: 500; }
.s2-opt { display: block; }
.s2-opt b { display: block; font-weight: 700; }
.s2-opt small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #777; }
.select2-results__option--highlighted .s2-opt small { color: #5a3a00; }
.select2-results__option--selected .s2-opt small { color: #9f1200; opacity: .8; }
.select2-results__options::-webkit-scrollbar { width: 4px; }
.select2-results__options::-webkit-scrollbar-thumb { background: #f6bc1e; border-radius: 2px; }
@supports (-moz-appearance: none) { .select2-results__options { scrollbar-width: thin; scrollbar-color: #f6bc1e transparent; } }

/* ═════════════ DANH SÁCH TRÚNG GIẢI ═════════════ */
.winners { width: min(1274px, calc(100% - 40px)); margin: 48px auto 0; padding-bottom: 26px; }
@media (min-width: 1101px) { .winners { width: min(1274px, calc(100% - 120px)); } } /* chừa chỗ cho side-nav bám mép trái */
.winners__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.title-img--winners { margin-left: -12px; }
.title-img--winners img { width: 542px; }
.search {
  display: flex; align-items: center; width: 522px; height: 54px; padding: 0 5px 0 16px;
  background: #fff; border-radius: 9px; box-shadow: 0 3px 10px rgba(80, 0, 0, .25);
}
.search input { flex: 1; min-width: 0; border: 0; padding: 3px 0 0; font-size: 16px; font-weight: 500; color: #222; background: transparent; }
.search input::placeholder { color: #222; opacity: 1; }
.search input:focus { outline: none; }
.search__btn {
  flex: none; width: 130px; height: 44px; border: 0; border-radius: 7px; background: var(--gold-grad);
  font-weight: 800; font-size: 16px; text-transform: uppercase; color: #fff; text-shadow: var(--txt-on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .9), inset 0 -2px 0 rgba(150, 95, 20, .5), 0 2px 4px rgba(0, 0, 0, .25);
}
.winners__body { display: grid; grid-template-columns: minmax(0, 859px) 401px; justify-content: space-between; gap: 14px; margin-top: 30px; }

.thead { display: grid; grid-template-columns: repeat(4, 196px); gap: 20px; height: 41px; margin-top: 3px; }
.thead span {
  position: relative; isolation: isolate; display: flex; align-items: center; padding: 2px 0 0 20px;
  font-weight: 800; font-size: 16px; text-transform: uppercase; white-space: nowrap; text-shadow: var(--txt-on-red);
}
.thead span::before { transform: skewX(-11deg); }
.thead b { font-weight: inherit; }
.thead .m { display: none; }
.winners__scroll {
  height: 362px; margin-top: 17px; overflow-y: scroll; overscroll-behavior: auto;
}
@supports (-moz-appearance: none) { .winners__scroll { scrollbar-width: thin; scrollbar-color: #f6bc1e #fff; } }
.winners__scroll::-webkit-scrollbar { width: 4px; }
.winners__scroll::-webkit-scrollbar-track { background: #fff; border-radius: 2px; }
.winners__scroll::-webkit-scrollbar-thumb { background: #f6bc1e; border-radius: 2px; }
.winners__scroll:focus-visible { outline: 2px solid #f6c62e; outline-offset: 4px; }
.winners__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.winners__table td {
  height: 38px; padding: 1px 0 0 0; vertical-align: middle;
  font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* table-layout: fixed lấy độ rộng cột từ <col> (hàng đầu là thead ẩn nên không dùng được td). */
.winners__table .c1, .winners__table .c2, .winners__table .c3 { width: 216px; }
.winners__table td.muted { white-space: normal; }
/* Số khung hiện đủ 17 ký tự: màn hẹp thì xuống dòng thay vì bị cắt "…" */
.winners__table td.chassis-cell { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.winners__more td { text-align: center; opacity: .8; font-size: 14px; }

.winners__prize { position: relative; text-align: center; }
.tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: 204px 197px; height: 47px; }
.tabs::before { /* khung trắng chung, 2 đầu vát */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-9deg); background: #fff; border-radius: 3px;
  box-shadow: 0 3px 8px rgba(70, 0, 0, .25);
}
.tab {
  position: relative; isolation: isolate; border: 0; padding: 2px 0 0; background: none;
  font-weight: 800; font-size: 16px; text-transform: uppercase; color: #1d1d1b;
}
.tab.is-active { color: #fff; text-shadow: var(--txt-on-gold); }
.tab.is-active::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-9deg); background: var(--gold-grad); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .9), inset 0 -2px 0 rgba(150, 95, 20, .5);
}

/* Khung xe + số lượng giải (toạ độ theo Figma, gốc = góc trái tabs) */
.prize-show { position: relative; height: 463px; margin-top: 0; }
.prize-show > * { position: absolute; margin: 0; }
.prize-show__frame {
  left: 70px; top: 102px; width: 284px; height: 198px; border-radius: 12px;
  background:
    linear-gradient(180deg, #b30906, #d22810) padding-box,
    linear-gradient(160deg, #fff07e, #f6bf2c 35%, #cd8700 70%, #fad049) border-box;
  border: 9px solid transparent;
  box-shadow: inset 0 0 18px rgba(60, 0, 0, .45), 0 0 0 1px rgba(120, 60, 0, .35);
}
.prize-show__frame::before { /* hào quang cam phía sau */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 520px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 90, .95), rgba(250, 150, 40, .75) 35%, rgba(230, 70, 20, 0) 100%);
}
.prize-show__bike { left: 46px; top: 22px; width: 330px; }
.prize-show__num { left: 25px; top: 320px; width: 167px; }
.prize-show__name {
  left: 205px; top: 348px; font-style: italic; font-weight: 500; font-size: 28px; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.prize-show__word { left: 189px; top: 397px; width: 209px; }
.prize-meta { margin: 0; font-weight: 700; font-size: 16px; line-height: 20px; text-transform: uppercase; white-space: nowrap; }
.prize-count { margin: 7px 0 0; font-weight: 500; font-size: 18.4px; line-height: 27px; text-transform: uppercase; }
.prize-count b { font-weight: inherit; }

/* ═════════════ FOOTER ═════════════ */
.site-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 83px; padding: 4px max(20px, calc((100% - 1274px) / 2)) 0;
  background: linear-gradient(180deg, #ebb12b 0%, #f1c43a 45%, #ffda52 100%);
  box-shadow: inset 0 3px 0 #fcd47c, inset 0 4px 0 rgba(255, 255, 255, .5), 0 -2px 10px rgba(255, 210, 120, .45);
  color: var(--ink); font-size: 13.5px; font-weight: 600;
}
.site-footer p { margin: 0; }
.social { display: flex; align-items: center; gap: 9.5px; }
.social span { margin-right: 10px; white-space: nowrap; }
.social a { position: relative; isolation: isolate; width: 40px; height: 35px; display: grid; place-items: center; color: #fff; }
.social a::before { border-width: 2px; }
.social svg { width: 20px; height: 20px; fill: #fff; }
.social svg[fill="none"] { fill: none; }

/* ═════════════ MODALS ═════════════ */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 5, 5, .72); backdrop-filter: blur(3px);
}
.modal__box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 34px clamp(18px, 4vw, 48px) 28px; text-align: center;
  background: linear-gradient(180deg, #c8171c, #d7141a 40%, #e13a1f);
  border: 6px solid #f6bf2c; border-radius: 26px;
  box-shadow: inset 0 0 0 2px #ffe58a, 0 20px 60px rgba(0, 0, 0, .5);
}
.modal__box--wide { width: min(920px, 100%); }
.modal__box .title-img { margin-bottom: 18px; }
.modal__box .title-img img { max-width: min(100%, 560px); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.modal__box .btn-gold { min-width: 150px; height: 46px; }
.modal__x {
  position: absolute; z-index: 1; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px;
  display: grid; place-items: center; cursor: pointer;
  background: #f6bf2c; color: var(--ink);
}
.modal__x svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.modal__sub { margin: -6px 0 14px; font-size: 14px; }
.modal__text { font-size: 16px; line-height: 1.55; }
.modal__scroll {
  text-align: left; max-height: 46vh; overflow-y: auto; padding-right: 14px; margin-bottom: 20px;
  scrollbar-color: #f6bf2c rgba(255, 255, 255, .7);
}
/* QC 01/12: thể lệ cao gần bằng màn hình (điện thoại; desktop chỉnh trong @media min-width 761px) */
#modal-rules .modal__scroll { max-height: max(200px, calc(100vh - 310px)); max-height: max(200px, calc(100svh - 310px)); }
.rules { padding-left: 1.5em; line-height: 1.6; margin: 0 0 10px; font-size: 15px; }
.rules > li { margin-bottom: 10px; }
.rules > li::marker { font-weight: 700; }
.rules ul { margin: 4px 0 6px; padding-left: 1.2em; list-style: "– "; }
.rules ul ul { list-style: "+ "; }
.rules li li { margin-bottom: 4px; }
.rules p { margin: 8px 0 4px; }
.rules-table-wrap { overflow-x: auto; margin: 8px 0; }
.rules-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.rules-table th, .rules-table td { border: 1px solid rgba(255, 229, 138, .55); padding: 6px 8px; text-align: left; vertical-align: middle; }
.rules-table thead th { background: rgba(0, 0, 0, .18); font-weight: 700; }
.rules-table tfoot { font-weight: 700; }
.rules-table .num { text-align: right; white-space: nowrap; }
.title-gold {
  margin: 0 0 .5em; padding-top: .22em; line-height: 1.15; /* chừa chỗ cho dấu tiếng Việt trên chữ hoa (gradient chỉ phủ trong khung dòng) */
  font-weight: 800; font-size: clamp(26px, 3.4vw, 46px); text-transform: uppercase; text-align: center;
  background: linear-gradient(180deg, #fff6c8 0%, #ffe58a 35%, #f6c343 65%, #c98a12 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 var(--red-deep)) drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}
.title-gold--sm { font-size: clamp(20px, 2.4vw, 30px); }
.result-code { margin: -4px 0 14px; font-size: 13px; letter-spacing: .02em; opacity: .9; }
.result-code b { font-weight: 800; letter-spacing: .08em; }
/* Popup không còn dòng mã lượt quay: giữ khoảng cách phía trên nút Đóng */
#modal-lose .modal__text { margin-bottom: 22px; }
#modal-win .win-prize { margin-bottom: 16px; }
.win-info { margin: 0 0 6px; font-size: 15px; }
.win-info div { display: flex; justify-content: center; gap: 6px; }
.win-info dt { text-transform: uppercase; opacity: .9; }
.win-info dd { margin: 0; font-weight: 800; text-transform: uppercase; }
.win-prize-title { font-weight: 800; font-size: 20px; text-transform: uppercase; margin: 8px 0; }
.win-prize { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.win-amount { display: flex; align-items: center; gap: 8px; margin: 0; }
.win-amount img:first-child { width: 150px; }
.win-amount img:nth-child(2) { width: 170px; }
.bike-frame { position: relative; width: 300px; max-width: 100%; margin: 0 auto; padding: 18px 10px 4px; }
.bike-frame::before {
  content: ""; position: absolute; left: 22%; right: 6%; top: 20%; bottom: 8%;
  border: 6px solid #f6bf2c; border-radius: 10px;
  background: radial-gradient(circle at 50% 55%, #ffd34d 0%, #ff8a00 30%, rgba(215, 20, 26, 0) 72%);
  box-shadow: 0 0 30px rgba(255, 196, 0, .6);
}
.bike-frame img { position: relative; width: 100%; }
.bike-frame--lg { width: 320px; }
.spinning { text-align: center; }
.wheel { width: min(300px, 70vw); margin: 0 auto 16px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.wheel__rotor { transform-origin: 100px 100px; animation: spin .45s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═════════════ Popup theo Figma (desktop) ═════════════
   Đo từ mockup 1440×850 (_source_docs/02-*, 02.1-*, 03-*):
   - khung bắt đầu ở y=135 (ngay dưới header), rộng 955 (thể lệ / không trúng) và 879 (trúng giải)
   - nút X nằm NGOÀI khung: 53×46, cách mép phải 14px, ngang mép trên; nút ĐÓNG ~100×44
   - chữ: không trúng 18/28, thể lệ 15/23 (không thụt lề, không giãn giữa các mục), thông tin trúng 14/24 */
@media (min-width: 761px) {
  .modal { place-items: start center; overflow-y: auto; padding: clamp(16px, calc(100vh - 715px), 135px) 84px 16px; }
  .modal__box { overflow: visible; max-height: none; }
  .modal__box--wide { width: min(955px, 100%); padding: 34px 31px 22px; }
  .modal__box--win { width: min(879px, 100%); padding-bottom: 33px; }
  .modal__box .title-img { margin-bottom: 0; }
  .modal__box .btn-gold { min-width: 100px; min-height: 44px; height: 44px; padding: 0 1.55em; }

  .modal__x {
    top: -6px; right: auto; left: calc(100% + 20px); /* 6px viền + 14px khoảng cách */
    width: 53px; height: 46px; border-radius: 0; background: none; isolation: isolate;
  }
  .modal__x::before {
    content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-10deg); border-radius: 3px;
    background: var(--gold-grad);
    box-shadow: inset 0 1px 0 rgba(255, 245, 210, .9), inset 0 -2px 0 rgba(150, 95, 20, .55), 0 4px 10px rgba(80, 10, 0, .35);
  }
  .modal__x svg { width: 26px; height: 26px; stroke-width: 2.4; }
  .modal__x:hover { filter: brightness(1.08); }

  /* Không trúng */
  .modal__text { font-size: 18px; line-height: 28px; margin: 3px 0 10px; }
  #modal-lose .result-code { margin: 0 0 13px; }
  #modal-rules .modal__box { padding-bottom: 36px; }
  /* QC 01/12: popup thể lệ cao gần bằng màn hình (khung cách mép trên/dưới 24px) */
  #modal-rules.modal { padding-top: 24px; padding-bottom: 24px; }
  #modal-rules .modal__scroll { max-height: max(200px, calc(100vh - 330px)); }

  /* Thể lệ */
  .modal__sub { font-size: 15px; line-height: 23px; margin: 22px 0 22px; }
  .modal__scroll {
    max-height: clamp(160px, calc(100vh - 595px), 640px); margin: 0 0 22px; padding-right: 10px;
    font-size: 15px; line-height: 23px;
  }
  .rules { padding-left: 0; list-style-position: inside; font-size: 15px; line-height: 23px; margin: 0; }
  .rules > li { margin: 0; }
  .rules > li::marker { font-weight: inherit; }
  .rules > li > b { font-weight: inherit; }
  .rules ul { margin: 0; padding-left: 0; list-style-position: inside; }
  .rules li li { margin: 0; }
  .rules ul ul { padding-left: 1em; }
  .rules p { margin: 0; }
  .rules-table-wrap { margin: 6px 0; }
  .modal__scroll > p.muted { margin: 8px 0 0; }

  /* Trúng giải */
  .win-info { margin: 12px 0 0; font-size: 14px; line-height: 24.5px; }
  .win-info dd { font-weight: 700; }
  .win-prize-title { font-size: 20px; line-height: 28px; margin: -1px 0 0; }
  .win-prize { margin: 6px 0 4px; }
  #modal-win .result-code { margin: 0 0 12px; }
}

/* ═════════════ Màn hình vừa (tablet / laptop nhỏ) ═════════════ */
@media (max-width: 1320px) {
  .winners__body { grid-template-columns: minmax(0, 1fr) 401px; }
  .thead { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .winners__table td { width: auto; }
}
@media (max-width: 1100px) {
  .side-nav { display: none; }
  .spin-form { max-width: 100%; }
  .winners__body { grid-template-columns: 1fr; }
  .winners__prize { max-width: 401px; margin: 10px auto 0; }
  .search { width: 420px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .winners__head { flex-direction: column; align-items: center; }
  .title-img--winners { margin-left: 0; }
}

/* ═════════════ MOBILE (Figma 01_Mobile_Home, 375 px) ═════════════ */
@media (max-width: 760px) {
  body { background-position: 50% calc(300 * 100vw / 375); background-size: 250% auto; }
  .site-header, .hero { --u: calc(100cqw / 375); }

  .site-header { height: calc(44 * var(--u)); }
  .brand--yamaha { width: calc(249 * var(--u)); clip-path: polygon(0 0, 100% 0, 93.6% 100%, 0 100%); }
  .brand--yamaha img { left: calc(60 * var(--u)); top: calc(13 * var(--u)); width: calc(66 * var(--u)); }
  .brand--moloi { left: calc(147 * var(--u)); width: calc(52 * var(--u)); clip-path: none; background: none; }
  .brand--moloi img { left: 0; top: calc(15 * var(--u)); width: 100%; }
  .menu-btn {
    display: grid; place-items: center; position: absolute; z-index: 2; left: calc(14 * var(--u)); top: calc(4 * var(--u));
    width: calc(36 * var(--u)); height: calc(36 * var(--u)); padding: 0; border: 0; background: none; color: #1b1b1b;
  }
  .menu-btn svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
  .top-nav {
    display: none; position: absolute; left: 0; top: calc(44 * var(--u)); width: calc(249 * var(--u)); height: auto;
    flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px;
    background: rgba(125, 20, 10, .96); border: 2px solid #f2c355; border-left: 0; border-radius: 0 0 10px 0;
  }
  .top-nav.is-open { display: flex; }
  .nav-link, .nav-btn { font-size: 15px; }
  .nav-link { padding: 10px 0; }
  .nav-btn { width: 100%; height: 44px; border-radius: 7px; }

  .hero { height: calc(320 * var(--u)); }
  .hero__sky    { --x: -314; --y: -146; --w: 851; }
  .hero__road   { --x: -29; --y: 132; --w: 483; }
  .hero__riders { --x: 146; --y: 131; --w: 220; transform: none; }
  .hero__title  { --x: 89; --y: 57; --w: 213; }
  .prizes       { --x: -7; --y: 113.5; --w: 251; }
  .hero__cta    { --x: 26; --y: 236; --w: 162; height: calc(34 * var(--u)); font-size: calc(10.4 * var(--u)); }
  .hero__note   { --x: 20; --y: 282; --w: 345; font-size: calc(7.2 * var(--u)); line-height: calc(10.6 * var(--u)); }

  main::before { width: 760px; left: -250px; top: -60px; }
  main::after { width: 760px; left: -330px; top: 1500px; }

  .spin-section { padding: 38px 20px 0; }
  .title-img--spin img, .title-img--winners img { width: 346px; max-width: none; margin: 0 -6px; }
  .ribbon { width: 335px; max-width: 100%; height: 52px; margin-top: 10px; font-size: 19.5px; }
  .ribbon::before { transform: skewX(-13deg); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; max-width: 334px; margin-left: auto; margin-right: auto; }
  .grid-3 { margin-top: 23px; }
  .ribbon--2 { width: 333px; height: 48px; margin-top: 8px; }
  .chassis { width: 303px; margin-top: 28px; }
  .chassis__label { margin-bottom: 17px; }
  .chassis__boxes { flex-wrap: wrap; justify-content: center; gap: 7.5px 9px; }
  .chassis__box { flex: 0 0 43px; width: 43px; height: 44px; }
  .grid-2 { margin-top: 8.5px; }
  .field input::placeholder { font-size: 14.5px; }
  .field .select2-container--default .select2-selection--single .select2-selection__rendered { font-size: 14.5px; } /* không phải ô gõ → không bị iOS zoom */
  .consent { justify-content: flex-start; align-items: flex-start; gap: 9px; max-width: 324px; margin: 5px auto 0; padding-left: 6px;
    text-align: left; font-size: 13.5px; line-height: 19px; }
  .consent input { margin-top: 0; }
  .btn-submit { width: 242px; margin-top: 6.5px; }

  .winners { width: auto; margin: 29.5px 20px 0; padding-bottom: 18px; }
  .winners__head { flex-direction: column; align-items: stretch; gap: 0; }
  .title-img--winners { margin: 0; }
  .search { width: 100%; height: 54px; margin-top: 21.3px; padding-right: 5px; }
  .search__btn { width: 129px; height: 46px; }
  .winners__body { display: flex; flex-direction: column; gap: 0; margin-top: 22px; }
  .winners__prize { display: contents; }
  .tabs { order: 1; width: 333px; max-width: 100%; margin: 0 auto; grid-template-columns: 1fr 1fr; }
  .winners__list { order: 2; margin-top: 25px; }
  .prize-show { order: 3; }
  .prize-meta { order: 4; }
  .prize-count { order: 5; }
  .thead {
    position: relative; isolation: isolate; grid-template-columns: 76px 81px 81px 1fr; gap: 0;
    width: calc(100% + 14px); margin: 0 -7px; height: 41px; padding-left: 18px;
  }
  .thead::before {
    content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg);
    border: 3px solid #f2c355; border-radius: 3px; background: linear-gradient(180deg, #9f1200 0%, #bd210e 45%, #dd2f1c 100%);
    box-shadow: inset 0 0 0 1.5px #7a0400, 0 4px 10px rgba(60, 0, 0, .3);
  }
  .thead span { padding: 2px 0 0; font-size: 10px; }
  .thead .d { display: none; }
  .thead .m { display: inline; }
  .thead span::before { display: none; }
  .winners__scroll { height: 360px; margin-top: 16px; padding-left: 11px; }
  .winners__table { width: calc(100% - 4px); }
  .winners__table td { box-sizing: border-box; width: auto; height: 39.6px; padding: 0 6px 0 0; font-size: 10px; line-height: 14px; white-space: normal; vertical-align: top; }
  .winners__table .c1 { width: 76px; }
  .winners__table .c2, .winners__table .c3 { width: 81px; }
  .winners__table tr { height: 39.6px; }

  .prize-show { width: 335px; max-width: 100%; height: 382px; margin: 22px auto 0; }
  .prize-show__frame { left: 60px; top: 68px; width: 230px; height: 154px; border-width: 8px; }
  .prize-show__frame::before { width: 420px; height: 340px; }
  .prize-show__bike { left: 35px; top: 0; width: 275px; }
  .prize-show__num { left: -0.5px; top: 258px; width: 146px; }
  .prize-show__name { left: 155px; top: 287px; font-size: 25px; }
  .prize-show__word { left: 146px; top: 328px; width: 184px; }
  .prize-meta { font-size: 12px; line-height: 16px; white-space: normal; }
  .prize-count { margin-top: 4px; font-size: 14.7px; line-height: 22.5px; }

  .site-footer {
    flex-direction: column-reverse; align-items: flex-start; gap: 13px; min-height: 0; padding: 12px 20px 7px;
    font-size: 10.5px; line-height: 18px;
  }
  .social { flex-wrap: wrap; gap: 7.5px; }
  .social span { width: 100%; margin: 0 0 0.5px; }
  .social a { width: 42px; height: 34px; }
  .site-footer__copy { max-width: 335px; }

  .win-amount img:first-child { width: 96px; }
  .win-amount img:nth-child(2) { width: 120px; }
  .modal__box { padding-top: 58px; border-radius: 20px; }
  .win-prize-title { font-size: 16px; }
  .win-info { font-size: 13.5px; }
}

/* ═════════════ HIỆU ỨNG NHẸ ═════════════
   Chỉ animate opacity / translate / scale (chạy trên GPU, không gây reflow).
   Dùng thuộc tính riêng translate/scale để không ghi đè transform sẵn có (vd. riders xoay -7°). */
@keyframes fx-fade-up    { from { opacity: 0; translate: 0 18px; } }
@keyframes fx-fade-down  { from { opacity: 0; translate: 0 -14px; } }
@keyframes fx-from-left  { from { opacity: 0; translate: -36px 0; } }
@keyframes fx-from-right { from { opacity: 0; translate: 48px 0; } }
@keyframes fx-pop        { from { opacity: 0; scale: .9; } }
@keyframes fx-zoom-out   { from { scale: 1.06; } }
@keyframes fx-fade       { from { opacity: 0; } }
@keyframes fx-bob        { 50% { translate: 0 -5px; } }
@keyframes fx-float      { 50% { translate: 0 -7px; } }
@keyframes fx-breathe    { 50% { opacity: .78; scale: 1.04; } }
@keyframes fx-drift      { to { translate: 0 14px; } }
@keyframes fx-shine      { 0%, 62% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* Hero khi tải trang (trong màn hình đầu nên chạy bằng CSS, không cần chờ JS) */
.site-header { animation: fx-fade-down .6s ease-out both; }
.hero__sky { animation: fx-zoom-out 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__title { animation: fx-pop .8s cubic-bezier(.3, 1.4, .5, 1) .15s backwards; }
.prizes { animation: fx-from-left .8s cubic-bezier(.2, .7, .2, 1) .35s backwards; }
.hero__riders {
  animation: fx-from-right .9s cubic-bezier(.2, .7, .2, 1) .45s backwards, fx-bob 4.5s ease-in-out 1.5s infinite;
}
.hero__cta { animation: fx-fade-up .7s ease-out .65s backwards; }
.hero__note { animation: fx-fade .8s ease-out .85s backwards; }
@keyframes fx-side-nav { from { opacity: 0; translate: -100% -50%; } }
.side-nav { animation: fx-side-nav .6s ease-out .3s backwards; }

/* Vệt sáng lướt qua nút chính (cắt theo hình bình hành của nút) */
.hero__cta::after, .btn-submit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-10deg); border-radius: 3px; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%) 130% 0 / 250% 100% no-repeat;
  animation: fx-shine 4.2s ease-in-out 1.6s infinite;
}

/* Rê chuột */
.nav-link, .nav-btn, .search__btn, .social a, .side-nav svg, .tab { transition: translate .18s ease, filter .18s ease, color .18s ease, scale .18s ease; }
.nav-link:hover { translate: 0 -1px; color: #fff3b0; }
.nav-btn:hover, .search__btn:hover { translate: 0 -2px; filter: brightness(1.08); }
.search__btn:active, .nav-btn:active { translate: 0 1px; }
.social a:hover { translate: 0 -3px; filter: brightness(1.12); }
.side-nav a:hover svg, .side-nav button:hover svg { scale: 1.15; }
.tab:not(.is-active):hover { color: #c01800; }
.winners__table tbody tr { transition: background-color .15s; }
.winners__table tbody tr:hover { background: rgba(255, 255, 255, .07); }

/* Khung giải thưởng: xe lơ lửng, hào quang "thở"; đổi tab thì xe & chữ hiện lại */
.prize-show__bike { animation: fx-float 4s ease-in-out infinite; }
.prize-show__frame::before { animation: fx-breathe 4s ease-in-out infinite; }
.prize-show.is-swap .prize-show__bike { animation: fx-pop .5s cubic-bezier(.3, 1.3, .5, 1), fx-float 4s ease-in-out .5s infinite; }
.prize-show.is-swap .prize-show__num  { animation: fx-from-left .5s ease-out .05s backwards; }
.prize-show.is-swap .prize-show__name,
.prize-show.is-swap .prize-show__word { animation: fx-fade-up .5s ease-out .12s backwards; }

/* Confetti trôi rất chậm */
main::before, main::after { animation: fx-drift 7s ease-in-out infinite alternate; }
main::after { animation-duration: 9s; animation-delay: -3s; }

/* Popup */
.modal:not([hidden]) { animation: fx-fade .25s ease-out; }
.modal:not([hidden]) .modal__box { animation: fx-pop .35s cubic-bezier(.3, 1.3, .5, 1); }

/* Hiện dần khi cuộn tới (JS gắn .rv cho phần tử nằm dưới màn hình đầu, rồi .rv-in khi chạm viewport) */
.rv { opacity: 0; translate: 0 26px; }
.rv.rv-in {
  opacity: 1; translate: none;
  transition: opacity .7s ease-out var(--rv-d, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0s);
}

/* Người dùng bật "giảm chuyển động" → tắt hết hiệu ứng (giữ vòng quay khi đang quay thưởng, chậm lại) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .wheel__rotor { animation: spin 3s linear infinite !important; }
  .rv { opacity: 1; translate: none; }
}
