/* Giao dien portal Little DaNang.
   Bang mau lay tu chinh thanh pho trong game: xanh song Han, vang cau Rong,
   do den long Hoi An, nen cat bien My Khe. Toi = dem song Han.
   Phong cach rieng: "pixel xuc giac" — vien day, bong do cung lech cheo
   nhu sprite, nut co day noi, duong song song Han ngan cach cac khoi.
   Chon giao dien: <html data-theme="light|dark"> (cookie lp_theme);
   khong co thi theo may. Sprite: public/sprites.css (sinh tu dong). */

/* --- Mau ------------------------------------------------------------------ */
:root {
  --bg: #fbf5e9;
  --bg2: #f3e8d2;
  --card: #fffdf8;
  --ink: #17323a;
  --muted: #586b70;
  --line: #e2d3b6;
  --edge: #17323a;
  --hard: rgba(23, 50, 58, .9);
  --sea: #0b6e78;
  --sea-2: #12909a;
  --sea-ink: #ffffff;
  --gold: #f2a91a;
  --gold-2: #ffd36b;
  --gold-ink: #3a2400;
  --red: #c63f2a;
  --red-2: #e8613f;
  --red-ink: #ffffff;
  --leaf: #3f8f3a;
  --dot: rgba(23, 50, 58, .06);
  --wave: url("/static/img/wave-light.svg");
  --shadow: 4px 4px 0 var(--hard);
  --shadow-lg: 6px 6px 0 var(--hard);
  --hero-veil: linear-gradient(180deg, rgba(6, 40, 48, .55) 0%,
    rgba(6, 40, 48, .3) 45%, rgba(6, 40, 48, .8) 100%);
  --radius: 14px;
  color-scheme: light;
}
/* Bo mau toi viet hai lan: theo may (khi chua chon) va khi chon tay */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a20;
    --bg2: #10252c;
    --card: #142b33;
    --ink: #eaf2ef;
    --muted: #9db3b5;
    --line: #26454e;
    --edge: #3c6570;
    --hard: rgba(0, 0, 0, .55);
    --sea: #45b9c0;
    --sea-2: #6fd0d5;
    --sea-ink: #052126;
    --gold: #ffc24a;
    --gold-2: #ffdb85;
    --red: #ff6b52;
    --red-2: #ff8a6b;
    --red-ink: #2a0700;
    --leaf: #7ccf6d;
    --dot: rgba(255, 255, 255, .04);
    --wave: url("/static/img/wave-dark.svg");
    --hero-veil: linear-gradient(180deg, rgba(4, 16, 22, .72) 0%,
      rgba(4, 16, 22, .5) 45%, rgba(4, 16, 22, .92) 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a20;
  --bg2: #10252c;
  --card: #142b33;
  --ink: #eaf2ef;
  --muted: #9db3b5;
  --line: #26454e;
  --edge: #3c6570;
  --hard: rgba(0, 0, 0, .55);
  --sea: #45b9c0;
  --sea-2: #6fd0d5;
  --sea-ink: #052126;
  --gold: #ffc24a;
  --gold-2: #ffdb85;
  --red: #ff6b52;
  --red-2: #ff8a6b;
  --red-ink: #2a0700;
  --leaf: #7ccf6d;
  --dot: rgba(255, 255, 255, .04);
  --wave: url("/static/img/wave-dark.svg");
  --hero-veil: linear-gradient(180deg, rgba(4, 16, 22, .72) 0%,
    rgba(4, 16, 22, .5) 45%, rgba(4, 16, 22, .92) 100%);
  color-scheme: dark;
}

/* Doi giao dien: chuyen mau em trong 0,35 giay (app.js gan lop .theming) */
.theming, .theming * {
  transition: background-color .35s, color .35s, border-color .35s,
    box-shadow .35s !important;
}
@view-transition { navigation: auto; }

