/* Landing + Wiki "Cổ Tích Đại Chiến": phong cách game (sơn mài tối, viền vàng, chữ Fraunces như trong game). */
@font-face { font-family: "Fraunces Display"; src: url("fonts/Fraunces-Display.ttf"); font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Bold.ttf"); font-weight: 700; font-display: swap; }
:root { --ink: #1a120b; --panel: #2a1d12; --panel2: #352617; --paper: #f3e4c1; --muted: #c4baa6; --gold: #d4a23a; --gold-hi: #ffd678;
  --red: #b84732; --line: rgba(212, 162, 58, 0.45); --r: 16px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at top, #3a2716 0%, var(--ink) 60%) fixed; color: var(--paper);
  font: 16px/1.6 "Be Vietnam Pro", system-ui, sans-serif; }
a { color: var(--gold-hi); }
img { max-width: 100%; }
h1, h2, h3, .title { font-family: "Fraunces Display", Georgia, serif; font-weight: 400; letter-spacing: .5px; }

/* thanh trên */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: rgba(20, 13, 8, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-hi); font-family: "Fraunces Display", serif; font-size: 20px; white-space: nowrap; }
.brand img { height: 36px; }
.nav nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.nav nav a.on, .nav nav a:hover { color: var(--ink); background: var(--gold-hi); }

/* nút kiểu game: viền sáng trên, bóng đáy */
.btn { display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: 1px; border-radius: 14px; padding: 12px 22px;
  border: 2px solid rgba(0, 0, 0, .35); transition: transform .08s; }
