@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --soil: #1a120a;
  --soil-2: #271b0f;
  --grass: #2e5a1c;
  --clay: #8c3a16;
  --amber: #f6c23a;
  --paper: #e4e7df;
  --ink: #f0f0ea;
  --ink-dark: #1a120a;
  --muted: #cdbfa4;
  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(88px, 12vw, 200px);
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --s-small: 0.9375rem;
  --s-body: clamp(1.125rem, 1.08rem + 0.2vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --s-head: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--soil); color: var(--ink); font: 600 var(--s-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink-dark); }

/* thanh trên */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--m); background: var(--soil); }
.mark { font-weight: 700; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.links { display: flex; gap: clamp(14px, 2vw, 32px); }
.links a { font-size: var(--s-small); text-decoration: none; padding: 6px 0; transition: color .2s; }
.links a:hover { color: var(--amber); }
.btn { display: inline-block; background: var(--amber); color: var(--ink-dark); font-weight: 700; text-decoration: none; padding: 16px 32px; font-size: var(--s-body); border-radius: 0; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: #ffd35f; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 10px 20px; font-size: var(--s-small); border: 0; cursor: pointer; font-family: inherit; }

/* hero */
.hero { padding: 0; }
.monument { font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: 24.4vw; white-space: nowrap; padding: .3em var(--m) 0; }
.monument span { display: block; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: clamp(20px, 3vw, 40px) var(--m) clamp(20px, 3vw, 40px); }
.hero-lead { max-width: 34em; font-size: var(--s-body); }
.hero-act { text-align: right; flex: none; }
.hero-note { font-size: var(--s-small); color: var(--muted); margin-top: 10px; }
.reel video { width: 100%; height: auto; aspect-ratio: 1280 / 588; object-fit: cover; background: #000; }

/* ruộng màu theo tầng đất */
.field { padding: var(--gap) 0; }
.grass { background: var(--grass); }
.clay { background: var(--clay); }
.soil { background: var(--soil); }
.soil2 { background: var(--soil-2); }
.wrap { padding: 0 var(--m); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); }
h2 { font-weight: 700; font-size: var(--s-head); line-height: 1.1; letter-spacing: -0.01em; }
.sub { margin-top: 20px; max-width: 34em; }

/* lối chơi */
.grass .split-text { grid-column: 1 / 6; }
.stage { grid-column: 6 / 13; align-self: start; position: sticky; top: 88px; }
.stage-pics { position: relative; aspect-ratio: 1280 / 600; background: var(--soil); overflow: hidden; }
.stage-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 8s linear; transform: scale(1.04); }
.stage-pics img.on { opacity: 1; transform: scale(1); }
.stage figcaption { margin-top: 14px; font-size: var(--s-small); }
.tabs { margin-top: 44px; display: grid; gap: 6px; }
.tabs button { width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; padding: 16px 20px; cursor: pointer; display: block; transition: background .25s, transform .25s var(--ease); }
.tabs button:hover { background: rgba(0,0,0,.18); }
.tabs button[aria-selected="true"] { background: var(--soil); }
.tabs b { display: block; font-size: var(--s-lead); font-weight: 700; line-height: 1.25; }
.tabs span { display: block; margin-top: 8px; font-weight: 600; }

html:not(.js) .tabs span { display: block; }

/* dải ảnh */
.band-section { padding: var(--gap) 0 var(--gap); }
.band-title { padding: 0 var(--m); margin-left: 16.6%; margin-bottom: 56px; }
.band { display: flex; width: 100%; height: min(68svh, 640px); }
.p { flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .5s var(--ease); }
.p5 { flex-grow: 5; } .p2 { flex-grow: 2; } .p3 { flex-grow: 3; }
.p img { width: 100%; height: 100%; object-fit: cover; }
.band:hover .p { flex-grow: 2; }
.band .p:hover { flex-grow: 6; }
.band-cap { padding: 14px var(--m) 0; font-size: var(--s-small); }

/* chế độ */

.poster li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.poster .w { font-weight: 700; text-transform: uppercase; font-size: clamp(60px, 11.5vw, 190px); line-height: 1.16; letter-spacing: -0.03em; transition: color .2s; }
.poster li:hover .w { color: var(--amber); }
.poster .d { font-size: var(--s-lead); font-variant-numeric: tabular-nums; text-align: right; }
.poster-note { margin-top: clamp(40px, 6vw, 80px); max-width: 44em; }

/* điều khiển */
.keys-split > div:first-child { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; }
.keys { grid-column: 5 / 13; display: grid; gap: 4px; }
.keys > div { display: grid; grid-template-columns: minmax(150px, 14em) 1fr; gap: 24px; align-items: baseline; background: var(--soil-2); padding: 14px 20px; transition: background .2s; }
.keys > div:hover { background: #33240f; }
dt { font-weight: 700; color: var(--amber); }

/* yêu cầu máy */
.need-split .need { grid-column: 1 / 7; display: grid; gap: 22px; align-content: start; }
.need p { max-width: 36em; }
.need h2 { margin-bottom: 8px; }
.side { grid-column: 8 / 13; align-self: start; }
.side img { width: 100%; height: auto; }
.side figcaption { margin-top: 12px; font-size: var(--s-small); }

/* cả băng là nút */
.go { position: relative; display: block; height: 60svh; min-height: 380px; background: var(--amber); color: var(--ink-dark); text-decoration: none; overflow: hidden; transition: background .25s, color .25s; }
.go:hover, .go:focus-visible { background: var(--ink-dark); color: var(--amber); outline-offset: -6px; }
.go-sentence { position: absolute; top: 20px; left: var(--m); max-width: 20em; font-weight: 700; }
.go-arrow { position: absolute; top: 20px; right: var(--m); width: 48px; height: 48px; transition: transform .3s var(--ease); }
.go:hover .go-arrow { transform: translate(6px, -6px); }
.go-word { position: absolute; left: var(--m); right: var(--m); bottom: 18px; font-weight: 700; text-transform: uppercase; font-size: 31vw; line-height: .8; letter-spacing: -0.04em; white-space: nowrap; }

/* chân trang */
.foot { background: var(--paper); color: var(--ink-dark); padding: var(--gap) 0 clamp(32px, 4vw, 56px); }
.foot-name { font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: .95; font-size: 24.4vw; white-space: nowrap; padding: .3em var(--m) 0; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); row-gap: 16px; padding: clamp(40px, 5vw, 72px) var(--m) 0; }
.foot-places { grid-column: 1 / 6; font-size: var(--s-head); font-weight: 700; line-height: 1.25; }
.foot-places a { text-decoration: none; }
.foot-places a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-line { grid-column: 7 / 13; font-size: var(--s-small); max-width: 38em; }
.foot-line + .foot-line { grid-column: 7 / 13; }
.foot a:focus-visible { outline-color: var(--ink-dark); }

/* thông báo trên điện thoại */
.toast { position: fixed; z-index: 40; left: var(--m); right: var(--m); bottom: var(--m); background: var(--paper); color: var(--ink-dark); padding: 18px 20px; display: grid; gap: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.toast[hidden] { display: none; }
.toast .btn-small { justify-self: start; }

/* chuyển động: chỉ transform + opacity, nội dung vẫn hiện nếu không có script */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.reel video { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.03); } }
.reel { overflow: hidden; }