/* --- Nen ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: 84px; }
body {
  margin: 0;
  background: radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 18px
    18px, var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 8px; }
h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 6px; }
h3 { font-size: 18px; margin: 0 0 4px; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-2); }
img { max-width: 100%; }
::selection { background: var(--gold-2); color: #1a1200; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row.center { justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60;
  background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Dau trang ------------------------------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.top.scrolled { border-color: var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 900;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { image-rendering: pixelated; border-radius: 9px;
  box-shadow: 2px 2px 0 var(--hard); transition: transform .3s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand:hover { color: var(--ink); }
.brand b { color: var(--red); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > a, .nav-acct a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 5px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav > a[aria-current="page"] { color: var(--sea); }
.nav-acct { display: none; }
.top-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.acct-top { display: flex; gap: 2px; }
.acct { color: var(--ink); font-weight: 650; text-decoration: none;
  white-space: nowrap; padding: 6px 8px; border-radius: 10px; }
.acct:hover { background: var(--bg2); color: var(--ink); }
.acct[aria-current="page"] { color: var(--sea); }
.acct.strong { color: var(--sea); }
.pill {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.pill:hover { border-color: var(--sea); color: var(--sea);
  transform: translateY(-1px); }
.pill.icon { padding: 0; }
.theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}
.theme svg { display: block; transition: transform .5s; }
.theme:hover svg { transform: rotate(40deg); }
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 40px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.menu-btn span { display: block; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-open .menu-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg); }

/* --- Nut ------------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--sea);
  color: var(--sea-ink);
  box-shadow: 0 4px 0 var(--edge);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .15s;
}
/* Vet sang luot qua khi re chuot */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45),
    transparent);
  transform: skewX(-20deg);
  transition: left .5s;
  pointer-events: none;
}
.btn:hover::before { left: 120%; }
.btn:hover { filter: brightness(1.06); color: var(--sea-ink);
  transform: translateY(-1px); box-shadow: 0 5px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.busy::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.play { background: linear-gradient(180deg, var(--red-2), var(--red));
  color: var(--red-ink); }
.btn.play:hover { color: var(--red-ink); }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink); }
.btn.gold:hover { color: var(--gold-ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { color: var(--ink); }
.btn.glass { background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35); backdrop-filter: blur(4px); }
.btn.glass:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.btn.google { background: #fff; color: #1f1f1f; border-color: #1f1f1f;
  box-shadow: 0 4px 0 #1f1f1f; width: 100%; }
.btn.google:hover { color: #1f1f1f; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn.small { min-height: 38px; font-size: 14px; }

/* --- Bo cuc --------------------------------------------------------------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.wide > .wrap { padding-top: 0; }
.sec { margin: 56px 0; }
.sec-head { margin-bottom: 20px; }
/* Duong song song Han duoi tieu de */
.sec-head h2, .page-head h1 {
  display: inline-block;
  padding-bottom: 8px;
  background: url("/static/img/wave-gold.svg") left bottom / 24px 8px
    repeat-x;
}
.sec-head .muted { max-width: 660px; margin: 6px 0 0; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  transform: rotate(45deg);
}
.kicker.light { justify-content: center; color: var(--gold-2); }
.page-head { padding: 28px 0 8px; }
.lead { font-size: 18px; max-width: 680px; }
.more { margin: 14px 0 0; font-weight: 800; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }
.note { padding: 8px 12px; border-left: 4px solid var(--gold);
  background: var(--bg2); border-radius: 0 10px 10px 0; }
.crumbs { padding-top: 20px; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid2 .card { margin: 0; }
.cols { display: grid; gap: 24px 36px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.card.empty { display: flex; align-items: center; gap: 16px; }
.card.empty p { margin: 0; }
.date { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.post-card { position: relative; transition: transform .15s,
  box-shadow .15s; }
.post-card:hover { transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--sea); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post h1 { margin-top: 4px; }
.post p { overflow-wrap: anywhere; }

.tag { font-size: 12px; font-weight: 800; padding: 2px 9px;
  border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.tag.live { background: var(--red); color: var(--red-ink);
  animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .7; } }

.ev { display: flex; gap: 14px; align-items: flex-start; }
.ev p { margin: 4px 0; }
.ev-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--edge);
  border-radius: 14px;
  background: var(--bg2);
  font-size: 28px;
}
.ev.is-live { border-color: var(--red); }
.reward { font-weight: 700; }

/* --- Sprite pixel (sheet trong sprites.css) ------------------------------- */
/* Mot phan tu, nen la ca sheet; steps() nhay dung tung khung — khong co
   khoang trong giua hai khung nhu cach chong nhieu anh truoc day. */
.sp {
  display: inline-block;
  flex: none;
  vertical-align: bottom;
  background-repeat: no-repeat;
  background-position: 0 0;
  image-rendering: pixelated;
}
.z2 { zoom: 2; }
.z3 { zoom: 3; }
.z4 { zoom: 4; }
.sp.anim { animation: sheet var(--d, .6s) steps(var(--n)) infinite; }
.sp.anim.grow { --d: 4.4s; }
.sp.anim.hop { animation: sheet var(--d, .5s) steps(var(--n)) infinite,
  hop .5s ease-in-out infinite alternate; }
.sp.anim.bob { animation: sheet var(--d, .5s) steps(var(--n)) infinite,
  bob 1.4s ease-in-out infinite alternate; }
@keyframes sheet { from { background-position: 0 0; }
  to { background-position: var(--end) 0; } }
@keyframes hop { to { transform: translateY(-1px); } }
@keyframes bob { to { transform: translateY(-1px) rotate(-1deg); } }

/* Dai duong: nguoi / xe / ga chay ngang. Moi `.mover` rong bang ca duong,
   sprite nam o mep trai; dich bang transform (GPU) — 100% = be ngang duong.
   Khong dung `left` vi trinh duyet phai dung lai bo cuc moi khung -> giat. */
.road {
  position: relative;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
}
.mover {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  will-change: transform;
}
.mover > .sp { display: block; }
@keyframes go-r { from { transform: translateX(-180px); }
  to { transform: translateX(100%); } }
@keyframes go-l { from { transform: translateX(100%); }
  to { transform: translateX(-180px); } }
.w1, .h1 { animation: go-r 34s linear infinite -4s; }
.w2, .h3 { animation: go-r 38s linear infinite -21s; }
.w3, .h2 { animation: go-r 13s linear infinite -6s; bottom: 6px; }
.w4, .h4 { animation: go-r 44s linear infinite -30s; }
.w5, .h6 { animation: go-l 36s linear infinite -12s; bottom: 18px; }
.w6, .h5 { animation: go-l 19s linear infinite -3s; bottom: 22px; }
.w7 { animation: go-r 15s linear infinite -11s; bottom: 6px; }
.h7 { animation: go-l 11s linear infinite -8s; bottom: 24px; }
.h8 { animation: go-r 10s linear infinite -2s; bottom: 4px; }

/* --- Hero trang chu ------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: var(--hero-veil),
    url("/static/img/place/hero.png") center / cover no-repeat;
  image-rendering: pixelated;
  animation: pan 50s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 50% 38%, rgba(255, 211, 107, .22),
      transparent 70%),
    radial-gradient(2px 2px at 20% 30%, #fff8, transparent),
    radial-gradient(2px 2px at 70% 20%, #fff8, transparent),
    radial-gradient(2px 2px at 85% 55%, #fff6, transparent),
    radial-gradient(2px 2px at 35% 60%, #fff6, transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .55; } }
@keyframes pan {
  from { transform: scale(1.08) translate(-2%, -1%); }
  to { transform: scale(1.08) translate(2%, 1%); }
}
.hero-in { max-width: 780px; margin: 0 auto; padding: 60px 16px 0; }
.hero-icon { image-rendering: pixelated; border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
  animation: float 3s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-8px) rotate(-2deg); } }
.title {
  font-size: clamp(44px, 9.5vw, 80px);
  font-weight: 900;
  margin: 8px 0 10px;
  text-shadow: 0 5px 0 rgba(0, 0, 0, .35);
}
/* Chu "DaNang" anh vang chay ngang nhu vay rong */
.title span {
  background: linear-gradient(100deg, #ffd36b 20%, #fff3c4 40%, #ffb43a 60%,
    #ffd36b 80%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .35));
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.lede { font-size: clamp(16px, 2.4vw, 20px); margin: 0 auto 24px;
  max-width: 640px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.hero-chips li { padding: 4px 12px; border-radius: 99px;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .25); }
.lantern {
  position: absolute;
  top: 0;
  transform-origin: top center;
  animation: swing 2.8s ease-in-out infinite alternate;
}
.lantern.l1 { left: 6%; }
.lantern.l2 { right: 6%; animation-delay: -1.4s; }
@keyframes swing { from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); } }
.hero-road .road {
  height: 150px;
  margin-top: 16px;
  background:
    repeating-linear-gradient(90deg, var(--gold-2) 0 28px,
      transparent 28px 56px) 0 84% / 100% 3px no-repeat,
    linear-gradient(180deg, transparent 0 48%, #cfc6b2 48% 52%,
      #3b4a52 52% 100%);
}
/* Song song Han chay ngang mep duoi hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background: var(--wave) 0 0 / 48px 14px repeat-x;
  animation: wave 6s linear infinite;
}
@keyframes wave { to { background-position: 48px 0; } }

/* --- The tinh nang -------------------------------------------------------- */
.feats { display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.feat {
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.feat:hover { transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--hard); }
.feat h3 { margin-top: 2px; }
.feat p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.feat-art {
  display: grid;
  place-items: end center;
  height: 140px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 2px solid var(--edge);
  background:
    linear-gradient(180deg, transparent 0 74%,
      color-mix(in srgb, var(--leaf) 45%, var(--bg2)) 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--sea) 22%, var(--bg2)),
      var(--bg2));
  overflow: hidden;
}

/* --- Dia danh ------------------------------------------------------------- */
.places { display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.place {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 190px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.place:hover { transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--hard); color: #fff; }
.place.big { grid-column: span 2; grid-row: span 2; min-height: 396px; }
.place img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.place:hover img { transform: scale(1.08); }
.place-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 32px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
}
.place-cap b { font-size: 17px; }
.place-cap small { opacity: .85; }

.spots { display: grid; gap: 22px; }
.spot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.spot:nth-child(even) img { order: 2; }
.spot img { width: 100%; border-radius: 10px; image-rendering: pixelated;
  aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--edge); }
.spot h3 { font-size: 23px; }
.spot:target { outline: 4px solid var(--gold); outline-offset: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0;
  position: sticky; top: 64px; z-index: 5; padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toc a { padding: 6px 14px; border-radius: 99px; background: var(--card);
  border: 2px solid var(--edge); text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 14px; transition: background .2s; }
.toc a:hover { background: var(--gold-2); color: #1a1200; }

/* --- O luoi sprite -------------------------------------------------------- */
.tiles { display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 10px 12px;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.tile-art {
  display: grid;
  place-items: end center;
  height: 104px;
  padding-bottom: 8px;
  border-radius: 9px;
  background: var(--bg2);
  overflow: hidden;
}
.tile-art.soil { background: linear-gradient(180deg, var(--bg2) 0 60%,
  #8a5a32 60%, #6e4524); }
.tile-art.grass { background: linear-gradient(180deg, var(--bg2) 0 62%,
  color-mix(in srgb, var(--leaf) 55%, var(--bg2)) 62%); }
.tile-art.asphalt { background: linear-gradient(180deg, var(--bg2) 0 62%,
  #4a575e 62%); }
.tile-art.water { background: linear-gradient(180deg, var(--bg2) 0 52%,
  #2f8fa0 52%, #1f6f80); }
.tile figcaption { display: flex; flex-direction: column; gap: 2px; }
.tile small { color: var(--muted); font-size: 13px; }

.band {
  position: relative;
  padding: 26px 22px 0;
  border: 2px solid var(--edge);
  border-radius: 20px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--leaf) 14%, var(--bg2)), var(--bg2));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pen {
  position: relative;
  height: 96px;
  margin: 18px -22px 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0 46%,
    color-mix(in srgb, var(--leaf) 40%, var(--bg2)) 46%);
  border-top: 3px dashed color-mix(in srgb, #8a5a32 55%, transparent);
}
.pen .mover { bottom: 12px; }
/* Vat nuoi di cham hon nguoi; con chan (a2, a4) di nguoc chieu */
.a1 { animation: go-r 48s linear infinite -2s; bottom: 18px; }
.a2 { animation: go-l 56s linear infinite -14s; bottom: 26px; }
.a3 { animation: go-r 62s linear infinite -24s; bottom: 8px; }
.a4 { animation: go-l 70s linear infinite -6s; bottom: 22px; }
.a5 { animation: go-r 80s linear infinite -35s; bottom: 6px; }
.a6 { animation: go-r 36s linear infinite -18s; bottom: 10px; }

/* --- Huong dan ------------------------------------------------------------ */
.guide-art { display: flex; flex-wrap: wrap; gap: 28px; align-items: end;
  justify-content: center; padding: 22px; margin: 14px 0 22px;
  border: 2px solid var(--edge); border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--bg2) 0 70%,
    color-mix(in srgb, var(--leaf) 40%, var(--bg2)) 70%); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.step p { margin: 4px 0 0; }
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--hard);
}
.tip { border-left-width: 8px; border-left-color: var(--leaf);
  margin: 28px 0; }
.tip ul { margin: 8px 0 0; padding-left: 20px; }

/* --- Dai keu goi cuoi trang chu ------------------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  align-items: center;
  justify-content: center;
  padding: 30px 26px;
  border: 2px solid var(--edge);
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow);
  background: url("/static/img/wave-line.svg") 0 0 / 48px 14px,
    linear-gradient(135deg, #0b5f68, #0e7f88 60%, #1a9aa0);
  animation: wave 8s linear infinite;
}
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0 0 16px; opacity: .92; }
.cta-band .cta { justify-content: flex-start; }
.cta-art { display: flex; gap: 18px; align-items: end; }

/* --- Hoi dap -------------------------------------------------------------- */
.search { display: flex; gap: 10px; margin-bottom: 12px; }
.faq { display: grid; }
.qa { padding: 0; overflow: hidden; }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  font-weight: 900;
  transition: transform .25s;
}
.qa[open] summary::after { transform: rotate(45deg);
  background: var(--gold-2); color: #1a1200; }
.qa > div { padding: 0 18px 8px; border-top: 2px dashed var(--line); }

/* --- Tai khoan ------------------------------------------------------------ */
.auth {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 860px;
  margin: 28px auto;
}
.auth-art {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: end;
  min-height: 260px;
  padding-bottom: 28px;
  border: 2px solid var(--edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, transparent 0 74%,
      color-mix(in srgb, var(--leaf) 45%, var(--bg2)) 74%),
    url("/static/img/place/hoian.png") center / cover;
  image-rendering: pixelated;
}
.auth-card { margin: 0; padding: 26px; }
.auth-card h1 { font-size: 30px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted);
  margin: 18px 0 10px; font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 2px;
  background: var(--line); }
.links { display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 8px; margin: 16px 0 0; font-weight: 700; font-size: 15px; }
.mini-steps { margin: 12px 0 20px; padding-left: 22px; }
.mini-steps li { margin: 4px 0; }
.mini-steps li::marker { color: var(--red); font-weight: 900; }
.dev { max-width: 860px; margin: 18px auto; }
.dev label { display: block; margin: 6px 0; }
.who { margin: 0 0 8px; }
.onboard { display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.onboard .card { margin: 0; }
.form label { display: block; margin: 12px 0; font-weight: 700; }
.form label input { margin-top: 6px; }
.picks { display: flex; gap: 12px; border: 0; padding: 0; margin: 12px 0; }
.picks legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.pick { position: relative; flex: 1; margin: 0 !important; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg2);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pick input:checked + span { border-color: var(--sea);
  box-shadow: 3px 3px 0 var(--sea); transform: translate(-1px, -1px); }
.pick input:focus-visible + span { outline: 3px solid var(--gold); }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.peek { position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  margin-top: 3px; border: 0; background: none; color: var(--sea);
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  padding: 6px 8px; }
.alert { padding: 10px 14px; border: 2px solid var(--red);
  border-radius: 10px; font-weight: 650;
  background: color-mix(in srgb, var(--red) 12%, var(--card)); }
.char { display: flex; gap: 22px; align-items: center; }
.char-art { display: grid; place-items: end center; width: 120px;
  height: 140px; padding-bottom: 10px; border-radius: 12px;
  border: 2px solid var(--edge);
  background: linear-gradient(180deg, var(--bg2) 0 72%,
    color-mix(in srgb, var(--leaf) 45%, var(--bg2)) 72%); }
.char h2 { margin: 0 0 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none;
  margin: 0; padding: 0; }
.stats li { display: flex; flex-direction: column; padding: 8px 14px;
  border: 2px solid var(--edge); border-radius: 12px;
  background: var(--bg2); }
.stats small { color: var(--muted); font-weight: 600; }
.stats b { font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.logout { margin-top: 28px; }
.lost { max-width: 520px; margin: 40px auto; flex-direction: column;
  text-align: center; padding: 30px; }

input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  transition: box-shadow .2s;
}
input:focus { outline: none; box-shadow: 3px 3px 0 var(--sea); }
.search input { flex: 1; }
input[type="radio"] { width: auto; min-height: 0; }

/* --- Thong bao noi -------------------------------------------------------- */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 50;
  max-width: min(92vw, 480px);
  padding: 12px 18px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 700;
  cursor: pointer;
  translate: -50% 0;
  animation: drop .45s cubic-bezier(.2, 1.4, .4, 1);
  transition: opacity .3s, translate .3s;
}
.toast.ok { border-left: 8px solid var(--leaf); }
.toast.err { border-left: 8px solid var(--red); }
.toast.gone { opacity: 0; translate: -50% -20px; pointer-events: none; }
@keyframes drop { from { opacity: 0; translate: -50% -30px; } }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: 46px;
  height: 46px;
  border: 2px solid var(--edge);
  border-radius: 14px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  translate: 0 20px;
  pointer-events: none;
  transition: opacity .25s, translate .25s;
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.mbar { display: none; }

/* --- Hien dan khi cuon (chi khi co JS) ------------------------------------ */
.js .reveal { opacity: 0; translate: 0 22px;
  transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* --- Chan trang ----------------------------------------------------------- */
.foot {
  position: relative;
  margin-top: 150px;
  background: var(--bg2);
  border-top: 2px solid var(--edge);
}
.foot-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 140px;
  margin-bottom: 2px;
}
.foot-road .mover { bottom: 0; }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 8px;
}
.foot-in .muted { max-width: 380px; margin: 8px 0 0; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto);
  gap: 6px 32px; align-content: start; }
.foot-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--sea); }
.fine { text-align: center; color: var(--muted); font-size: 13px;
  margin: 0; padding: 10px 16px 26px; }

/* --- Man vua -------------------------------------------------------------- */
@media (max-width: 1020px) {
  .acct-top { display: none; }
  .nav-acct { display: inline-flex; gap: 2px; }
}
@media (max-width: 860px) {
  /* Khong JS: menu la hang cuon ngang duoi logo */
  .top { flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto;
    scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .nav::-webkit-scrollbar { display: none; }
  /* Co JS: menu tha xuong bang nut ba gach */
  .js .menu-btn { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 16px;
    background: var(--bg);
    border-bottom: 2px solid var(--edge);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .15);
    transform-origin: top;
    transform: scaleY(.9);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s, opacity .2s, visibility .2s;
  }
  .js.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .js .nav > a, .js .nav-acct a { min-height: 48px; font-size: 17px; }
  .js .nav > a::after { display: none; }
  .js .nav > a[aria-current="page"] { background: var(--bg2); }
  .js .nav-acct { display: flex; border-top: 2px dashed var(--line);
    padding-top: 8px; margin-top: 6px; }
  .top-act .btn.play { display: none; }
  .mbar {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 24;
    min-height: 52px;
  }
  body { padding-bottom: 76px; }
  .to-top { bottom: 80px; }
}
@media (max-width: 600px) {
  .place.big { grid-column: auto; grid-row: auto; min-height: 230px; }
  .spot { grid-template-columns: 1fr; }
  .spot:nth-child(even) img { order: 0; }
  .lantern { display: none; }
  .hero-in { padding-top: 36px; }
  .cta .btn { flex: 1 1 100%; }
  .auth { grid-template-columns: 1fr; margin-top: 12px; }
  .auth-art { min-height: 160px; }
  .z4 { zoom: 3; }
  .feat-art .z3 { zoom: 2; }
  .steps { grid-template-columns: 1fr; }
  .char { flex-direction: column; text-align: center; }
  .stats { justify-content: center; }
}

/* Ton trong nguoi dung tat chuyen dong: dung moi anh dong, giu khung dep */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important;
    transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; }
  /* cay dung o giai doan chin (khung cuoi) */
  .sp.grow { background-position: calc(var(--end) * (var(--n) - 1) /
    var(--n)) 0; }
  .mover { transform: translateX(var(--at, 40%)); }
  .w1, .h1, .a1 { --at: 6%; }
  .w2, .h2, .a2 { --at: 24%; }
  .w3, .h3, .a3 { --at: 44%; }
  .w4, .h4, .a4 { --at: 62%; }
  .w5, .h5, .a5 { --at: 78%; }
  .w6, .h6, .a6 { --at: 90%; }
  .w7, .h7, .h8 { --at: 34%; }
}

/* --- O nhap phu: select / textarea / checkbox ---------------------------- */
select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; line-height: 1.5; }
select:focus, textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--sea); }
input[type="checkbox"] { width: auto; min-height: 0; display: inline-block;
  margin: 0 8px 0 0; vertical-align: middle; }
