/* Hoan Lac Tran — site CSS. Tone toi, dan gian Viet. Viet moi hoan toan. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&family=Noto+Serif:wght@600;700&display=swap");
:root {
  --wx-bg: #14100b;
  --wx-bg-2: #1d1710;
  --wx-panel: #241c12;
  --wx-line: #4a3a24;
  --wx-ink: #e8dcc3;
  --wx-ink-dim: #b9a67f;
  --wx-accent: #c8963e;
  --wx-accent-2: #8f2f2f;
  --wx-green: #7ba05b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wx-bg);
  color: var(--wx-ink);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}
a { color: var(--wx-accent); text-decoration: none; }
a:hover { color: #e8b96a; text-decoration: underline; }

.wx-site-header {
  background: linear-gradient(180deg, #241a0e, var(--wx-bg-2));
  border-bottom: 3px double var(--wx-line);
  padding: 18px 24px 12px;
}
.wx-brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wx-brand-name {
  font-size: 30px; font-weight: 800; letter-spacing: 2px;
  color: var(--wx-accent);
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}
.wx-brand-sub { color: var(--wx-ink-dim); font-size: 14px; font-style: italic; }
.wx-play {
  margin-left: auto; background: var(--wx-accent-2); color: #fff !important;
  padding: 8px 20px; border-radius: 4px; font-weight: 700; border: 1px solid #a53f3f;
}
.wx-play:hover { background: #a53f3f; text-decoration: none; }

.wx-site-nav {
  background: var(--wx-bg-2); border-bottom: 1px solid var(--wx-line);
  padding: 8px 24px; display: flex; gap: 4px; flex-wrap: wrap;
}
.wx-site-nav a {
  color: var(--wx-ink-dim); padding: 6px 12px; border-radius: 3px; font-size: 14px;
}
.wx-site-nav a:hover, .wx-site-nav a.wx-active {
  background: var(--wx-panel); color: var(--wx-accent); text-decoration: none;
}

main.wx-page { max-width: 900px; margin: 0 auto; padding: 28px 22px 60px; }
main.wx-page h1 {
  font-family: "Noto Serif", Georgia, serif; color: var(--wx-accent);
  border-bottom: 2px solid var(--wx-line); padding-bottom: 10px; font-size: 30px;
}
main.wx-page h2 { color: var(--wx-ink); margin-top: 30px; font-size: 21px; }
main.wx-page h2::before { content: "❖ "; color: var(--wx-accent-2); }
.wx-lede { font-size: 17px; color: var(--wx-ink-dim); font-style: italic; }

.wx-card {
  background: var(--wx-panel); border: 1px solid var(--wx-line);
  border-radius: 6px; padding: 14px 18px; margin: 14px 0;
}
.wx-card h3 { margin: 6px 0 8px; color: var(--wx-accent); font-size: 17px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.wx-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.wx-table th, .wx-table td {
  border: 1px solid var(--wx-line); padding: 8px 12px; text-align: left;
}
.wx-table th { background: var(--wx-bg-2); color: var(--wx-accent); }
.wx-tag {
  display: inline-block; background: #33270f; border: 1px solid var(--wx-line);
  color: var(--wx-ink-dim); border-radius: 12px; padding: 1px 10px; font-size: 12px; margin: 2px;
}
.wx-note {
  border-left: 4px solid var(--wx-accent-2); background: #221612;
  padding: 10px 16px; margin: 16px 0; font-size: 15px;
}
.wx-quote {
  border-left: 4px solid var(--wx-green); padding: 8px 16px; margin: 16px 0;
  font-style: italic; color: var(--wx-ink-dim); background: #17200f;
}
.wx-crumb { font-size: 13px; color: var(--wx-ink-dim); margin-bottom: 8px; }
.wx-toc { background: var(--wx-panel); border: 1px dashed var(--wx-line); padding: 12px 18px; margin: 18px 0; }
.wx-toc b { color: var(--wx-accent); }

.wx-site-footer {
  border-top: 3px double var(--wx-line); background: var(--wx-bg-2);
  padding: 26px 24px 40px; font-size: 14px; color: var(--wx-ink-dim);
}
.wx-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto 18px; }
.wx-sitemap h4 { color: var(--wx-accent); margin: 0 0 8px; font-size: 14px; }
.wx-sitemap ul { list-style: none; margin: 0; padding: 0; }
.wx-sitemap li { margin: 3px 0; }
.wx-sitemap a { color: var(--wx-ink-dim); }
.wx-copy { text-align: center; border-top: 1px solid var(--wx-line); padding-top: 14px; }
@media (max-width: 640px) {
  .wx-brand-name { font-size: 24px; }
  main.wx-page h1 { font-size: 24px; }
}

/* =====================================================================
 * Skin pixel nhẹ cho trang cẩm nang: cùng ngôn ngữ với game (viền mực, vát sáng/tối, bóng cứng, không bo góc),
 * nhưng chỉ bằng CSS và giữ nền đọc dài sáng rõ. Không dùng khung ảnh để chữ dài vẫn dễ đọc.
 * ===================================================================== */
.wx-site-header { background: #241a0e; border-bottom: 2px solid #a8874e; box-shadow: 0 2px 0 #1b1418; }
.wx-brand-name { text-shadow: 2px 2px 0 #1b1418; }
.wx-play {
  border-radius: 0; background: #a8352a; border: 2px solid #1b1418;
  box-shadow: inset 2px 2px 0 #d8584a, inset -2px -2px 0 #5e1a18, 2px 2px 0 #1b1418;
  text-shadow: 1px 1px 0 #1b1418; letter-spacing: .3px;
}
.wx-play:hover { background: #c43a2e; box-shadow: inset 2px 2px 0 #ef6a54, inset -2px -2px 0 #5e1a18, 2px 2px 0 #1b1418; }
.wx-play:active { transform: translate(2px, 2px); box-shadow: inset 2px 2px 0 #5e1a18, inset -2px -2px 0 #a8352a; }
.wx-site-nav { border-bottom: 2px solid #1b1418; box-shadow: 0 2px 0 #4a3a24; }
.wx-site-nav a { border-radius: 0; border: 2px solid transparent; }
.wx-site-nav a:hover, .wx-site-nav a.wx-active { border-color: #a8874e; background: var(--wx-panel); }
main.wx-page h1 { border-bottom: 2px solid #a8874e; box-shadow: 0 2px 0 #1b1418; text-shadow: 2px 2px 0 #1b1418; }
.wx-card, .wx-toc {
  border-radius: 0; border: 2px solid #1b1418; border-style: solid;
  box-shadow: inset 0 0 0 2px #5c4529, 3px 3px 0 rgba(0, 0, 0, .45);
}
.wx-toc { border-style: solid; }
.wx-note, .wx-quote { border-radius: 0; border-top: 2px solid #1b1418; border-right: 2px solid #1b1418; border-bottom: 2px solid #1b1418; box-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }
.wx-tag { border-radius: 0; border: 2px solid #1b1418; box-shadow: inset 0 0 0 1px #5c4529; padding: 0 10px; }
.wx-table th, .wx-table td { border-color: #5c4529; }
.wx-table th { border-bottom: 2px solid #a8874e; }
.wx-site-footer { border-top: 2px solid #a8874e; box-shadow: inset 0 3px 0 #1b1418; }
a:focus-visible, .wx-play:focus-visible { outline: 3px solid #ffe49f; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .wx-play:active { transform: none; } }
