@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-400-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-600-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-700-vi.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #3a2414;
  --ink-soft: #6a4b32;
  --wood: #7a4524;
  --wood-dark: #3e2412;
  --gold: #e39a32;
  --gold-deep: #c56d18;
  --paper: #fbf6ea;
  --paper-2: #f3e6cf;
  --moss: #4f6b3d;
  --line: rgba(92, 58, 28, 0.18);
  --shadow: 0 18px 40px rgba(62, 36, 18, 0.16);
  --header: 4.4rem;
  --serif: "Be Vietnam Pro", "Noto Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 236, 196, 0.9), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 214, 160, 0.55), transparent 55%),
    linear-gradient(180deg, #f7efe0 0%, #efe2cc 40%, #e7d3b4 100%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--wood); }
a:hover { color: var(--gold-deep); }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  background: var(--wood-dark);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cloud, .mist, .petal, .smoke {
  position: absolute;
  border-radius: 999px;
}
.cloud {
  background: rgba(255, 252, 246, 0.72);
  filter: blur(2px);
  animation: drift 46s linear infinite;
}
.cloud-a { width: 180px; height: 54px; top: 8%; left: -20%; }
.cloud-b { width: 240px; height: 70px; top: 18%; left: -30%; animation-duration: 62s; animation-delay: -20s; }
.cloud-c { width: 140px; height: 42px; top: 30%; left: -15%; animation-duration: 54s; animation-delay: -8s; }
.mist {
  left: -10%;
  right: -10%;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  filter: blur(8px);
  animation: mist 28s ease-in-out infinite alternate;
}
.mist-a { top: 22%; }
.mist-b { top: 48%; animation-duration: 36s; }
.petal {
  width: 14px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, #ffd0dc, #e07a92 70%);
  opacity: 0.85;
  animation: fall 16s linear infinite;
}
.petal:nth-child(odd) { background: radial-gradient(circle at 30% 30%, #ffe7a8, #e39a32 72%); }
.petal-1 { left: 8%; animation-duration: 15s; }
.petal-2 { left: 22%; animation-duration: 19s; animation-delay: -4s; }
.petal-3 { left: 41%; animation-duration: 17s; animation-delay: -9s; }
.petal-4 { left: 63%; animation-duration: 21s; animation-delay: -2s; }
.petal-5 { left: 78%; animation-duration: 14s; animation-delay: -7s; }
.petal-6 { left: 91%; animation-duration: 18s; animation-delay: -12s; }
.smoke {
  width: 18px;
  height: 18px;
  right: 12%;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(6px);
  animation: rise 7s ease-in infinite;
}
.smoke-b { right: 16%; animation-delay: -2.4s; animation-duration: 8.5s; }
.smoke-c { right: 9%; animation-delay: -4s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}
@keyframes mist {
  from { transform: translateX(-4%); opacity: 0.35; }
  to { transform: translateX(6%); opacity: 0.7; }
}
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(220deg); opacity: 0.15; }
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: 0.55; }
  100% { transform: translateY(-140px) scale(1.8); opacity: 0; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 154, 50, 0.35), 0 8px 18px rgba(92, 48, 12, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(227, 154, 50, 0), 0 10px 24px rgba(197, 109, 24, 0.35); }
}

