/* WeYoung Awards 2026 — trang gửi đề cử */
@font-face {
  font-family: "Cossette";
  src: url("https://event.mediacdn.vn/web_fonts/SVN-CossetteTexte-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cossette";
  src: url("https://event.mediacdn.vn/web_fonts/SVN-CossetteTexte-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* --r: bo góc khung · --gap: khe đen giữa các khung · --bw: viền khung · --edge: lề của UI cố định */
:root {
  --g: #18e265;
  --b: #7993ff;
  --bg: #f0f0f0;
  --ln: rgba(0, 0, 0, 0.2);
  --r: 32px;
  --gap: 2px;
  --edge: 20px;
  --bw: 2px;
  --rin: calc(var(--r) - var(--bw));
  --bz: calc(var(--gap) + var(--bw));
}
* {
  box-sizing: border-box;
}
html {
  background: #000;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #000;
  color: #000;
  font:
    14px/1.25 "Cossette",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
img {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
main {
  display: block;
}
layered-type {
  display: block;
}

/* khung bo góc — nội dung luôn crop trong round-rectangle viền đen, nền trang đen */
.frame {
  position: relative;
  margin: var(--gap);
  border: var(--bw) solid #000;
  border-radius: var(--r);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1.3px);
  background-size: 7px 7px;
  overflow: hidden;
  clip-path: inset(0 round var(--r));
  isolation: isolate;
}

/* ---------- nút / pill dùng chung ---------- */
.rbtn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.2s;
}
.rbtn:hover {
  transform: scale(1.07);
}
.btn-blk {
  height: 50px;
  padding: 0 40px;
  border-radius: 55px;
  background: #000;
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s;
}
.btn-blk:hover {
  transform: translateY(-2px);
}
.btn-blk.full {
  width: 100%;
  border-radius: 25px;
}
.btn-wh {
  height: 44px;
  padding: 0 20px;
  border-radius: 60px;
  background: #fff;
  border: 1px solid #d3d3d3;
  font: 700 16px "Cossette";
  letter-spacing: -0.02em;
}
.btn-grn {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  height: 50px;
  padding: 0 20px;
  border-radius: 25px;
  background: #4cf06b;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #000;
}
.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--g);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 16px;
  border-radius: 25px;
  border: 1px solid var(--ln);
  font-weight: 700;
  position: relative;
  background: #fff;
}
.pill.on {
  background: #000;
  color: #fff;
}
.pill select {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: inherit;
  outline: 0;
  padding-right: 4px;
  cursor: pointer;
  max-width: 240px;
}
.pill.sel img {
  width: 12.7px;
  height: 11px;
}

/* ================= HERO (cảnh 3D: modules/hero-lab.js vẽ vào canvas .lab-cv) ================= */
.hero {
  height: min(100svh - 24px, 100vw);
  margin-top: var(--gap);
}
.hero[data-mode="port"] {
  height: min(100svh - 16px, 190vw);
}

/* menu hạng mục + đoạn giới thiệu: chữ thật, đặt theo mép khung (không scale cùng stage) */
.s-menu {
  display: flex;
  gap: 21px;
  font-size: 12px;
}
.hero > .s-menu {
  position: absolute;
  left: auto;
  top: calc(var(--edge) - var(--gap) + 8px);
  right: calc(var(--edge) - var(--gap) + 120px);
  width: 642px;
  z-index: 3;
  transform-origin: 100% 0;
}
.hero[data-mode="port"] > .s-menu {
  display: none;
}
.s-menu .col {
  width: 200px;
}
.s-menu h3 {
  font-size: 14px;
  line-height: 14.5px;
  font-weight: 700;
  height: 38px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.s-menu h3 .plus {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  background:
    linear-gradient(#000, #000) center/12px 1.6px no-repeat,
    linear-gradient(#000, #000) center/1.6px 12px no-repeat;
}
.s-menu ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.s-menu ul.no-top {
  margin-top: 0;
}
.s-menu li {
  border-top: 1px solid #000;
  padding: 8px 0;
  line-height: 10px;
  white-space: nowrap;
}
.s-menu .no-top li:first-child {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 1250px) {
  .hero > .s-menu {
    width: 421px;
  }
  .hero > .s-menu .col:nth-child(3) {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero > .s-menu {
    display: none;
  }
}
.hero > .s-brand {
  position: absolute;
  left: calc(var(--edge) - var(--gap));
  top: auto;
  bottom: 88px;
  width: min(400px, calc(100% - 44px));
  text-align: left;
  z-index: 3;
}
.hero > .s-brand p {
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .hero > .s-brand {
    bottom: 84px;
  }
  .hero > .s-brand p {
    font-size: 11.5px;
  }
}
/* logo góc dưới trái: máy tính cố định (.fx-logo), điện thoại nằm trong hero và cuộn theo hero (.h-logo) */
.h-logo {
  display: none;
  position: absolute;
  left: calc(var(--edge) - var(--bz));
  bottom: calc(var(--edge) - var(--bz));
  z-index: 3;
}
.h-logo img {
  height: 36px;
  width: auto;
}
@media (max-width: 760px) {
  .h-logo {
    display: block;
  }
  .fx-logo {
    display: none;
  }
}

/* ================= bảng thông báo (lượt gửi + đếm ngược + Gửi đề cử), bật/tắt bằng chuông ================= */
.s-cards {
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 32px;
  text-align: left;
  width: 100%;
}
.stat {
  height: 156px;
  padding: 21px;
  display: flex;
  gap: 21px;
  overflow: hidden;
}
.stat > div {
  width: 127px;
  flex: none;
  min-width: 0;
}
.stat p {
  height: auto;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pill-blk {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  border-radius: 25px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  width: 127px;
}
.cd {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  font-weight: 700;
  font-size: 13px;
  width: 127px;
}
.cd b {
  width: 35.6px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 25px;
  border: 1px solid var(--ln);
  background: #fff;
  font-size: 13px;
}
.cd b::after {
  content: attr(data-u);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.6;
}
.cd em {
  font-style: normal;
  width: 2px;
  text-align: center;
}
.cta {
  height: 304px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  transition: transform 0.25s;
}
.cta:hover {
  transform: translateY(-3px);
}
.cta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 275px;
}
.cta-top strong {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.cta-txt {
  display: block;
  margin-top: 12px;
  width: 222px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.65;
}
.cta-box {
  position: absolute;
  left: 21px;
  top: 160px;
  width: 275px;
  height: 125px;
  border-radius: 25px;
  background: var(--g);
  overflow: hidden;
}
/* video các bước gửi đề cử (tools/rec/record.mjs) */
.cta-vid {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--ln);
  pointer-events: none;
}
.bell {
  z-index: 3;
}

/* ================= PHASES ================= */
.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0 var(--gap);
}
.ph {
  position: relative;
  height: 256px;
  border: var(--bw) solid #000;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
  clip-path: inset(0 round var(--r));
}
.ph .chk {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 116px;
  background: conic-gradient(var(--g) 0 25%, var(--b) 0 50%, var(--g) 0 75%, var(--b) 0) 0 0/80px
    116px;
}
.tags2 {
  position: absolute;
  left: 20px;
  top: 25px;
  display: flex;
  gap: 10px;
}
.tags2 span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  border-radius: 25px;
  background: #000;
  color: #fff;
}
.tags2 .t2 {
  font-weight: 700;
}
.ph h3 {
  position: absolute;
  left: 20px;
  top: 128px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  width: calc(60% - 20px);
  white-space: nowrap;
  z-index: 1;
}
.ph p {
  position: absolute;
  left: 20px;
  top: 165px;
  width: calc(60% - 20px);
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.38;
  font-size: 13px;
}
/* giai đoạn chưa tới: tag viền xám, không đen */
.ph:not(.on) .tags2 span {
  background: #fff;
  color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ln);
}
/* ô ảnh bên phải mỗi giai đoạn (320×256, ảnh PNG trong suốt 2x) — chỗ để thay object 3D */
.ph-obj {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
}
.ph-obj img,
.ph-obj canvas,
.ph-obj video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= FEED ================= */
.feed {
  --lw: 340px;
  padding: 72px 33px 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (min-width: 778px) {
  .feed {
    --lw: 704px;
  }
}
@media (min-width: 1142px) {
  .feed {
    --lw: 1068px;
  }
}
@media (min-width: 1506px) {
  .feed {
    --lw: 1432px;
  }
}
.big {
  position: relative;
  width: clamp(300px, 31vw, 584px);
  aspect-ratio: 584/333;
  margin: 0 auto;
}
.big .bigtxt {
  position: absolute;
  inset: 0;
}
.lead {
  width: min(516px, 100%);
  margin: 32px auto 0;
  text-align: center;
  line-height: 1.51;
  color: rgba(0, 0, 0, 0.7);
}
.lead b {
  font-weight: 400;
}
/* thanh lọc rộng đúng bằng khối thẻ (n cột × 340 + (n-1) × 24) */
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 52px;
}
.fl {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}
.filters .sel {
  min-width: 0;
  flex: 0 1 auto;
}
.filters .sel select {
  min-width: 0;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.filters .pill {
  flex: none;
}
.filters .fl .sel {
  flex: 0 1 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 340px);
  gap: 9px 24px;
  margin-top: 32px;
}
.feed .filters,
.feed .grid {
  width: var(--lw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.feed .grid {
  justify-content: space-between;
}
.more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* thẻ đề cử: nền SVG .nbg (wy26.js) là chữ nhật bo góc khoét tròn, avatar tròn nằm lọt trong chỗ khoét;
   mô tả + "Đọc thêm" bám đáy thẻ */
.nc {
  --avatar-size: 105px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 340px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
  transition: transform 0.25s;
}
.nc {
  transform-origin: calc(var(--avatar-size) / 2) 50%;
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.nc:hover {
  transform: rotate(-4deg);
}
@media (hover: none) {
  .nc:hover {
    transform: none;
  }
}
.nc.rv:not(.in) {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}
.nc.rv.in {
  animation: nc-in 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d, 0s) backwards;
}
@keyframes nc-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
}
.rb:not(.in) {
  opacity: 0;
  translate: 0 26px;
}
.rb.in {
  animation: rb-in 0.85s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d, 0s) backwards;
}
@keyframes rb-in {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}
.nc .nbg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}
.nc-ph {
  position: relative;
  z-index: 2;
  flex: none;
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin-right: calc(var(--avatar-size) * -0.5);
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: #fff;
  overflow: hidden;
}
.nc .av {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #e6e6e6;
}
.nc-bd {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 14px calc(var(--avatar-size) * 0.5);
}
.nc-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.nc .cat {
  display: block;
  max-width: 100%;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--ln);
  border-radius: 22px;
  font-family: inherit;
  font-size: 13px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc .nm {
  margin: 0;
  min-height: 0;
  padding-bottom: 0.12em;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-bt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.nc .ds {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc .more-r {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
  color: #08bf4e;
}
.nc .new {
  position: absolute;
  right: -6px;
  top: -10px;
  z-index: 3;
  width: 68px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: rotate(8.9deg);
  pointer-events: none;
}
.nc .new img {
  position: absolute;
  inset: 0;
  width: 63px;
  margin: auto;
}
.nc .new b {
  position: relative;
  font: 700 15px "Cossette";
  letter-spacing: -0.04em;
  margin-top: -4px;
}
@media (max-width: 435px) {
  .feed .filters,
  .feed .grid {
    width: 100%;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nc {
    width: 100%;
    min-width: 0;
  }
  .filters {
    gap: 4px;
  }
  .filters .pill {
    padding: 0 11px 0 13px;
    gap: 6px;
  }
}
@media (max-width: 420px) {
  .grid {
    justify-items: center;
  }
}

/* ================= CATS + FOOTER ================= */
.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: 0 var(--gap);
}
.cats .frame {
  margin: 0;
  min-height: 750px;
  padding: 90px 79px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cat .ct {
  width: min(520px, 100%);
  height: 360px;
  max-width: 100%;
  object-fit: contain;
}
.cat p {
  font-size: 12px;
  line-height: 1.45;
  width: min(500px, 100%);
  margin-top: 30px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 22px;
}
.chips span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 25px;
  border: 1px solid #000;
  font-weight: 700;
}
.ftr {
  min-height: 880px;
  padding: 104px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.f-txt {
  width: min(502px, 100%);
  font-size: 14px;
  line-height: 1.5;
}
.f-big {
  position: relative;
  width: min(1862px, 100%);
  height: auto;
  aspect-ratio: 1862/398;
  margin: 60px 0 0;
}
.f-big img {
  position: absolute;
  max-width: none;
}
.f-soc {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.f-soc a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

/* chữ nhiều lớp render sẵn (WebP động trong suốt): intro 1 lần rồi vòng thở lặp */
.pre {
  position: relative;
  display: block;
}
.pre img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.pre img[hidden] {
  display: none;
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 16px;
  overflow: auto;
}
.modal[hidden] {
  display: none;
}
.mbg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
html.lite .mbg {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(0, 0, 0, 0.82);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

/* bảng gửi đề cử (Figma 2924:6986) */
.sheet {
  position: relative;
  width: min(776px, 100%);
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 32px;
  padding: 24px;
  animation: pop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.sheet .x {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 1;
  z-index: 2;
}
.sheet .x svg {
  display: block;
}
.form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 21px;
  min-height: 380px;
  padding-top: 36px;
}
.form[hidden] {
  display: none;
}
.f-l {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding-top: 34px;
}
.f-l h2 {
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
.f-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.avrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.av {
  width: 74px;
  height: 76px;
  border-radius: 25px;
  border: 1px solid var(--ln);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  flex: none;
}
.av img.pv {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avtx {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  color: rgba(0, 0, 0, 0.5);
}
.avtx span {
  line-height: 1.25;
}
.fld {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ln);
  border-radius: 32px;
  padding: 15px 20px;
  min-height: 50px;
  color: rgba(0, 0, 0, 0.5);
  background: #fff;
}
.fld b {
  font-weight: 700;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.55);
}
.fld i {
  font-style: normal;
}
.fld input,
.fld select,
.fld textarea {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: #000;
  min-width: 0;
}
.fld input {
  flex: 1;
  font-weight: 700;
  padding: 0;
}
.fld:focus-within {
  border-color: #000;
}
.row2 {
  display: flex;
}
.row2 .lab {
  padding-right: 18px;
}
.row2 .grow {
  flex: 1;
  margin-left: 0;
  min-width: 0;
}
.row2 .grow select {
  width: 100%;
  text-overflow: ellipsis;
}
.sel select {
  appearance: none;
  flex: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  padding-right: 8px;
}
.sel img {
  width: 15px;
  height: 13px;
}
.fld.ta {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  border-radius: 25px;
}
.fld.ta span {
  line-height: 1.25;
}
/* nhãn nằm trong ô như placeholder: gõ chữ thì ẩn, xoá hết thì hiện lại */
.ph-l {
  position: relative;
}
.ph-l .ph-t {
  position: absolute;
  left: 21px;
  right: 21px;
  top: 15px;
  pointer-events: none;
  line-height: 1.25;
  white-space: normal;
}
.fld:not(.ta).ph-l .ph-t {
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-l:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) .ph-t {
  visibility: hidden;
}
.fld.ta.ph-l textarea {
  padding: 0;
}
.fld.ta textarea {
  resize: none;
  flex: 1;
  line-height: 1.4;
  width: 100%;
}
.fld.ta em {
  font-style: normal;
  text-align: right;
  line-height: 1.5;
}
.fld.short {
  border-radius: 32px;
  min-height: 96px;
}
.f-r {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fld.tall {
  flex: 1;
  min-height: 260px;
}
.err {
  color: #d11;
  font-size: 12px;
  min-height: 0;
  margin: -4px 4px 0;
}
/* gửi thành công: ống nghiệm 3D + chữ */
.done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 8px;
  min-height: 380px;
}
.done[hidden] {
  display: none;
}
.d-art {
  position: relative;
  width: 370px;
  height: 420px;
  flex: none;
}
.d-art > * {
  position: absolute;
}
.d-art canvas {
  inset: 0;
  width: 100%;
  height: 100%;
}
.d-txt {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
}
.d-txt h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.d-txt p {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.51;
}
.d-btns {
  display: flex;
  gap: 2px;
  width: 100%;
  margin-top: 25px;
}
.d-btns > * {
  flex: 1;
  height: 44px;
  border-radius: 60px;
  padding: 0 10px;
  font: 700 16px "Cossette";
  letter-spacing: -0.02em;
}

/* popup chi tiết đề cử */
.pop {
  z-index: 60;
}
.pc3 {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  width: min(860px, 100%);
  min-height: 440px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  animation: pop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.p3-photo {
  position: relative;
  margin: 16px 0 38px 16px;
  border-radius: 22px;
  overflow: hidden;
  background: #d9d9d9;
  min-height: 340px;
}
.p3-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--ln);
  pointer-events: none;
}
.p3-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p3-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 58px 44px 62px 36px;
  min-width: 0;
}
.pc3 .pkick {
  font:
    500 13px/1.55 "IBM Plex Mono",
    ui-monospace,
    Menlo,
    monospace;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.03em;
}
.pc3 h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  max-width: 100%;
}
.pc3 .pcat {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: #02b948;
}
.pc3 .pdesc {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--ln);
  border-radius: 22px;
  padding: 14px 20px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.55);
  max-height: 190px;
  overflow: auto;
}
.p3-act {
  margin-top: 8px;
}
.pc3 .pshare {
  margin-top: 22px;
  padding: 0 40px;
  font-size: 14px;
}
.pc3 .px {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
  z-index: 3;
}
.p3-chk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: conic-gradient(var(--g) 0 25%, var(--b) 0 50%, var(--g) 0 75%, var(--b) 0) 0 0/44px
    44px;
}

