/* Trang chủ decheviahe.com — đứng riêng, không kéo site.css (tránh tải font Baloo 418 KB). Một font: Be Vietnam Pro. */
@font-face { font-family: BVP; font-weight: 500; font-display: swap; src: url("/play/fonts/bvp-500-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: BVP; font-weight: 500; font-display: swap; src: url("/play/fonts/bvp-500-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: BVP; font-weight: 700; font-display: swap; src: url("/play/fonts/bvp-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: BVP; font-weight: 700; font-display: swap; src: url("/play/fonts/bvp-700-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* bảng màu giấy ấm của game; chữ đỏ dùng --red-ink (tương phản ≥ 4,5:1 trên nền giấy và trắng) */
:root {
  color-scheme: light;
  --bg: #fbf3e4;
  --paper: #f5e8d0;
  --card: #fffdf8;
  --ink: #3a2c21;
  --soft: #66513f;
  --red: #d9544d;
  --red-ink: #a8382f;
  --green: #2e7631;
  --green-low: #215a24;
  --line: #e8d6b8;
  --shadow: 0 4px 16px rgba(90, 60, 30, .09);
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 BVP, "Segoe UI", system-ui, -apple-system, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #1f5a96; outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }

/* lưu ý 18+ (script SEO tự chèn đầu <body>): gọn hơn trên trang chủ, giữ nguyên lời */
.content-notice { margin: 12px auto 0; max-width: 1088px; font-size: 14px; line-height: 1.5; padding: 12px 16px; }
@media (max-width: 760px) { .content-notice { margin: 10px 16px 0; font-size: 13px; line-height: 1.45; padding: 10px 12px; } .content-notice p { margin: 4px 0; } }

/* đầu trang */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red-ink); font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--soft); font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { background: var(--paper); color: var(--red-ink); }
@media (max-width: 520px) {
  .top { flex-wrap: nowrap; gap: 8px; padding-top: 10px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top nav { flex: 1; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 3px; box-shadow: var(--shadow); }
  .top nav a { flex: 1 1 auto; justify-content: center; font-size: 14px; padding: 8px 2px; white-space: nowrap; }
}

/* tình trạng phát hành (cùng lời với các trang khác) */
.status { margin: 6px 0 0; }
.timeline { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; font-size: 13px; color: var(--soft); }
.timeline li { display: flex; align-items: center; gap: 6px; }
.timeline li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.timeline .done::before { background: var(--green); border-color: var(--green); }
.timeline .now { color: var(--ink); font-weight: 700; }
.timeline .now::before { background: #f6c445; border-color: #c9951a; }

/* màn đầu */
.hero { display: grid; gap: 20px; padding: 14px 0 8px; align-items: center; }
.hero h1 { font-size: clamp(38px, 10.5vw, 64px); color: var(--red-ink); letter-spacing: -.01em; }
.pitch { font-size: clamp(17px, 4.4vw, 22px); margin: 8px 0 18px; max-width: 32ch; }
.cta { display: grid; gap: 12px; }
.btn { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 9px 20px; border-radius: 16px; text-decoration: none; color: #fff; background: var(--green); box-shadow: 0 5px 0 var(--green-low); transition: transform .1s, box-shadow .1s; }
.btn b { font-size: 21px; line-height: 1.2; }
.btn span { font-size: 14px; opacity: .92; }
.btn.alt { background: var(--ink); box-shadow: 0 5px 0 #1d150f; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-low); }
.btn.alt:active { box-shadow: 0 2px 0 #1d150f; }
.btn:focus-visible { outline: 3px solid #1f5a96; outline-offset: 3px; }
.shot { border-radius: var(--r); overflow: hidden; border: 3px solid var(--card); box-shadow: var(--shadow); background: var(--paper); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-note { font-size: 14px; color: var(--soft); margin-top: 12px; }
@media (min-width: 560px) { .cta { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.15fr; gap: 40px; padding-top: 30px; } }

/* các phần */
section { margin: 48px 0; scroll-margin-top: 12px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
section > h2, .head h2 { font-size: clamp(26px, 6.5vw, 36px); margin: 4px 0 10px; }
.lead { color: var(--soft); max-width: 62ch; }
.head { margin-bottom: 18px; }
.ban { background: var(--card); border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .ban { padding: 32px; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--red); transform: rotate(45deg); }
.ticks b { color: var(--ink); }
@media (min-width: 760px) { .ticks { grid-template-columns: 1fr 1fr; gap: 10px 28px; } }

/* lưới ảnh có chú thích */
.tiles { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 20px 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .tiles { gap: 14px; } }
@media (max-width: 899px) { .tiles.odd li:first-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .tiles.three { grid-template-columns: repeat(3, 1fr); } }
.tiles figure { margin: 0; background: var(--bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); height: 100%; }
.tiles img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.tiles figcaption { padding: 8px 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.tiles figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (min-width: 600px) { .tiles figcaption { padding: 10px 14px 14px; font-size: 15px; } .tiles figcaption b { font-size: 17px; } }
@media (max-width: 360px) { .ban { padding: 18px 12px; } .tiles figcaption { padding: 7px 8px 10px; font-size: 13px; } }
.also { margin: 16px 0 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .also { grid-template-columns: 1fr 1fr; } }
.also p { background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; color: var(--soft); }
.also b { color: var(--ink); }
.go { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.go .btn { min-height: 54px; display: inline-flex; }
.go .btn b { font-size: 19px; }

/* dải ảnh cuộn ngang */
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; list-style: none; -webkit-overflow-scrolling: touch; }
.strip li { flex: none; scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip img { height: 210px; width: auto; border-radius: 14px; border: 3px solid var(--card); box-shadow: var(--shadow); background: var(--paper); }
.strip figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; max-width: 300px; }
@media (min-width: 600px) { .strip img { height: 280px; } }

/* thẻ liên kết */
.cards { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .cards { gap: 14px; } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { font-size: 17px; margin-bottom: 4px; }
@media (max-width: 599px) { .card { padding: 14px 12px; } .card p, .card .more { font-size: 14px; } }
@media (min-width: 600px) { .card h3 { font-size: 19px; } }
.card p { color: var(--soft); font-size: 15px; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--red-ink); font-size: 15px; }
.guides { columns: 2 150px; gap: 20px; padding: 0; margin: 14px 0 0; list-style: none; }
.guides li { break-inside: avoid; }
.guides a { display: block; padding: 9px 0; font-weight: 700; border-bottom: 1px solid var(--line); text-decoration: none; }
.guides a:hover { text-decoration: underline; }

.community { display: grid; gap: 14px; align-items: center; background: #eef4fb; border: 1px solid #b9cfe6; border-radius: 20px; padding: 20px; }
.community p { color: #2b3a4a; }
.community .btn { background: #1864d6; box-shadow: 0 5px 0 #0f4699; min-height: 54px; display: inline-flex; justify-self: start; }
@media (min-width: 760px) { .community { grid-template-columns: 1fr auto; padding: 24px 28px; } }

/* chân trang */
footer { margin-top: 40px; padding: 28px 0 40px; border-top: 2px dashed var(--line); color: var(--soft); font-size: 15px; }
.fcols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .fcols { grid-template-columns: repeat(3, 1fr); } }
.fcols h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.fcols ul { list-style: none; margin: 0; padding: 0; }
.fcols a { display: inline-block; padding: 6px 0; color: var(--soft); }
.fcols a:hover { color: var(--red-ink); }
.fnote { margin-top: 22px; font-size: 14px; }
.fnote a { color: var(--soft); }