.btn:active { transform: translateY(2px); }
.btn--gold { color: #3c2006; background: linear-gradient(#ffe08a, #e0a83a 55%, #b8791f); box-shadow: inset 0 2px 0 #fff4c8, 0 4px 0 #6b4210, 0 8px 18px rgba(0,0,0,.45); }
.btn--dark { color: var(--paper); background: linear-gradient(#5a3d24, #3a2716); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 0 #1d130a; border-color: var(--line); }
.btn--xl { font-size: 20px; padding: 16px 34px; }
.btn--sm { padding: 6px 14px; font-size: 13px; border-radius: 10px; box-shadow: inset 0 2px 0 #fff4c8, 0 3px 0 #6b4210; }

/* màn đầu */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; background: var(--bg) center / cover no-repeat; overflow: hidden; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,13,8,.25), rgba(20,13,8,.55) 55%, var(--ink)); }
.hero__in { position: relative; text-align: center; padding: 40px 20px; max-width: 900px; }
.hero__logo { width: min(560px, 90%); filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.title { font-size: clamp(40px, 7vw, 76px); margin: 0; color: var(--gold-hi); text-shadow: 0 3px 0 #6b4210, 0 8px 24px rgba(0,0,0,.7); }
.tagline { font-size: clamp(16px, 2.4vw, 22px); color: var(--paper); text-shadow: 0 2px 6px rgba(0,0,0,.8); margin: 10px 0 26px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 26px; }
.store { display: flex; align-items: center; gap: 10px; min-width: 180px; padding: 8px 16px; border-radius: 12px; text-decoration: none;
  color: #fff; background: #000; border: 1.5px solid #8a8a8a; }
.store b { font-size: 22px; } .store span { display: flex; flex-direction: column; text-align: left; font-weight: 700; font-size: 18px; line-height: 1.1; }
.store small { font-weight: 400; font-size: 11px; color: #ccc; }
.store--soon { opacity: .6; cursor: default; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; background: var(--paper); border: 3px solid var(--gold); }
.qr__img svg { display: block; width: 104px; height: 104px; }
.qr small { color: #3c2006; font-weight: 600; font-size: 11px; }

/* khối nội dung */
main { display: block; }
.block { max-width: 1120px; margin: 0 auto; padding: 44px 20px 10px; }
.sec { position: relative; text-align: center; font-size: clamp(28px, 4vw, 40px); color: var(--gold-hi); margin: 0 0 10px; text-shadow: 0 2px 0 #6b4210; }
.sec::after { content: ""; display: block; width: 160px; height: 3px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.lead { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 22px; }
.more { text-align: center; margin: 22px 0 0; }
.note { text-align: center; color: var(--muted); font-size: 14px; }

/* đặc điểm */
.feat { max-width: 1120px; margin: -40px auto 0; padding: 0 20px; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feat__item, .chest, .event, .gloss__item, .hero-card { background: linear-gradient(var(--panel2), var(--panel)); border: 2px solid var(--line); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.35); }
.feat__item { padding: 18px; text-align: center; }
.feat__item h3 { color: var(--gold-hi); font-size: 22px; margin: 10px 0 6px; }
.feat__item p { color: var(--muted); margin: 0; font-size: 15px; }
.feat__art { height: 150px; display: flex; align-items: center; justify-content: center; }
.feat__art img { max-height: 150px; object-fit: contain; }
.feat__art--gems img { width: 52px; margin: 0 2px; }

/* thẻ tướng nhỏ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.card { text-decoration: none; text-align: center; color: var(--paper); font-weight: 600; font-size: 14px; transition: transform .15s; }
.card:hover { transform: translateY(-4px); }
.card img { display: block; width: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.banner img { display: block; width: 100%; border-radius: var(--r); border: 2px solid var(--line); }

/* wiki tướng */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.filters button { font: 600 14px "Be Vietnam Pro", sans-serif; color: var(--muted); background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filters button.on { color: var(--ink); background: var(--gold-hi); border-color: var(--gold-hi); }
.filters .el { width: 18px; height: 18px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hero-card { display: flex; gap: 14px; padding: 14px; scroll-margin-top: 80px; }
.hero-card[hidden] { display: none; }
.hero-card__art { width: 110px; flex-shrink: 0; align-self: flex-start; }
.hero-card h3 { margin: 0 0 6px; font-size: 22px; color: var(--paper); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.el { width: 22px; height: 22px; }
.tier { font: 700 11px "Be Vietnam Pro", sans-serif; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.tier--legendary { background: #ffb347; color: #3c1f00; } .tier--epic { background: #c08cff; color: #2a0f45; }
.tier--rare { background: #6bd6cc; color: #08332f; } .tier--common { background: #cfa36b; color: #3a250c; }
.bio { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.skill { background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.skill b { color: var(--gold-hi); } .skill small { color: var(--muted); }
.skill p { margin: 2px 0 0; font-size: 14px; }
.skill--aw { border-left: 3px solid #c08cff; } .skill--aw b { color: #e0c8ff; }
.meta { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* hiệu ứng */
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gloss__item { display: flex; gap: 14px; padding: 14px; align-items: flex-start; scroll-margin-top: 80px; }
.gloss__item img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.gloss__item h3 { margin: 0 0 4px; color: var(--gold-hi); font-size: 20px; }
.gloss__item p { margin: 0; color: var(--paper); font-size: 15px; }

/* hòm */
.chests { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 30px; }
.chest { display: flex; gap: 14px; padding: 14px; align-items: center; }
.chest > img { width: 120px; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.chest h3 { margin: 0 0 6px; color: var(--gold-hi); font-size: 22px; }
.chest ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.chest li { margin: 3px 0; display: flex; align-items: center; gap: 6px; } .chest .i { width: 18px; height: 18px; }

/* sự kiện */
.events { display: grid; gap: 18px; }
.event { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 16px; padding: 14px; align-items: center; scroll-margin-top: 80px; }
.event img { width: 100%; border-radius: 12px; }
.event h3 { margin: 0; color: var(--gold-hi); font-size: 26px; } .event .when { color: var(--gold); font-weight: 600; margin: 2px 0 6px; }
.event p { margin: 0 0 6px; }

/* liên hệ, chân trang */
.contact { text-align: center; padding-bottom: 50px; }
.foot { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; padding: 22px 16px 30px; background: rgba(20,13,8,.8); }

@media (max-width: 640px) {
  .nav { padding: 8px 12px; gap: 8px; } .brand span { display: none; } .nav .btn--sm { display: none; }
  .feat { margin-top: -24px; }
  .hero-card { flex-direction: column; } .hero-card__art { width: 140px; align-self: center; }
  .event { grid-template-columns: 1fr; }
}

/* Art B25 (khi đã có): nền lặp, dải đầu trang wiki, key art điện thoại */
body { background-image: var(--tile, none), radial-gradient(ellipse at top, #3a2716 0%, var(--ink) 60%); background-size: 512px, auto; background-attachment: fixed; }
.phead { height: 220px; background: center / cover no-repeat; border-bottom: 2px solid var(--line); mask-image: linear-gradient(#000 70%, transparent); }
@media (max-width: 640px) { .hero { background-image: var(--bg-m); } .phead { height: 140px; } }
.feat__art img[src*="landing/feat_"] { max-height: 180px; }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 10px; } .card { font-size: 12px; } }
.title__en { display: block; font-size: .42em; letter-spacing: 6px; text-transform: uppercase; color: var(--gold-hi); margin-top: 4px; }
.brand small { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-left: 4px; }