/* ================= lớp cố định trên màn hình ================= */
/* khung đen: 4 dải + 4 góc. Dải dày = khe (--gap) + viền khung (--bw), kéo dài 300px ra ngoài màn hình để che vùng sau
   thanh địa chỉ iOS; góc trong bán kính --rin = --r - --bw nên viền khung chạy liền vào góc khi cuộn */
.bezel {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: visible;
}
.bezel i {
  position: absolute;
  background: #000;
}
.bezel .t {
  left: -300px;
  right: -300px;
  top: -300px;
  height: calc(300px + var(--bz));
}
.bezel .b {
  left: -300px;
  right: -300px;
  bottom: -300px;
  height: calc(300px + var(--bz));
}
.bezel .l {
  left: -300px;
  top: -300px;
  bottom: -300px;
  width: calc(300px + var(--bz));
}
.bezel .r {
  right: -300px;
  top: -300px;
  bottom: -300px;
  width: calc(300px + var(--bz));
}
.bezel .c {
  width: var(--rin);
  height: var(--rin);
  background: none;
}
.bezel .tl {
  left: var(--bz);
  top: var(--bz);
  background: radial-gradient(
    circle at 100% 100%,
    transparent calc(var(--rin) - 0.6px),
    #000 var(--rin)
  );
}
.bezel .tr {
  right: var(--bz);
  top: var(--bz);
  background: radial-gradient(
    circle at 0 100%,
    transparent calc(var(--rin) - 0.6px),
    #000 var(--rin)
  );
}
.bezel .bl {
  left: var(--bz);
  bottom: var(--bz);
  background: radial-gradient(
    circle at 100% 0,
    transparent calc(var(--rin) - 0.6px),
    #000 var(--rin)
  );
}
.bezel .br {
  right: var(--bz);
  bottom: var(--bz);
  background: radial-gradient(circle at 0 0, transparent calc(var(--rin) - 0.6px), #000 var(--rin));
}
.fx {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}
.fx > * {
  position: absolute;
  pointer-events: auto;
}
.fx .wy-fix {
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}
.fx-btns {
  right: var(--edge);
  top: var(--edge);
  display: flex;
  gap: 2px;
}
.fx-logo {
  left: var(--edge);
  bottom: var(--edge);
}
.fx-logo img {
  height: 40px;
  width: auto;
}
.fx-info {
  left: 50%;
  bottom: var(--edge);
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  white-space: nowrap;
}
.fx-info span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fx-info a {
  color: #000;
  text-decoration: none;
}
.fx .s-cards {
  left: auto;
  top: auto;
  right: var(--edge);
  bottom: calc(var(--edge) + 58px);
  width: 317px;
  zoom: var(--pz, 1);
  transform-origin: 100% 100%;
}
.fx .s-cards.off {
  pointer-events: none;
}
.fx .s-cards .card {
  transition:
    opacity 0.3s,
    transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
  transition-delay: calc(var(--i, 0) * 0.16s);
}
.fx .s-cards .stat {
  --i: 0;
}
.fx .s-cards .cta {
  --i: 1;
}
.fx .s-cards.off .card {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition-delay: calc((1 - var(--i, 0)) * 0.08s);
  pointer-events: none;
}
.fx .s-cards:not(.off) .cta:hover {
  transform: translateY(-3px);
}
.fx .bell {
  position: absolute;
  left: auto;
  top: auto;
  right: var(--edge);
  bottom: var(--edge);
}
.fx .bell::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--g);
  border: 2px solid #000;
  opacity: 0;
  transform: scale(0);
  transition: 0.25s;
}
.fx .bell.has-dot::after {
  opacity: 1;
  transform: scale(1);
}
/* nút info: bảng đang mở → icon đóng */
.fx .bell::after {
  display: none;
}
.fx .bell .i-x,
.fx .bell[aria-expanded="true"] .i-info {
  display: none;
}
.fx .bell[aria-expanded="true"] .i-x {
  display: block;
}
@media (max-width: 900px) {
  .fx-info {
    display: none;
  }
  .fx-logo img {
    height: 36px;
  }
}

