/* LifeGame — cùng bảng màu belifeon.com/7ngaynotion: mực xanh đen, ngọc bích, chanh, nền vải lanh.
   Trầm, nhiều khoảng thở, bóng đổ mềm — dành cho người lớn, leader, chủ doanh nghiệp. */
:root {
  --linen: #F2F1ED;      /* nền trang */
  --linen-100: #FAF9F6;  /* mặt thẻ */
  --linen-300: #E4E2DA;  /* vạch, rãnh */
  --ink: #0F1E1A;        /* chữ đậm, nút chính */
  --ink-700: #1A2F29;
  --text: #0F1E1A;
  --muted: #6E7A75;
  --jade: #0E8A6B;       /* nhấn chính */
  --jade-200: #A8DECD;
  --zest: #C6F24E;       /* nhấn phụ, gạch chân */
  --danger: #B4442F;
  --card: #FAF9F6;
  --ok: #0E8A6B;
  --line: rgba(15, 30, 26, .10);
  --line-strong: rgba(15, 30, 26, .16);

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --step: 8px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-raised: 0 1px 2px rgba(15, 30, 26, .05), 0 4px 10px -3px rgba(15, 30, 26, .08);
  --shadow-float: 0 1px 2px rgba(15, 30, 26, .05), 0 8px 20px -6px rgba(15, 30, 26, .10), 0 24px 48px -18px rgba(15, 30, 26, .16);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  color: var(--text);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--linen);
  /* Nền nhiều lớp gradient nhẹ cho có chiều sâu, giống trang 7 ngày Notion. */
  background-image:
    radial-gradient(120% 80% at 12% -5%, rgba(14, 138, 107, .16) 0%, transparent 55%),
    radial-gradient(90% 70% at 92% 8%, rgba(198, 242, 78, .16) 0%, transparent 50%),
    radial-gradient(140% 100% at 50% 105%, rgba(15, 30, 26, .07) 0%, transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Hạt nhiễu rất nhẹ phủ toàn trang. */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: var(--jade); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* --- Thanh trên --- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { font: 800 24px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--jade); }

/* --- Nút --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border: 1px solid var(--ink); border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  color: var(--linen-100); background: var(--ink);
  box-shadow: 0 2px 4px rgba(15, 30, 26, .14), 0 10px 22px -8px rgba(15, 30, 26, .42);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .2s linear;
}
.btn:hover { transform: translateY(-2px); background: var(--ink-700); box-shadow: 0 4px 8px rgba(15, 30, 26, .16), 0 16px 32px -10px rgba(15, 30, 26, .48); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-ghost { color: var(--ink); background: transparent; border-color: rgba(15, 30, 26, .15); box-shadow: none; }
.btn-ghost:hover { background: rgba(15, 30, 26, .05); box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 16px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.btn-wide { width: 100%; }

/* --- Chữ --- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.03em; }
h1 { font-size: clamp(40px, 7vw, 70px); line-height: 1.06; font-weight: 800; margin: 0 0 24px; max-width: 16em; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; margin: 0 0 6px; letter-spacing: -.02em; }
.lead { font-size: 19px; max-width: 34em; margin: 0 0 24px; color: #2A443C; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
/* Gạch chân màu chanh dưới cụm từ chính. */
.hl { background: linear-gradient(transparent 76%, var(--zest) 76%, var(--zest) 92%, transparent 92%); padding: 0 .04em; }

/* --- Khối --- */
.section { padding: 64px 0; }
.card {
  background: var(--card); border: 1px solid rgba(15, 30, 26, .08); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-raised);
}