.topbar, main, .site-foot { position: relative; z-index: 1; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.9rem;
  background: rgba(62, 36, 18, 0.92);
  color: #f8efdf;
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff8ec;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(227, 154, 50, 0.7);
}
.nav-toggle {
  border: 1px solid rgba(255, 232, 196, 0.45);
  background: transparent;
  color: #fff8ec;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #4a2c16;
  padding: 0.4rem 0.8rem 0.9rem;
  flex-direction: column;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: #fff4e2;
  text-decoration: none;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(255, 232, 196, 0.12);
}
.site-nav a.is-here { color: #ffd27a; }

.wrap { width: min(1080px, calc(100% - 1.5rem)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffaf2;
}
.hero-art {
  position: absolute;
  inset: -8% 0 auto;
  height: 120%;
  background:
    linear-gradient(180deg, rgba(62, 36, 18, 0.05), rgba(62, 36, 18, 0.55) 70%, rgba(62, 36, 18, 0.78)),
    url("../img/hero.webp") center 30% / cover no-repeat;
  transform: translateY(0);
  will-change: transform;
}
.hero-copy {
  position: relative;
  padding: 5.5rem 0 2.2rem;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffe1a8;
}
.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  line-height: 1.12;
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(40, 18, 4, 0.35);
}
.lede { margin: 0 0 1.1rem; max-width: 38rem; font-size: 1.05rem; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.store, .gold, .ghost {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 0.45rem 1.15rem 0.5rem;
  border-radius: 14px;
  color: #3e240e;
  background: #f3c56a url("../img/btn-gold.webp") center / 100% 100% no-repeat;
  animation: glow 3.4s ease-in-out infinite;
}
.store-kicker { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6a3d16; }
.store-name { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.gold, .ghost { flex-direction: row; align-items: center; font-weight: 700; }
.ghost {
  background: rgba(255, 248, 236, 0.16);
  color: #fff8ec;
  border: 1px solid rgba(255, 232, 196, 0.45);
  animation: none;
}
.fine { color: var(--ink-soft); font-size: 0.92rem; }
.hero .fine { color: #f6e7cf; }

.section { padding: 2.6rem 0; }
.section h2 { margin: 0 0 0.45rem; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; }
.section > .wrap > p { margin-top: 0; }

.paper, .wood-card, .doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.rank-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 7.4rem;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0.1rem 1rem;
  scroll-snap-type: x mandatory;
}
.rank {
  scroll-snap-align: start;
  text-align: center;
  background: linear-gradient(180deg, #fffaf1, #f3e2c4);
  border-radius: 18px;
  padding: 0.7rem 0.4rem 0.8rem;
  border: 1px solid var(--line);
}
.rank img { width: 72px; height: 72px; }
.rank strong { display: block; font-size: 0.86rem; line-height: 1.25; }
.rank span { display: block; color: var(--ink-soft); font-size: 0.75rem; }

.cards {
  display: grid;
  gap: 0.9rem;
}
.card {
  padding: 1rem 1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(247, 236, 214, 0.94)),
    url("../img/scroll.webp") center / cover no-repeat;
}
.card img.icon { width: 64px; height: 64px; }
.card h3 { margin: 0.2rem 0 0.3rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }
.faces { display: flex; gap: 0.4rem; margin-bottom: 0.3rem; }
.faces img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e7c48a;
}

.practice {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.practice figure {
  margin: 0;
  text-align: center;
  background: rgba(255, 250, 241, 0.72);
  border-radius: 16px;
  padding: 0.45rem 0.2rem 0.55rem;
}
.practice img { width: 56px; height: 56px; }
.practice figcaption { font-size: 0.78rem; line-height: 1.25; }

.promise {
  padding: 1.15rem 1.1rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.94), rgba(243, 226, 196, 0.92)),
    url("../img/wood.webp") center / cover no-repeat;
}
.promise li { margin: 0.25rem 0; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
  background: #fffaf3;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.7rem 0.65rem;
  vertical-align: top;
}
th { background: #f3e2c4; font-size: 0.92rem; }
.empty { text-align: center; color: var(--ink-soft); font-style: italic; }

.bank {
  display: grid;
  gap: 1rem;
}
.qr {
  background: #fff;
  border-radius: 18px;
  padding: 0.6rem;
  border: 1px solid var(--line);
}
.qr img { display: block; width: min(100%, 320px); margin: 0 auto; }
.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.account code {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #fff8ec;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.copy {
  border: 0;
  background: var(--wood);
  color: #fff8ec;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.copy.is-done { background: var(--moss); }

.doc { padding: 1.15rem 1.05rem 1.4rem; }
.doc h1 { margin-top: 0.2rem; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; }
.doc h2 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.lang { font-size: 0.95rem; }

.site-foot {
  margin-top: 1rem;
  padding: 1.4rem 0 2rem;
  background: #3e2412;
  color: #f6e7cf;
}
.site-foot a { color: #ffd89a; }
.site-foot p { margin: 0.35rem 0; }
.site-foot .fine { color: #d9c4a4; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(36, 18, 8, 0.55);
}
.modal-card {
  width: min(26rem, 100%);
  background: #fffaf3 url("../img/scroll.webp") center / cover no-repeat;
  border-radius: 22px;
  padding: 1.3rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 0.4rem; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(12px);
  background: #3e2412;
  color: #fff8ec;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  z-index: 31;
  opacity: 0;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); transition: 0.25s ease; }

.reveal { opacity: 0; transform: translateY(22px); animation: rise-in 0.7s ease forwards; }
.reveal-2 { animation-delay: 0.12s; }
.reveal-3 { animation-delay: 0.22s; }
@keyframes rise-in {
  to { opacity: 1; transform: none; }
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 0.2rem;
  }
  .site-nav a { border: 0; padding: 0.35rem 0.55rem; border-radius: 999px; }
  .site-nav a:hover, .site-nav a.is-here { background: rgba(255, 232, 196, 0.12); }
  .cards { grid-template-columns: 1fr 1fr; }
  .practice { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .bank { grid-template-columns: 320px 1fr; align-items: center; }
  .doc { padding: 1.6rem 1.8rem 2rem; }
}
@media (min-width: 1040px) {
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .rank-scroller {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .mist, .petal, .smoke, .store, .gold, .reveal {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .petal, .smoke { display: none; }
}