/* nút dính (goo): nền đen ở lớp .wy-gbg có filter, nút chỉ giữ icon */
.wy-goo {
  isolation: isolate;
}
.wy-gbg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: url(#wy-goo);
  z-index: 0;
}
.wy-gbg i {
  position: absolute;
  border-radius: 50%;
  background: #000;
}
.wy-goo .wy-goo-btn {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border-color: transparent !important;
  transform: translateX(var(--gx, 0px));
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.wy-goo .wy-goo-btn:hover {
  transform: translateX(var(--gx, 0px)) scale(1.06);
}

/* ================= trang thể lệ ================= */
.rules-page main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: var(--gap);
}
.rules-page .frame {
  margin: 0;
}
.rl-home {
  left: calc(var(--edge) - 14px);
  top: calc(var(--edge) - 15px);
  width: 128px;
  height: 64px;
}
.rl-home layered-type {
  width: 128px;
  height: 64px;
}
.rl-hero {
  padding: 96px 40px 72px;
  text-align: center;
  min-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rl-chk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 116px;
  background: conic-gradient(var(--g) 0 25%, var(--b) 0 50%, var(--g) 0 75%, var(--b) 0) 0 0/80px
    116px;
}
.rl-kick {
  font:
    500 13px/1 ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}
.rl-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rl-sub {
  max-width: 480px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  margin-bottom: 80px;
}
.rl-sec {
  padding: 72px max(20px, 5vw);
}
.rl-sec h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.rl-sec h2 i {
  font-style: normal;
  color: #12c24f;
}
.rl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.rl-cards article {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 32px;
  padding: 26px 26px 30px;
}
.rl-cards b {
  display: inline-grid;
  place-items: center;
  height: 36px;
  min-width: 52px;
  padding: 0 14px;
  border-radius: 25px;
  background: #000;
  color: #fff;
  font-size: 13px;
}
.rl-cards h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
}
.rl-cards p,
.rl-cards li {
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}
.rl-cards ul,
.rl-rows ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.rl-rows {
  display: grid;
  gap: 10px;
}
.rl-rows > div {
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 32px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 12px 28px;
  align-items: start;
}
.rl-rows h3 {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 2px;
}
.rl-rows p,
.rl-rows li {
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.75);
}
.rl-rows ul {
  margin: 0;
}
.rl-gen {
  max-width: 820px;
  display: grid;
  gap: 16px;
}
.rl-gen p {
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}
.rl-gen a {
  color: #000;
  font-weight: 700;
}
.rl-foot {
  padding: 48px 20px 96px;
  display: flex;
  justify-content: center;
}
.rl-foot .btn-blk {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .phases {
    grid-template-columns: 1fr;
  }
  .cats {
    grid-template-columns: 1fr;
  }
  .cats .frame {
    min-height: 620px;
  }
  .cats .ct {
    height: 300px;
  }
  .ftr {
    min-height: 0;
    padding-bottom: 20px;
  }
}
@media (max-width: 760px) {
  :root {
    --r: 26px;
  }
  .feed {
    padding: 56px 18px 40px;
  }
  .filters {
    margin-top: 34px;
  }
  .cats .frame {
    padding: 56px 18px 36px;
  }
  .ftr {
    padding: 72px 18px 20px;
  }
  .ph .tags2 {
    left: 18px;
  }
  .ph h3,
  .ph p {
    left: 18px;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .fld.tall {
    min-height: 180px;
  }
  .done {
    flex-direction: column;
  }
  .fx .rbtn {
    width: 54px;
    height: 54px;
  }
  .rl-rows > div {
    grid-template-columns: 1fr;
  }
  .rl-sec {
    padding: 56px 18px;
  }
  .rl-hero {
    padding: 96px 18px 56px;
  }
  .modal.pop {
    align-items: start;
    padding: 20px 12px 40px;
  }
  .pc3 {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
    margin: auto;
    min-height: 0;
  }
  .p3-photo {
    margin: 14px 14px 0;
    min-height: 0;
    height: min(44vh, 300px);
  }
  .p3-body {
    padding: 20px 20px 50px;
  }
  .pc3 h2 {
    font-size: 26px;
  }
  /* 3 giai đoạn: cuộn ngang, hít từng thẻ */
  .phases {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--gap);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .phases::-webkit-scrollbar {
    display: none;
  }
  .ph {
    flex: none;
    width: 86%;
    scroll-snap-align: start;
  }

  /* popup chi tiết: nội dung dài đủ (không cuộn trong hộp), nút Chia sẻ + Đóng cố định ở đáy màn hình */
  .modal.pop {
    padding-bottom: 110px;
  }
  .pc3,
  .sheet {
    animation-name: fade;
  }
  .pc3 .pdesc {
    max-height: none;
    overflow: visible;
  }
  .p3-act {
    position: fixed;
    left: calc(50% - 129px);
    bottom: calc(20px + env(safe-area-inset-bottom));
    margin: 0;
    z-index: 4;
  }
  .pc3 .pshare {
    margin: 0;
    width: 204px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  .pc3 .px {
    position: fixed;
    top: auto;
    right: calc(50% - 129px);
    bottom: calc(20px + var(--kb, 0px) + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  /* bảng gửi đề cử: nút Gửi + Đóng cố định ở đáy màn hình */
  .modal[data-wy-form] {
    align-items: start;
    padding: 20px 12px 110px;
  }
  .sheet .x {
    position: fixed;
    top: auto;
    right: calc(50% - 129px);
    bottom: calc(20px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  .form .btn-blk.full {
    position: fixed;
    left: calc(50% - 129px);
    bottom: calc(20px + var(--kb, 0px) + env(safe-area-inset-bottom));
    width: 200px;
    height: 54px;
    border-radius: 55px;
    z-index: 3;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  .sheet:has(.done:not([hidden])) .x {
    display: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ================= menu chính (nút ☰ góc phải): các nút hiện lần lượt, dính nhau kiểu goo ================= */
.fx .mnav {
  right: var(--edge);
  top: calc(var(--edge) + 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  isolation: isolate;
  z-index: 8;
}
.mnav[hidden] {
  display: none;
}
.mn-bg {
  position: absolute;
  inset: 0;
  filter: url(#mn-goo);
  pointer-events: none;
  z-index: 0;
}
.mn-bg i {
  position: absolute;
  background: #000;
  transition: background-color 0.3s;
}
.mn-i,
.mn-x {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(-34px) scale(0.3);
  transform-origin: 50% 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.mn-i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 34px;
  border-radius: 28px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 0.25s,
    transform 0.25s,
    color 0.3s;
}
.mn-i.dk {
  color: #000;
}
.mn-x {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid #000;
  background: var(--g);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.mnav.open .mn-i,
.mnav.open .mn-x {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s calc(var(--i) * 110ms),
    transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--i) * 110ms),
    color 0.3s;
}
.mnav.open .mn-i:hover,
.mnav.open .mn-x:hover {
  transform: scale(1.04);
}
@media (max-width: 760px) {
  .mn-i {
    height: 50px;
    padding: 0 28px;
    font-size: 16px;
  }
  .fx .mnav {
    gap: 22px;
  }
  .mn-x {
    width: 50px;
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mn-i,
  .mn-x,
  .mnav.open .mn-i,
  .mnav.open .mn-x {
    transition: none;
  }
}

.fx-btns .rbtn.hv svg,
.fx-btns .rbtn.hv svg path {
  stroke: #000;
}
.fx-btns.wy-goo .wy-goo-btn:hover {
  transform: translateX(var(--gx, 0px));
}

/* Điện thoại/máy cảm ứng: bỏ khung đen cố định (position:fixed) vì khi thanh địa chỉ co giãn nhanh, phần fixed chạy trễ nên hở viền.
   Viền đen giờ chính là nền html/body + viền & bo góc của từng khung → cuộn cùng trang, không thể lệch. */
@media (any-pointer: coarse) {
  .bezel {
    display: none;
  }
  html,
  body {
    background: #000;
  }
}

/* không cho double-tap phóng to trên toàn trang (nút, link, thẻ); pinch-zoom của người dùng vẫn giữ */
button,
a,
select,
summary,
[role="button"],
.nc,
.pill {
  touch-action: manipulation;
}

/* iOS tự phóng to khi ô nhập có chữ < 16px → ép 16px trên điện thoại/máy cảm ứng */
@media (max-width: 760px), (any-pointer: coarse) {
  .fld input,
  .fld select,
  .fld textarea,
  .filters select {
    font-size: 16px;
  }
}
.sheet .x,
.form .btn-blk.full {
  transition: bottom 0.2s ease-out;
}

/* canvas cảnh 3D của hero */
/* cover: không bôi chọn chữ / hiện menu ảnh khi chạm giữ logo; chỉ cuộn dọc bằng trình duyệt, kéo ngang để xoay cảnh */
.hero {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.hero .lab-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* thẻ số liệu (nền đen): 2 cột bằng nhau, lề trái/phải bằng nhau, nút & đồng hồ rộng đúng cột; dấu ":" nhấp nháy */
.card.stat {
  background: #000;
  border-color: #000;
  color: #fff;
  height: auto;
  padding: 22px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}
.stat > div {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.stat p {
  color: #fff;
  white-space: nowrap;
}
.stat .pill-blk {
  width: 100%;
  background: #2a2a2a;
  color: #fff;
}
.stat .cd {
  width: 100%;
  gap: 4px;
}
.stat .cd b {
  flex: 1 1 0;
  max-width: 44px;
  width: auto;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.stat .cd em {
  width: auto;
  animation: cd-blink 1s ease-in-out infinite;
}
@keyframes cd-blink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  95% {
    opacity: 0.15;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat .cd em {
    animation: none;
  }
}

/* máy tính: 2 bảng nằm ngang ở cạnh dưới, ngay bên trái nút info */
@media (min-width: 760px) {
  .fx .s-cards {
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    width: auto;
    bottom: var(--edge);
    right: calc(var(--edge) + 58px);
    transform-origin: 100% 100%;
  }
  .fx .s-cards .card {
    width: 317px;
    flex: none;
  }
}

/* ================= LOADING (Figma 3213:560) ================= */
html.wy-loading,
html.wy-loading body {
  overflow: hidden;
}
#wy-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
  font-family: "Cossette", system-ui, sans-serif;
}
#wy-loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#wy-loader .ld-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  width: 120px;
  margin-top: -50px;
}
#wy-loader .ld-mark {
  width: 81px;
  height: 81px;
  display: block;
  margin-bottom: 1px;
}
#wy-loader .ld-g {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
#wy-loader .ld-wy {
  width: 57px;
  height: 54px;
  display: block;
}
#wy-loader p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  font-weight: 400;
  min-width: 107px;
}
#wy-loader .ld-now {
  position: absolute;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-weight: 700;
  white-space: nowrap;
  animation: ld-blink 1s steps(2, jump-none) infinite;
}
@keyframes ld-blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  #wy-loader .ld-now {
    animation: none;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .phases {
    grid-template-columns: 1fr;
  }
  .cats {
    grid-template-columns: 1fr;
  }
  .cats .frame {
    min-height: 620px;
  }
  .cats .ct {
    height: 300px;
  }
  .ftr {
    min-height: 0;
    padding-bottom: 20px;
  }
}
@media (max-width: 760px) {
  :root {
    --r: 26px;
  }
  .feed {
    padding: 56px 18px 40px;
  }
  .filters {
    margin-top: 34px;
  }
  .cats .frame {
    padding: 56px 18px 36px;
  }
  .ftr {
    padding: 72px 18px 20px;
  }
  .ph .tags2 {
    left: 18px;
  }
  .ph h3,
  .ph p {
    left: 18px;
  }
  .ph h3 {
    font-size: 20px;
  }
  .ph p {
    top: 160px;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .fld.tall {
    min-height: 180px;
  }
  .done {
    flex-direction: column;
  }
  .fx .rbtn {
    width: 54px;
    height: 54px;
  }
  .rl-rows > div {
    grid-template-columns: 1fr;
  }
  .rl-sec {
    padding: 56px 18px;
  }
  .rl-hero {
    padding: 96px 18px 56px;
  }
  .modal.pop {
    align-items: start;
    padding: 20px 12px 40px;
  }
  .pc3 {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
    margin: auto;
    min-height: 0;
  }
  .p3-photo {
    margin: 14px 14px 0;
    min-height: 0;
    height: min(44vh, 300px);
  }
  .p3-body {
    padding: 20px 20px 50px;
  }
  .pc3 h2 {
    font-size: 26px;
  }
  /* 3 giai đoạn: cuộn ngang, hít từng thẻ */
  .phases {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--gap);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .phases::-webkit-scrollbar {
    display: none;
  }
  .ph {
    flex: none;
    width: 86%;
    scroll-snap-align: start;
  }

  /* popup chi tiết: nội dung dài đủ (không cuộn trong hộp), nút Chia sẻ + Đóng cố định ở đáy màn hình */
  .modal.pop {
    padding-bottom: 110px;
  }
  .pc3,
  .sheet {
    animation-name: fade;
  }
  .pc3 .pdesc {
    max-height: none;
    overflow: visible;
  }
  .p3-act {
    position: fixed;
    left: calc(50% - 129px);
    bottom: calc(20px + env(safe-area-inset-bottom));
    margin: 0;
    z-index: 4;
  }
  .pc3 .pshare {
    margin: 0;
    width: 204px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  .pc3 .px {
    position: fixed;
    top: auto;
    right: calc(50% - 129px);
    bottom: calc(20px + var(--kb, 0px) + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  /* bảng gửi đề cử: nút Gửi + Đóng cố định ở đáy màn hình */
  .modal[data-wy-form] {
    align-items: start;
    padding: 20px 12px 110px;
  }
  .sheet .x {
    position: fixed;
    top: auto;
    right: calc(50% - 129px);
    bottom: calc(20px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  .form .btn-blk.full {
    position: fixed;
    left: calc(50% - 129px);
    bottom: calc(20px + var(--kb, 0px) + env(safe-area-inset-bottom));
    width: 200px;
    height: 54px;
    border-radius: 55px;
    z-index: 3;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  .sheet:has(.done:not([hidden])) .x {
    display: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ================= menu chính (nút ☰ góc phải): các nút hiện lần lượt, dính nhau kiểu goo ================= */
.fx .mnav {
  right: var(--edge);
  top: calc(var(--edge) + 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  isolation: isolate;
  z-index: 8;
}
.mnav[hidden] {
  display: none;
}
.mn-bg {
  position: absolute;
  inset: 0;
  filter: url(#mn-goo);
  pointer-events: none;
  z-index: 0;
}
.mn-bg i {
  position: absolute;
  background: #000;
  transition: background-color 0.3s;
}
.mn-i,
.mn-x {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(-34px) scale(0.3);
  transform-origin: 50% 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.mn-i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 34px;
  border-radius: 28px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 0.25s,
    transform 0.25s,
    color 0.3s;
}
.mn-i.dk {
  color: #000;
}
.mn-x {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid #000;
  background: var(--g);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.mnav.open .mn-i,
.mnav.open .mn-x {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s calc(var(--i) * 110ms),
    transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--i) * 110ms),
    color 0.3s;
}
.mnav.open .mn-i:hover,
.mnav.open .mn-x:hover {
  transform: scale(1.04);
}
@media (max-width: 760px) {
  .mn-i {
    height: 50px;
    padding: 0 28px;
    font-size: 16px;
  }
  .fx .mnav {
    gap: 22px;
  }
  .mn-x {
    width: 50px;
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mn-i,
  .mn-x,
  .mnav.open .mn-i,
  .mnav.open .mn-x {
    transition: none;
  }
}

.fx-btns .rbtn.hv svg,
.fx-btns .rbtn.hv svg path {
  stroke: #000;
}
.fx-btns.wy-goo .wy-goo-btn:hover {
  transform: translateX(var(--gx, 0px));
}

/* Điện thoại/máy cảm ứng: bỏ khung đen cố định (position:fixed) vì khi thanh địa chỉ co giãn nhanh, phần fixed chạy trễ nên hở viền.
   Viền đen giờ chính là nền html/body + viền & bo góc của từng khung → cuộn cùng trang, không thể lệch. */
@media (any-pointer: coarse) {
  .bezel {
    display: none;
  }
  html,
  body {
    background: #000;
  }
}

/* không cho double-tap phóng to trên toàn trang (nút, link, thẻ); pinch-zoom của người dùng vẫn giữ */
button,
a,
select,
summary,
[role="button"],
.nc,
.pill {
  touch-action: manipulation;
}

/* iOS tự phóng to khi ô nhập có chữ < 16px → ép 16px trên điện thoại/máy cảm ứng */
@media (max-width: 760px), (any-pointer: coarse) {
  .fld input,
  .fld select,
  .fld textarea,
  .filters select {
    font-size: 16px;
  }
}
.sheet .x,
.form .btn-blk.full {
  transition: bottom 0.2s ease-out;
}

/* canvas cảnh 3D của hero */
/* cover: không bôi chọn chữ / hiện menu ảnh khi chạm giữ logo; chỉ cuộn dọc bằng trình duyệt, kéo ngang để xoay cảnh */
.hero {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.hero .lab-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* thẻ số liệu (nền đen): 2 cột bằng nhau, lề trái/phải bằng nhau, nút & đồng hồ rộng đúng cột; dấu ":" nhấp nháy */
.card.stat {
  background: #000;
  border-color: #000;
  color: #fff;
  height: auto;
  padding: 22px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}
.stat > div {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.stat p {
  color: #fff;
  white-space: nowrap;
}
.stat .pill-blk {
  width: 100%;
  background: #2a2a2a;
  color: #fff;
}
.stat .cd {
  width: 100%;
  gap: 4px;
}
.stat .cd b {
  flex: 1 1 0;
  max-width: 44px;
  width: auto;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.stat .cd em {
  width: auto;
  animation: cd-blink 1s ease-in-out infinite;
}
@keyframes cd-blink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  95% {
    opacity: 0.15;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat .cd em {
    animation: none;
  }
}

/* máy tính: 2 bảng nằm ngang ở cạnh dưới, ngay bên trái nút info */
@media (min-width: 760px) {
  .fx .s-cards {
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    width: auto;
    bottom: var(--edge);
    right: calc(var(--edge) + 58px);
    transform-origin: 100% 100%;
  }
  .fx .s-cards .card {
    width: 317px;
    flex: none;
  }
}

/* ================= LOADING (Figma 3213:560) ================= */
html.wy-loading,
html.wy-loading body {
  overflow: hidden;
}
#wy-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
  font-family: "Cossette", system-ui, sans-serif;
}
#wy-loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#wy-loader .ld-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  width: 120px;
  margin-top: -50px;
}
#wy-loader .ld-mark {
  width: 81px;
  height: 81px;
  display: block;
  margin-bottom: 1px;
}
#wy-loader .ld-g {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
#wy-loader .ld-wy {
  width: 57px;
  height: 54px;
  display: block;
}
#wy-loader p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  font-weight: 400;
  min-width: 107px;
}
#wy-loader .ld-now {
  position: absolute;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-weight: 700;
  white-space: nowrap;
  animation: ld-blink 1s steps(2, jump-none) infinite;
}
@keyframes ld-blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  #wy-loader .ld-now {
    animation: none;
  }
}

/* ================= TRANG DANH SÁCH ĐỀ CỬ (de-cu.html): từng hạng mục + đề cử của hạng mục đó ================= */
.dl-hero {
  min-height: min(76vh, 620px);
}
.dl-hero .rl-sub {
  margin-bottom: 28px;
}
.dl-hero .rl-sub b {
  font-weight: 700;
  color: #000;
}
.dl-jump {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 980px;
  margin-bottom: 150px;
}
.dl-jump a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border-radius: 25px;
  border: 1px solid var(--ln);
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.dl-jump a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.dl-group {
  --lw: 340px;
  padding: 64px 33px 56px;
}
@media (min-width: 778px) {
  .dl-group {
    --lw: 704px;
  }
}
@media (min-width: 1142px) {
  .dl-group {
    --lw: 1068px;
  }
}
@media (min-width: 1506px) {
  .dl-group {
    --lw: 1432px;
  }
}
.dl-gt,
.dl-cat {
  width: var(--lw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.dl-gt {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.dl-cat {
  padding: 26px 0 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  scroll-margin-top: 24px;
} /* kẻ phân cách hạng mục: nhạt, không tranh với nội dung */
.dl-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.dl-head h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* số đề cử: chữ phụ, không cạnh tranh với nút */
.dl-n {
  flex: none;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}
.dl-desc {
  max-width: 640px;
  margin-top: 10px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.65);
}
.dl-cat .grid {
  margin-top: 20px;
  justify-content: space-between;
}
/* hạng mục chưa có đề cử: thẻ "bóng" cùng hình dáng thẻ đề cử, dấu cộng mờ — bấm cả thẻ để gửi đề cử */
.nc-add {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.nc-add .nbg path {
  fill: rgba(255, 255, 255, 0.45);
  stroke: rgba(0, 0, 0, 0.12);
}
.nc-add .nc-ph {
  background: rgba(0, 0, 0, 0.035);
  border: 0;
  display: grid;
  place-items: center;
}
.nc-plus {
  position: relative;
  width: 34px;
  height: 34px;
  opacity: 0.28;
  transition:
    opacity 0.2s,
    transform 0.3s;
}
.nc-plus::before,
.nc-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 3px;
  margin: -1.5px 0 0 -17px;
  border-radius: 2px;
  background: #000;
}
.nc-plus::after {
  transform: rotate(90deg);
}
.nc-add .nc-bd {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.nc-addt {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.35);
  transition: color 0.2s;
}
.nc-add:hover .nc-addt,
.nc-add:focus-visible .nc-addt {
  color: #08bf4e;
}
.nc-add:hover .nc-plus,
.nc-add:focus-visible .nc-plus {
  opacity: 0.9;
  transform: rotate(90deg);
}
.nc-add:hover .nc-plus::before,
.nc-add:hover .nc-plus::after {
  background: #08bf4e;
}
.rl-foot .btn-blk {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  height: 44px;
  padding: 0 26px;
}
.list-page .rl-foot {
  gap: 10px;
}
.rl-foot .dl-ghost {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}
@media (max-width: 435px) {
  .dl-group {
    padding: 48px 18px 40px;
  }
  .dl-cat .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* trang chủ: "Xem thêm" là link sang trang danh sách */
.more a.btn-blk {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

/* -------------------------------- awards-blob.css ------------------------------- */

/* One viewport-height composition: the spatial artwork and its centered caption. */
.cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  scroll-margin-top: 60px;
  align-items: stretch;
}
.cats .ag-card {
  height: calc(100svh - 120px);
  min-height: 0;
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f3f3f1;
  background-image: none;
  container-type: inline-size;
}
.ag-viewport {
  position: relative;
  isolation: isolate;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(72svh, 92cqw);
  container-type: size;
  touch-action: pan-y;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ag-viewport.is-dragging,
.ag-viewport.is-dragging * {
  cursor: grabbing !important;
}
.ag-viewport:focus-visible {
  outline: 1px dashed #888;
  outline-offset: -8px;
}
.ag-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.ag-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26cqmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  z-index: 4;
  color: #111;
}
.ag-wordmark {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(10px, 2.1cqmin, 17px);
  line-height: 1.2;
  letter-spacing: normal;
  margin-bottom: 6px;
}
.ag-heading {
  white-space: pre-line;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(17px, 4.3cqmin, 37px);
  line-height: 1.05;
  letter-spacing: normal;
}
.ag-awards {
  font-size: clamp(7px, 1.25cqmin, 11px);
  letter-spacing: 0.28em;
  margin-top: 8px;
}
.ag-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 18cqmin;
  min-height: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  padding: 3px 1px;
  color: #777;
  transition:
    color 0.25s,
    font-size 0.35s;
  scroll-margin-block: 80px;
}
.ag-node-name {
  font-size: clamp(9px, 1.5cqmin, 12px);
  line-height: 1.15;
  font-weight: 400;
  text-wrap: balance;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  word-break: normal;
}
.ag-node.is-active {
  color: #111;
  width: 25cqmin;
  z-index: 5;
}
.ag-node.is-active .ag-node-name {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(12px, 2.7cqmin, 23px);
  line-height: 1.15;
  letter-spacing: normal;
}
.ag-node.is-occluded {
  opacity: 0;
  pointer-events: none;
}
.ag-node:focus-visible {
  opacity: 1;
  outline: 1px dashed #111;
  outline-offset: 3px;
  background: #fffffff2;
}
.ag-detail {
  position: relative;
  flex: 0 0 auto;
  width: min(560px, 92%);
  margin: 0 auto;
  padding: 4px 0 0;
  text-align: center;
}
.ag-detail-title {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(21px, 3.5cqw, 30px);
  line-height: 1.2;
  letter-spacing: normal;
  max-width: 100%;
  text-wrap: balance;
}
.cat .ag-description {
  font-size: 13px;
  line-height: 1.5;
  width: auto;
  max-width: 520px;
  margin: 10px auto 0;
  color: #555;
  text-align: center;
  text-wrap: pretty;
}
.ag-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.ag-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #0003;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font: inherit;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.ag-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ag-arrow:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.ag-arrow:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
.ag-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ag-no-webgl .ag-canvas {
  display: none;
}
.ag-no-webgl .ag-core {
  background: white;
  border: 1px solid #0003;
  border-radius: 43% 57% 51% 49%;
  aspect-ratio: 1;
  justify-content: center;
}
@media (max-width: 760px) {
  .cats {
    grid-template-columns: 1fr;
    scroll-margin-top: 52px;
  }
  .cats .ag-card {
    height: calc(100svh - 104px);
    padding: 12px 8px 20px;
  }
  .ag-viewport {
    max-height: 108cqw;
  }
  .ag-detail {
    width: 90%;
    padding-top: 8px;
  }
  .ag-detail-title {
    font-size: 23px;
  }
  .cat .ag-description {
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.45;
  }
}
@media (max-height: 600px) {
  .cats {
    scroll-margin-top: 24px;
  }
  .cats .ag-card {
    height: calc(100svh - 48px);
    padding: 8px 8px 14px;
  }
  .ag-detail-title {
    font-size: 20px;
  }
  .cat .ag-description {
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.4;
  }
  .ag-wordmark {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .ag-heading {
    font-size: clamp(14px, 4.3cqmin, 24px);
  }
  .ag-awards {
    font-size: 6px;
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ag-node,
  .ag-arrow {
    transition: none;
  }
}

/* vùng giữa khối: chạm + kéo ở đây mới xoay (touch-action:none); ngoài vùng này vuốt dọc là cuộn trang */
.ag-grab {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34cqmin;
  height: 34cqmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  touch-action: none;
  z-index: 2;
}

/* Safari iOS: bấm đúp nút trước/sau không được phóng to trang */
.ag-card,
.ag-controls,
.ag-arrow,
.ag-detail,
.ag-node {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ag-arrow {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* -------------------------------- custom ------------------------------- */

.hid {
  display: none !important;
}

/* ================= TRANG THỂ LỆ (the-le.html) — nội dung 2026 ================= */
.rules-page .rl-hero .rl-sub {
  margin-bottom: 28px;
}
.rl-jump {
  margin-bottom: 150px;
}
.rules-page .rl-sec {
  scroll-margin-top: 24px;
}
.rl-sec h2 i:first-child {
  display: inline-block;
  margin-right: 0.3em;
  font-variant-numeric: tabular-nums;
}
.rl-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: #000 !important;
}
.rl-grp {
  max-width: 820px;
  margin: 8px 0 20px;
}
.rl-grp + .rl-cards + .rl-grp,
.rl-aw + .rl-grp {
  margin-top: 56px;
}
.rl-grp h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.rl-grp p {
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
}
.rl-aw h3 {
  text-transform: none;
}
.rl-aw p {
  font-size: 15px;
}
.rl-date {
  display: block;
  margin-top: 10px;
  font:
    500 13px/1 ui-monospace,
    monospace;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #12c24f;
}
.rl-rows > div > div > * + * {
  margin-top: 10px;
}
.rl-rows li b {
  font-weight: 700;
  color: #000;
}
.rl-note {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5) !important;
}
.rl-note a,
.rl-rows a {
  color: #000;
  font-weight: 700;
}
.rl-rows ul.rl-zones {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rl-zones li {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 25px;
  border: 1px solid var(--ln);
  font-size: 13px;
  font-weight: 700;
  color: #000 !important;
}
.rl-rows ul.rl-mult {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rl-mult li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rl-mult b {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  border-radius: 25px;
  background: #12c24f;
  color: #000 !important;
  font-size: 13px;
}
.rl-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 25px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .rl-jump {
    margin-bottom: 140px;
  }
  .rl-aw p {
    font-size: 14px;
  }
}

/* ================= IMPACT AWARDS: COMING SOON (index / de-cu / the-le) ================= */
.cs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 21px;
  border: 1px solid #000;
  border-radius: 61px;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  background: transparent;
  white-space: nowrap;
}
.cat-soon {
  justify-content: center;
}
.cat-soon p {
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  width: min(340px, 100%);
  margin-top: 28px;
}
.cat-soon .cs-pill {
  margin-top: 10px;
}
.s-menu li.soon {
  color: rgba(0, 0, 0, 0.45);
}
.cs-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 20px 56px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.cs-soon .cs-mark {
  width: min(300px, 70%);
  height: auto;
  margin-bottom: 18px;
}
.cs-soon p {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.6);
}
.rl-sec .cs-soon + .rl-grp {
  margin-top: 56px;
}
.rl-sec .cs-soon {
  margin-bottom: 8px;
}

/* ================= IMPACT AWARDS: 3 dạng theo số hạng mục (0 → Coming Soon, 1 → avatar + mô tả, ≥2 → 3D) ================= */
.cat-av {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-av img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
/* chưa chạy JS / đang có ≥2 hạng mục: không hiện nút Coming Soon */
.cat-impact:not(.cat-soon) .cs-pill {
  display: none;
}
.cat-one {
  justify-content: center;
}
.cat-one .cat-desc {
  font-size: 14px;
  width: min(420px, 100%);
}

/* thể lệ: công thức tính + thẻ trải rộng */
.rl-cards article.rl-wide {
  grid-column: 1 / -1;
}
.rl-formula {
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
}
.rl-formula > div {
  background: #f2f2f2;
  border-radius: 20px;
  padding: 14px 18px;
}
.rl-formula dt {
  font-weight: 700;
  color: #000;
  line-height: 1.45;
}
.rl-formula dd {
  margin: 4px 0 0;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}
.rl-cards ul.rl-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rl-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 25px;
  border: 1px solid var(--ln);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #000 !important;
}

/* ================= thể lệ: desktop 2 cột — menu trái đứng yên, nội dung phải ================= */
.rl-side {
  display: none;
}
@media (min-width: 1024px) {
  .rl-layout {
    display: grid;
    grid-template-columns: minmax(260px, 23vw) 1fr;
    gap: var(--gap);
    align-items: start;
  }
  .rl-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-width: 0;
  }
  .rl-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: var(--gap);
    height: calc(100vh - 2 * var(--gap));
    padding: 110px 20px 90px;
  }
  .rl-side-kick {
    font:
      500 13px/1 ui-monospace,
      monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 18px 14px;
  }
  .rl-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
  }
  .rl-toc a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 25px;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    transition:
      background 0.15s,
      color 0.15s;
  }
  .rl-toc i {
    flex: none;
    font-style: normal;
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 28px;
    border-radius: 25px;
    border: 1px solid var(--ln);
    background: #fff;
    font-size: 12px;
  }
  .rl-toc a:hover {
    background: rgba(0, 0, 0, 0.06);
  }
  .rl-toc a.on {
    background: #000;
    color: #fff;
  }
  .rl-toc a.on i {
    background: #18e265;
    border-color: #18e265;
    color: #000;
  }
  /* menu trái thay cho hàng pill trong hero */
  .rules-page .rl-jump {
    display: none;
  }
  .rules-page .rl-hero .rl-sub {
    margin-bottom: 150px;
  }
  .rules-page .rl-sec {
    scroll-margin-top: var(--gap);
  }
}

/* ================= thể lệ: mobile/tablet — thanh mục lục dính dưới đáy màn hình ================= */
@media (max-width: 1023px) {
  .rl-layout,
  .rl-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }
  .rl-side {
    display: block;
    order: 2; /* đặt cuối khối để sticky bottom giữ thanh ở đáy suốt phần nội dung */
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    margin: 0 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    clip-path: inset(0 round 999px);
  }
  .rl-side-kick {
    display: none;
  }
  .rl-toc {
    list-style: none;
    margin: 0;
    padding: 6px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rl-toc::-webkit-scrollbar {
    display: none;
  }
  .rl-toc li {
    flex: none;
  }
  .rl-toc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 6px;
    border-radius: 25px;
    border: 1px solid var(--ln);
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
  }
  .rl-toc i {
    font-style: normal;
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 24px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.07);
    font-size: 11px;
  }
  .rl-toc a.on {
    background: #000;
    border-color: #000;
    color: #fff;
  }
  .rl-toc a.on i {
    background: #18e265;
    color: #000;
  }
  /* thanh dính thay cho hàng pill trong hero */
  .rules-page .rl-jump {
    display: none;
  }
  .rules-page .rl-hero .rl-sub {
    margin-bottom: 140px;
  }
  .rules-page .rl-sec {
    scroll-margin-top: 24px; /* tiêu đề mục rơi ngay dưới logo Wy26 */
  }
}
/* tablet: logo WeYoung cố định ở góc dưới trái → đẩy thanh lên trên logo */
@media (min-width: 761px) and (max-width: 1023px) {
  .rl-side {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* thể lệ mobile: thanh dính dưới — bỏ viền khung + clip (bị chồng 2 lớp viền), dùng nền đen liền */
@media (max-width: 1023px) {
  .rules-page .rl-side {
    border: 0;
    clip-path: none;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  }
  .rules-page .rl-toc a {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .rules-page .rl-toc i {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .rules-page .rl-toc a.on {
    background: #18e265;
    color: #000;
  }
  .rules-page .rl-toc a.on i {
    background: #000;
    color: #fff;
  }
}
/* thể lệ mobile: thanh dính cách mép trái/phải/dưới màn hình đều 16px (main đã lùi --gap) */
@media (max-width: 1023px) {
  .rules-page .rl-side {
    margin: 0 calc(16px - var(--gap));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .rules-page .rl-side {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* ================= TIMELINE trang chủ (Figma 3904:15616) — thẻ 424×280, chữ HTML + ảnh PNG, co giãn theo bề ngang thẻ ================= */
.tl-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0 var(--gap);
}
.tl-c {
  --u: calc(100cqw / 424);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 424 / 280;
  border: var(--bw) solid #000; /* viền đen như các section: khe giữa thẻ = khe giữa section */
  border-radius: var(--r);
  overflow: hidden;
  clip-path: inset(0 round var(--r));
}
/* nền: cùng pattern chấm của các section (.frame: chấm 1px, lưới 7px); ảnh PNG đã bỏ nền, chỉ còn hình */
.tl-1 { background: #f0f0f0 radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1.3px) 0 0 / 7px 7px; }
.tl-2 { background: #18e265 radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1.3px) 0 0 / 7px 7px; }
.tl-3 { background: #323232 radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px) 0 0 / 7px 7px; }
.tl-art {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}
.tl-1 .tl-art { width: calc(var(--u) * 241); }
.tl-tx {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tl-1 .tl-tx { left: calc(var(--u) * 181); top: calc(var(--u) * 62); width: calc(var(--u) * 210); }
.tl-2 .tl-tx { left: calc(var(--u) * 192); top: calc(var(--u) * 52); width: calc(var(--u) * 199); }
.tl-3 .tl-tx { left: calc(var(--u) * 187); top: calc(var(--u) * 29); height: calc(var(--u) * 222); width: calc(var(--u) * 220); }
.tl-tx h3 {
  font-size: calc(var(--u) * 24);
  line-height: calc(var(--u) * 30);
  font-weight: 700;
  color: #000;
}
.tl-tx p {
  margin-top: calc(var(--u) * 17);
  font-size: calc(var(--u) * 14);
  line-height: calc(var(--u) * 19.32);
  color: rgba(0, 0, 0, 0.6);
}
.tl-d {
  margin-top: calc(var(--u) * 27);
  display: inline-flex;
  align-items: center;
  height: calc(var(--u) * 24);
  padding: 0 calc(var(--u) * 20);
  border-radius: 25px;
  background: #18e265;
  color: #000;
  font-size: calc(var(--u) * 19);
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.tl-2 .tl-d { background: #000; color: #fff; }
.tl-ttl { width: calc(var(--u) * 204); height: auto; }
.tl-3 .tl-tx p { margin-top: calc(var(--u) * 13); font-size: calc(var(--u) * 12.16); line-height: 1.35; color: #f0f0f0; }
.tl-3 .tl-d { margin-top: auto; }
/* màn hẹp: cuộn ngang, hít từng thẻ */
@media (max-width: 1100px) {
  .tl-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tl-list::-webkit-scrollbar { display: none; }
  .tl-c {
    flex: none;
    width: min(424px, 86vw);
    scroll-snap-align: start;
  }
}

/* ================= HOME: Impact cao bằng Culture & Trend khi 2 khối nằm cạnh nhau (desktop) ================= */
@media (min-width: 1101px) {
  .cats .cat-impact {
    min-height: 0;
    height: calc(100svh - 120px); /* cùng công thức với .cats .ag-card */
    padding-top: 40px;
    padding-bottom: 40px;
    justify-content: center;
  }
}
@media (min-width: 1101px) and (max-height: 600px) {
  .cats .cat-impact {
    height: calc(100svh - 48px);
  }
}