/* --- Hero --- */
.hero { padding: 48px 0 24px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 32px; padding: 0; list-style: none;
  font: 500 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.facts li::before { content: '▸ '; color: var(--jade); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Bảng hành trình 31 ô (dấu ấn của trang) --- */
.board { margin-top: 8px; max-width: 720px; padding: 16px; background: var(--card); border: 1px solid rgba(15, 30, 26, .08); border-radius: 18px; box-shadow: var(--shadow-float); }
.board-head, .board-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.board-grid { margin: 0; padding: 0; list-style: none; }
.board-head { margin-bottom: 8px; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--muted); text-align: center; }
.tile {
  position: relative; aspect-ratio: 1 / 1; padding: 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(255, 255, 255, .7); border: 1.5px solid var(--line-strong); border-radius: 9px;
  opacity: 0; transform: translateY(6px); animation: tile-in .45s var(--ease) forwards;
  transition: transform .45s var(--ease);
}
.tile:hover { transform: translateY(-2px); }
.tile-empty { background: transparent; border: 1px dashed var(--line); animation: none; opacity: 1; transform: none; }
.tile-n { font: 800 clamp(16px, 3.4vw, 28px)/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.tile-date { font: 600 clamp(9px, 1.4vw, 11px)/1 var(--mono); color: var(--muted); }
.tile-tag { margin-top: 4px; margin-bottom: auto; font: 600 9px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.tile-kickoff { background: var(--ink); border-color: var(--ink); }
.tile-kickoff .tile-n, .tile-kickoff .tile-tag { color: var(--zest); }
.tile-kickoff .tile-date { color: rgba(250, 249, 246, .7); }
.tile-review { background: var(--jade-200); border-color: var(--jade-200); }
.tile-review .tile-date { color: #2A443C; }
.tile-final { background: var(--jade); border-color: var(--jade); }
.tile-final .tile-n, .tile-final .tile-tag { color: var(--linen-100); }
.tile-final .tile-date { color: rgba(250, 249, 246, .75); }
.tile-today { outline: 2px solid var(--jade); outline-offset: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 4px; }
.legend .k { background: var(--ink); }
.legend .r { background: var(--jade-200); }
.legend .f { background: var(--jade); }
@media (max-width: 520px) {
  .board { padding: 10px; }
  .board-head, .board-grid { gap: 3px; }
  .tile { padding: 3px; border-radius: 6px; }
  .tile-tag { display: none; }
}
@keyframes tile-in { to { opacity: 1; transform: none; } }

/* --- Luật chơi --- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rule p { margin: 0; }
.points { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--jade); display: block; margin-bottom: 12px; }
.habits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.habits li { padding: 6px 14px; border: 1px solid rgba(15, 30, 26, .12); border-radius: 999px; background: var(--card); font-size: 15px; }
.habits b { font-weight: 600; color: var(--muted); font-size: 13px; margin-right: 4px; }

/* --- Cọc --- */
.deposit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.meter { margin: 10px 0 6px; height: 14px; border-radius: 999px; background: var(--linen-300); overflow: hidden; }
.meter span { display: block; height: 100%; width: 90%; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--jade) 0 calc(100% / 27 - 2px), transparent 0 calc(100% / 27)); }
.qa { margin: 0; }
.qa dt { font-weight: 600; color: var(--ink); margin-top: 16px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 4px 0 0; color: #2A443C; }
@media (max-width: 760px) { .deposit { grid-template-columns: 1fr; } }

.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: 24px; }

/* --- Form đăng ký --- */
.form-wrap { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: 400 17px/1.3 var(--body); color: var(--text);
  background: #fff; border: 1px solid rgba(15, 30, 26, .15); border-radius: 12px;
  transition: border-color .2s linear, box-shadow .2s linear;
}
input:focus, select:focus { border-color: var(--jade); outline: none; box-shadow: 0 0 0 3px rgba(14, 138, 107, .16); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--jade); }
.note { padding: 12px 16px; border-left: 3px solid var(--jade); border-radius: 0 10px 10px 0; background: var(--card); font-size: 14px; margin: 6px 0 20px; }
.turnstile { min-height: 65px; margin: 0 0 14px; }
.error { color: var(--danger); font-weight: 600; min-height: 1.4em; margin: 10px 0 0; }

/* --- Thanh toán --- */
.pay-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0; }
.qr { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; padding: 8px; border: 1px solid rgba(15, 30, 26, .08); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-raised); }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-row span { color: var(--muted); font-size: 14px; flex: 0 0 110px; }
.pay-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pay-status { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.pay-status.bad { color: var(--danger); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--jade); animation: pulse 1.6s ease-in-out infinite; }
.done-title { font: 800 34px/1.1 var(--display); color: var(--ok); margin: 0 0 12px; letter-spacing: -.03em; }
@keyframes pulse { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none; opacity: 1; transform: none; }
  .pulse { animation: none; }
  .btn, .tile { transition: none; }
}