.form label.check, label.check { display: flex; align-items: center;
  font-weight: 600; }
.note.ok { border-left-color: var(--leaf); }
.tag { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.tag.err { background: var(--red); color: var(--red-ink); }
.tag.k-event { background: var(--gold); color: var(--gold-ink); }
.tag.k-notice { background: var(--sea); color: var(--sea-ink); }
.post-card.pinned { border-color: var(--gold); }
.row.between { justify-content: space-between; align-items: center; }

/* --- Trang tai khoan: cac o doi ten / mat khau / email -------------------- */
.acc-grid { display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.acc-sec h2 { margin: 0 0 6px; font-size: 20px; }
.acc-sec .form label { margin: 10px 0; }

/* --- Giao dien theo mua (html[data-season]) ------------------------------ */
:root { --s1: var(--sea); --s2: var(--gold); --s-ink: #fff; }
[data-season="tet"] { --s1: #c8102e; --s2: #f6c33b; --s-ink: #fff8e1; }
[data-season="trungthu"] { --s1: #e8590c; --s2: #ffd43b; --s-ink: #2b1400; }
[data-season="valentine"] { --s1: #e64980; --s2: #ffc9de; --s-ink: #fff; }
[data-season="8-3"] { --s1: #c2255c; --s2: #f9a8d4; --s-ink: #fff; }
[data-season="30-4"] { --s1: #d00000; --s2: #ffd000; --s-ink: #fffbe6; }
[data-season="1-6"] { --s1: #4dabf7; --s2: #ffd43b; --s-ink: #0b2540; }
[data-season="2-9"] { --s1: #da251d; --s2: #ffcd00; --s-ink: #fff; }
[data-season="vanhoa"] { --s1: #7b2d26; --s2: #e9b949; --s-ink: #fff7e6; }
[data-season="noel"] { --s1: #1b6e3a; --s2: #d62828; --s-ink: #fff; }
[data-season="he"] { --s1: #0ea5c6; --s2: #ffb703; --s-ink: #032b36; }
[data-season="thu"] { --s1: #b45309; --s2: #f59e0b; --s-ink: #fff8eb; }

/* Day trang tri duoi menu (SVG theo concept, server/deco.js) */
.season-top { position: relative; z-index: 20; }
.garland { height: 22px; overflow: hidden; line-height: 0; }
.bunting { display: block; width: 2400px; height: 30px; }

/* --- Hieu ung dung chung cho hinh SVG trang tri --------------------------- */
.sway, .bob, .burst, .spin, .spin-slow, .wave {
  transform-box: fill-box;
}
.sway { transform-origin: 50% 0; animation: deco-sway 3.2s ease-in-out
  infinite alternate; }
.bob { animation: deco-bob 2.6s ease-in-out infinite alternate; }
.burst { transform-origin: 50% 50%; animation: deco-burst 2.4s ease-out
  infinite; }
.spin { transform-origin: 50% 50%; animation: deco-spin 9s linear infinite; }
.spin-slow { transform-origin: 50% 50%; animation: deco-spin 30s linear
  infinite; }
.wave { transform-origin: 0 50%; animation: deco-wave 1.6s ease-in-out
  infinite alternate; }
.twk { animation: deco-twk 1.4s ease-in-out infinite alternate; }
.wave-x { animation: deco-wavex 6s linear infinite; }
.d1 { animation-delay: -.7s; }
.d2 { animation-delay: -1.4s; }
.d3 { animation-delay: -2.1s; }
@keyframes deco-sway { from { rotate: -7deg; } to { rotate: 7deg; } }
@keyframes deco-bob { to { translate: 0 -6px; } }
@keyframes deco-burst {
  0% { scale: .1; opacity: 0; }
  15% { opacity: 1; }
  70% { scale: 1; opacity: .9; }
  100% { scale: 1.15; opacity: 0; }
}
@keyframes deco-spin { to { rotate: 360deg; } }
@keyframes deco-wave { from { transform: skewY(-4deg); }
  to { transform: skewY(4deg); } }
@keyframes deco-twk { from { opacity: 1; } to { opacity: .35; } }
@keyframes deco-wavex { to { translate: -120px 0; } }

/* Do treo hai mep trang, ngay duoi dai chuc mung */
/* Trang con: chi chiem phan le trong ben ngoai cot noi dung (1100px) */
.hang { position: absolute; top: 100%; pointer-events: none;
  width: clamp(0px, calc((100vw - 1100px) / 2 - 8px), 160px); }
.home .hang { width: 160px; }
.hang svg { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.hang.l { left: 4px; }
.hang.r { right: 4px; transform: scaleX(-1); }

/* Tranh lon hai ben hero (trang chu) */
.hero-deco { position: absolute; bottom: 110px; z-index: -1; width: 250px;
  pointer-events: none; }
.hero-deco svg { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.hero-deco.l { left: max(8px, calc(50% - 640px)); }
.hero-deco.r { right: max(8px, calc(50% - 640px)); }

/* Dai nen sat chan trang */
.ground { display: block; width: 100%; height: 60px; margin-bottom: -4px;
  position: relative; z-index: 2; }

@media (max-width: 1100px) {
  .hero-deco { width: 180px; opacity: .85; }
}
@media (max-width: 760px) {
  .home .hang { width: 64px; }
  .hero-deco { top: 40px; bottom: auto; width: 110px; opacity: .7; }
  .hero-deco.r { display: none; }
}

.season-band {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--s1), color-mix(in srgb, var(--s1)
    60%, var(--s2)), var(--s1));
  color: var(--s-ink);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.sb-ico { font-size: 20px; animation: sway 2.8s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(10deg) translateY(-2px); } }

/* Hat roi: 14 hat, vi tri / nhip dat theo nth-child (khong style inline) */
/* Lop hat nam DUOI noi dung: thay o nen trong, khong de len chu / the */
.season-fx { position: fixed; inset: 0; z-index: 1; overflow: hidden;
  pointer-events: none; }
[data-season] main, [data-season] .foot { position: relative; z-index: 2; }
.season-fx i {
  position: absolute;
  top: -40px;
  font-style: normal;
  font-size: 22px;
  opacity: .85;
  animation: fall 14s linear infinite;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(30px, 55vh) rotate(160deg); }
  100% { transform: translate(-20px, 110vh) rotate(320deg); }
}
.season-fx i:nth-child(1) { left: 3%; animation-delay: -1s; }
.season-fx i:nth-child(2) { left: 11%; animation-delay: -8s;
  animation-duration: 17s; font-size: 16px; }
.season-fx i:nth-child(3) { left: 19%; animation-delay: -4s;
  animation-duration: 12s; }
.season-fx i:nth-child(4) { left: 27%; animation-delay: -11s;
  font-size: 18px; }
.season-fx i:nth-child(5) { left: 35%; animation-delay: -2s;
  animation-duration: 19s; font-size: 26px; }
.season-fx i:nth-child(6) { left: 43%; animation-delay: -13s;
  animation-duration: 15s; }
.season-fx i:nth-child(7) { left: 51%; animation-delay: -6s;
  font-size: 16px; }
.season-fx i:nth-child(8) { left: 59%; animation-delay: -9s;
  animation-duration: 13s; }
.season-fx i:nth-child(9) { left: 67%; animation-delay: -3s;
  animation-duration: 18s; font-size: 20px; }
.season-fx i:nth-child(10) { left: 74%; animation-delay: -12s; }
.season-fx i:nth-child(11) { left: 81%; animation-delay: -5s;
  animation-duration: 16s; font-size: 17px; }
.season-fx i:nth-child(12) { left: 88%; animation-delay: -10s;
  animation-duration: 12s; }
.season-fx i:nth-child(13) { left: 94%; animation-delay: -7s;
  font-size: 24px; }
.season-fx i:nth-child(14) { left: 98%; animation-delay: -14s;
  animation-duration: 20s; font-size: 15px; }
/* Dien thoai: bot hat cho do roi mat */
@media (max-width: 640px) {
  .season-fx i:nth-child(even) { display: none; }
}
/* Mau mua tham vao hero */
[data-season] .hero-glow { background: radial-gradient(60% 50% at 50% 40%,
  color-mix(in srgb, var(--s2) 45%, transparent), transparent 70%); }
[data-season] .btn.play { box-shadow: var(--shadow), 0 0 0 3px var(--s2); }

@media (prefers-reduced-motion: reduce) {
  .season-fx { display: none; }
}