@media (max-width: 900px) {
  .monument, .foot-name { font-size: 23.5vw; }
  .links { display: none; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-act { text-align: left; }
  .hero-act .btn { display: block; text-align: center; }
  .split { display: block; }
  .stage { display: none; }
  .tabs { margin-top: 28px; }
  .band { height: 84svh; flex-wrap: wrap; }
  .p { flex: none; height: 50%; }
  .p5 { width: 64%; } .p2:nth-of-type(2) { width: 36%; } .p3 { width: 36%; } .p2:nth-of-type(4) { width: 64%; }
  .band:hover .p, .band .p:hover { flex-grow: 0; }
  .band-title { margin-left: 0; margin-bottom: 28px; }
  .poster .w { font-size: 15vw; }
  .poster li { display: block; padding-bottom: 8px; }
  .poster .d { display: block; text-align: left; margin: 4px 0 18px; }
  .keys { margin-top: 28px; }
  .keys-split > div:first-child { position: static; }
  .keys > div { grid-template-columns: 1fr; gap: 4px; }
  .need-split .need { display: grid; }
  .side { margin-top: 32px; }
  .go { height: 46svh; min-height: 300px; }
  .go-sentence { max-width: 14em; }
  .go-arrow { width: 32px; height: 32px; }
  .foot-grid { display: block; }
  .foot-places { margin-bottom: 24px; }
  .foot-line { margin-bottom: 12px; }
  .bar .btn-small { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .reel video { animation: none; }
  .stage-pics img { transition: opacity .2s; transform: none; }
  .btn, .btn:hover { transform: none; }
}
