/* Cook Game site – màu và font theo docs/ART_BIBLE.md "Giao diện (UI)" và CookGame/UI/DesignSystem/DSTokens.swift */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --wood-top: #C9B59A;
  --wood-bottom: #A8916F;
  --surface: #FFF4E0;
  --wood-dark: #6B4E33;
  --primary: #138000;
  --primary-base: #0B5200;
  --secondary: #0069BA;
  --secondary-base: #004A84;
  --accent: #FFB000;
  --text: #3B2A1C;
  --text-2: #6B4E33;
  --on-dark: #FFFFFF;
  --radius-m: 18px;
  --radius-l: 22px;
  --outline: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--wood-top), var(--wood-bottom)) fixed;
}
h1, h2, h3, .brand, .btn { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; line-height: 1.2; }
a { color: var(--secondary); font-weight: 700; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Thanh trên */
.top { padding: 16px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 24px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: var(--outline) solid var(--wood-dark); }
.lang { display: flex; gap: 6px; }
.lang a, .lang span {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 999px; text-decoration: none; font-family: "Baloo 2", sans-serif; font-weight: 800;
  border: var(--outline) solid var(--wood-dark); background: var(--surface); color: var(--text);
}
.lang span { background: var(--wood-dark); color: var(--on-dark); }

/* Panel kem viền gỗ đậm */
.panel {
  background: var(--surface);
  border: var(--outline) solid var(--wood-dark);
  border-radius: var(--radius-l);
  box-shadow: 0 6px 0 rgba(59, 42, 28, .25);
  padding: 28px 24px;
  margin: 0 0 28px;
}

/* Trang chủ */
.hero { text-align: center; padding: 36px 24px 32px; }
.hero .icon { width: 132px; height: 132px; border-radius: 30px; border: 4px solid var(--wood-dark); box-shadow: 0 6px 0 rgba(59, 42, 28, .25); }
.hero h1 { font-size: 44px; margin: 16px 0 8px; }
.hero p { font-size: 19px; max-width: 560px; margin: 0 auto 24px; color: var(--text-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; min-width: 240px; padding: 0 28px;
  border-radius: var(--radius-m); border: var(--outline) solid var(--primary-base);
  background: var(--primary); color: var(--on-dark); text-decoration: none; font-size: 22px;
  box-shadow: 0 6px 0 var(--primary-base);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn:active { transform: translateY(4px) scale(.97); box-shadow: 0 2px 0 var(--primary-base); }
.btn svg { width: 28px; height: 28px; flex: none; }
.btn-note { display: block; margin-top: 14px; font-size: 14px; color: var(--text-2); }

.shots { display: flex; gap: 18px; justify-content: center; margin: 0 0 28px; }
.shots figure { margin: 0; flex: 1 1 0; max-width: 300px; }
.shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 600 / 1219; object-fit: cover; object-position: top; border-radius: 26px;
  border: 5px solid var(--wood-dark); box-shadow: 0 6px 0 rgba(59, 42, 28, .25); background: var(--surface);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 28px; }
.feature { margin: 0; text-align: center; padding: 24px 18px; }
.feature svg { width: 76px; height: 76px; }
.feature h2 { font-size: 22px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--text-2); }

/* Trang chữ */
.doc h1 { font-size: 34px; margin: 0 0 4px; }
.doc .updated { color: var(--text-2); margin: 0 0 20px; }
.doc h2 { font-size: 22px; margin: 26px 0 8px; color: var(--wood-dark); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 0 0 10px; }
.doc .note {
  background: #FFE7B0; border: 2px solid var(--accent); border-radius: 14px; padding: 12px 16px; margin: 0 0 20px;
}
.faq dt { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; margin: 20px 0 4px; }
.faq dd { margin: 0; }
.contact { font-size: 20px; }

/* Chân trang */
.foot { padding: 8px 0 36px; text-align: center; font-size: 15px; color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
.foot nav a { color: var(--text); display: inline-block; padding: 10px 2px; }
.foot small { color: var(--text); opacity: .85; }

.center { text-align: center; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 36px; }
  .hero .icon { width: 108px; height: 108px; }
  .btn { width: 100%; min-width: 0; }
  .shots { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { flex: 0 0 68%; scroll-snap-align: center; }
  .features { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .doc h1 { font-size: 28px; }
  .brand span { font-size: 22px; }
}

.doc > :first-child { margin-top: 0; }
.foot small { display: block; padding: 0 20px; }
.hero > p:last-child { margin-bottom: 0; } /* T347: khi khối App Store bị gỡ */
