:root {
  --brown: #8a3f12;
  --brown-d: #4e2208;
  --orange: #ff7a1a;
  --orange-d: #d85f08;
  --paper: #fffdf9;
  --cream: #fbe9d0;
  --line: #ecd5b8;
  --text: #3b2616;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: #b8541a url("https://pub-1b46309ccb3545179083ad7cbfaf98a1.r2.dev/assets/img/hero-bg.jpg") center top / cover fixed;
  min-height: 100vh;
}
body::before { content: ""; position: fixed; inset: 0; background: rgba(78, 34, 8, 0.78); z-index: -1; }

.art-head {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, #5d2a0b, #3f1a05);
  border-bottom: 3px solid var(--orange);
  padding: 10px 18px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.art-head a:first-child { color: #ffe3b3; font: 700 20px "Poppins", sans-serif; letter-spacing: .8px; text-decoration: none; }
.art-lang { color: #ffe3b3; font-size: 13px; text-decoration: none; border: 1px solid #ffd9a0; border-radius: 16px; padding: 3px 14px; transition: .2s; }
.art-lang:hover { background: #ffe3b3; color: var(--brown-d); }

.art-wrap { max-width: 860px; margin: 0 auto; padding: 22px 16px 50px; }
.art-back { display: inline-block; margin-bottom: 12px; color: #ffe3b3; text-decoration: none; font-weight: 600; font-size: 15px; }
.art-back:hover { color: #fff; text-decoration: underline; }

.art {
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.art-title-box {
  background: linear-gradient(135deg, var(--orange) 0%, #c9500b 100%);
  padding: 26px 30px 22px;
  color: #fff;
}
.art-title-box h1 { margin: 0; font: 700 28px/1.3 "Poppins", sans-serif; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.art-date { margin-top: 8px; font-size: 14px; color: #ffe9c7; }
.art-body { padding: 24px 30px 28px; }

.art-body p, .art-body li { font-size: 16.5px; }
.art-body p { margin: 0 0 14px; }
.art-body h3 {
  margin: 28px 0 10px; padding-left: 12px;
  font: 600 19px "Poppins", sans-serif; color: var(--brown);
  border-left: 5px solid var(--orange);
}
.art-body ul, .art-body ol { padding-left: 24px; margin: 0 0 14px; }
.art-body ul { list-style: none; padding-left: 4px; }
.art-body ul > li { position: relative; padding-left: 22px; margin: 7px 0; }
.art-body ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.art-body ul ul { margin: 6px 0 4px; }
.art-body ul ul > li::before { background: var(--brown); width: 6px; height: 6px; }
.art-body ol > li { margin: 7px 0; padding-left: 4px; }
.art-body ol > li::marker { color: var(--orange-d); font-weight: 700; }
.art-body b { color: var(--brown-d); }
.art-body em { color: #5a3a1e; }

.art-table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 12px 0 18px; font-size: 15.5px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.art-table th, .art-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.art-table tr:last-child td { border-bottom: 0; }
.art-table th { background: var(--brown); color: #fff; font-weight: 600; }
.art-table tr:nth-child(even) td { background: #fdf3e4; }

.art-note { font-size: 13px; color: #8a6a4a; margin: -2px 0 10px; font-style: italic; }
.art-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.art-gallery a { display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; transition: .2s; }
.art-gallery a:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); border-color: var(--orange); }
.art-gallery img { display: block; width: 100%; height: auto; border-radius: 6px; }

.art-source {
  margin: 28px 0 0; padding: 12px 16px;
  background: var(--cream); border-left: 5px solid var(--orange); border-radius: 6px;
  font-size: 14px; color: #6d5238; word-break: break-all;
}
.art-source a { color: var(--brown); font-weight: 600; }

.art-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.art-nav a {
  flex: 1; display: block; padding: 12px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, .12); color: #ffe9c7; text-decoration: none; font-size: 14px; line-height: 1.4;
  border: 1px solid rgba(255, 233, 199, .35); transition: .2s;
}
.art-nav a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.art-nav .next { text-align: right; }
.art-nav small { display: block; opacity: .75; font-size: 12px; }

@media (max-width: 640px) {
  .art-title-box { padding: 20px 18px 16px; }
  .art-title-box h1 { font-size: 21px; }
  .art-body { padding: 18px 16px 22px; }
  .art-body p, .art-body li { font-size: 16px; }
  .art-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .art-nav { flex-direction: column; }
}
.art-fig { margin: 12px 0 18px; text-align: center; }
.art-fig img { max-width: 100%; max-height: 640px; width: auto; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.art-code { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 20px; padding: 16px 12px; background: linear-gradient(135deg, #fff4de, #ffe2b8); border: 2px dashed var(--orange); border-radius: 12px; text-align: center; }
.art-code span { font: 600 15px "Poppins", sans-serif; color: var(--brown); }
.art-code b { font: 700 36px/1.1 "Poppins", sans-serif; letter-spacing: 6px; color: var(--orange-d); }
.art-code small { font-size: 13px; color: #7a5a3a; }
.art-fig a { display: inline-block; }
.art-fig figcaption { margin-top: 6px; font-size: 14px; color: #7a5a3a; }
.art-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 12px 0 18px; }
.art-row .art-fig { flex: 1 1 180px; max-width: 260px; margin: 0; }
.art-row .art-fig img { max-height: 460px; }
.art-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 10px 0 18px; }
.art-icons span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; color: var(--brown); }
.art-icons img { width: 48px; height: 48px; }
.art-ico { width: 28px; height: 28px; vertical-align: middle; margin-left: 4px; }
/* San khau ninja (giong man chon ninja SceneNewUser): tia sang xoay + quang sang theo mau he, ninja lo lung, sao nhap nhay */
.art-hero { --hc: 126, 200, 160; position: relative; max-width: 420px; height: 340px; margin: 14px auto 20px; overflow: hidden;
  border-radius: 16px; background: radial-gradient(circle at 50% 42%, #2b2f3a 0%, #121318 75%); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.art-hero-glow, .art-hero-rays { position: absolute; left: 50%; top: 42%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.art-hero-glow { width: 320px; height: 320px; background: radial-gradient(circle, rgba(var(--hc), .75) 0%, rgba(var(--hc), .25) 45%, transparent 70%);
  animation: art-hero-pulse 1.7s ease-in-out infinite; }
.art-hero-rays { width: 560px; height: 560px; opacity: .55;
  background: repeating-conic-gradient(rgba(var(--hc), .9) 0deg 9deg, transparent 9deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%);
  animation: art-hero-spin 26s linear infinite; }
.art-hero-shadow { position: absolute; left: 50%; top: 248px; width: 150px; height: 26px; margin-left: -75px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); animation: art-hero-shadow 2.9s ease-in-out infinite; }
.art-hero-ninja { position: absolute; left: 50%; top: 22px; width: 240px; height: 240px; margin-left: -120px; image-rendering: auto;
  border: 0 !important; box-shadow: none !important; filter: drop-shadow(0 0 10px rgba(var(--hc), .6)); animation: art-hero-bob 2.9s ease-in-out infinite; }
.art-hero-name { position: absolute; left: 0; right: 0; top: 286px; text-align: center; font: 700 26px "Poppins", sans-serif; letter-spacing: .5px;
  background: linear-gradient(#fff, #ffd24d); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); }
.art-hero-stars { position: absolute; left: 0; right: 0; top: 326px; text-align: center; font-size: 26px; line-height: 1; color: #ffd24d; letter-spacing: 6px;
  text-shadow: 0 0 6px rgba(255, 190, 40, .8), 0 2px 2px rgba(0, 0, 0, .7); }
.art-hero-stars span { display: inline-block; animation: art-hero-pulse 1.2s ease-in-out infinite; }
.art-hero-stars span:nth-child(2) { animation-delay: .25s; } .art-hero-stars span:nth-child(3) { animation-delay: .5s; } .art-hero-stars span:nth-child(4) { animation-delay: .75s; }
@keyframes art-hero-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes art-hero-pulse { 50% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.08); } }
.art-hero-glow { --tx: -50%; --ty: -50%; }
@keyframes art-hero-bob { 50% { transform: translateY(-10px); } }
@keyframes art-hero-shadow { 50% { transform: scale(.82); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .art-hero * { animation: none !important; } }
/* Trang tai game (download.html): 2 nut lon PC / Android */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 6px 0 24px; }
.dl-btn { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s; }
.dl-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .3); color: #fff; }
.dl-pc { background: linear-gradient(135deg, #2f7de1, #1b4fa8); }
.dl-android { background: linear-gradient(135deg, #3ccf6e, #1f9a4b); }
.dl-ico { font-size: 38px; line-height: 1; }
.dl-txt { display: flex; flex-direction: column; line-height: 1.3; }
.dl-txt b { font: 700 21px "Poppins", sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.dl-txt small { font-size: 13.5px; opacity: .9; }
