@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-vietnamese-400-normal.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: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-vietnamese-700-normal.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: "Be Vietnam Pro";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b1740;
  --ink-2: #2d2766;
  --paper: #faf6ec;
  --card: #fffdf7;
  --line: #e6dcc5;
  --gold: #c58a1b;
  --gold-soft: #f6e8c1;
  --jade: #2a7566;
  --text: #2b2540;
  --muted: #655f7a;
  --tim: #7e4fc4;
  --vang: #b8820f;
  --cam: #d4660f;
  --do: #c3302b;
  --huyen_hoang: #1b1740;
  --kim: #a9861a;
  --moc: #3b8f45;
  --thuy: #2b78b8;
  --hoa: #cf3f27;
  --tho: #93653a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 23, 64, 0.08), 0 6px 18px rgba(27, 23, 64, 0.06);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    400 16px/1.65 "Be Vietnam Pro",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--ink-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--gold);
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}
h1 {
  font-size: 1.9rem;
  margin-top: 0;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.12rem;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus {
  left: 8px;
  top: 8px;
}
.small {
  font-size: 0.86rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

/* Header */
.top {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 0;
}
.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover {
  color: var(--gold-soft);
}
.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-top: 2px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  color: #d9d4f2;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav a:hover {
  background: var(--ink-2);
  color: #fff;
}
.nav a.on {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 700;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
}
.btn:hover {
  background: #a87310;
  color: #fff;
}
.btn.play {
  padding: 7px 16px;
  font-size: 0.95rem;
  flex: none;
}
.btn.ghost {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink) center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 23, 64, 0.35), rgba(27, 23, 64, 0.82));
  z-index: -1;
}
.hero .wrap {
  padding-top: 64px;
  padding-bottom: 56px;
}
.hero h1 {
  color: #fff;
  font-size: 2.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 36em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero h1,
.hero p {
  max-width: 40rem;
}

.band {
  padding: 40px 0;
}
.band.alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.band h2:first-child {
  margin-top: 0;
}
.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-head {
  padding: 28px 0 8px;
}
.page-head p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 0;
}
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 18px 0 0;
}
.crumbs a {
  color: var(--muted);
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.grid.three {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card > a.cover {
  display: block;
  background: var(--gold-soft);
}
.card img.cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card .pad {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.card h3 a:hover {
  color: var(--gold);
}
.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.unit {
  text-align: center;
  padding: 10px 8px 12px;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.unit:hover {
  color: var(--text);
  border-color: var(--gold);
}
.unit .art {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 85%, var(--gold-soft), transparent 70%);
}
.unit img {
  max-height: 112px;
  width: auto;
  max-width: 100%;
}
.unit strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 6px;
}
.unit .meta {
  justify-content: center;
  margin-top: 4px;
}
.units {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

/* Badges */
.badge {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}
.q-tim {
  background: var(--tim);
}
.q-vang {
  background: var(--vang);
}
.q-cam {
  background: var(--cam);
}
.q-do {
  background: var(--do);
}
.q-huyen_hoang {
  background: var(--huyen_hoang);
}
.e-kim {
  background: var(--kim);
}
.e-moc {
  background: var(--moc);
}
.e-thuy {
  background: var(--thuy);
}
.e-hoa {
  background: var(--hoa);
}
.e-tho {
  background: var(--tho);
}
.badge.plain {
  background: #ece5d2;
  color: var(--text);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 18px 0;
}
.filters fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.filters legend {
  float: left;
  margin-right: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0;
}
.chip {
  font: inherit;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.chip:hover {
  border-color: var(--gold);
}
.chip[aria-pressed="true"],
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.count {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Detail pages */
.detail > * {
  min-width: 0;
}
.detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}
.portrait {
  background: radial-gradient(ellipse at 50% 90%, var(--gold-soft), transparent 72%), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.portrait img {
  max-height: 320px;
  width: auto;
}
dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0 0 1em;
}
dl.facts dt {
  font-weight: 700;
  color: var(--ink);
}
dl.facts dd {
  margin: 0;
  min-width: 0;
}
.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 12px;
}
.skill h3 {
  margin: 0 0 4px;
}
.skill .tag {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.skill p {
  margin: 0;
}
.skill.ult {
  border-left-color: var(--hoa);
}
.skill.awk {
  border-left-color: var(--tim);
}
.skill.pas {
  border-left-color: var(--jade);
}

.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
table.tbl {
  border-collapse: collapse;
  width: 100%;
  background: var(--card);
  font-size: 0.93rem;
}
table.tbl th,
table.tbl td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
table.tbl th {
  background: var(--gold-soft);
  color: var(--ink);
  white-space: nowrap;
}
table.tbl td.num,
table.tbl th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.tbl tbody tr:nth-child(even) {
  background: #fbf7ec;
}
.note {
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.93rem;
  margin: 0 0 1em;
}

/* Posts */
.prose {
  max-width: 44rem;
}
.prose img {
  border-radius: 10px;
  display: block;
  margin: 1em 0;
}
.prose h2,
.prose h3 {
  margin-top: 1.6em;
}
.prose blockquote {
  margin: 1em 0;
  padding: 4px 16px;
  border-left: 4px solid var(--gold);
  background: var(--card);
  color: var(--muted);
}
.prose blockquote p {
  margin: 0.5em 0;
}
.prose pre {
  background: #25214f;
  color: #f1eefc;
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
}
.prose code {
  background: #ece5d2;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 14px 0 20px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 8px;
}

.news {
  background: var(--gold-soft);
  border: 1px solid #e3cf95;
  border-radius: var(--radius);
  padding: 14px 18px;
}
.news h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.news ul {
  margin: 0;
  padding-left: 1.2em;
}
.news[hidden] {
  display: none;
}

.points {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.points .pt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.points .pt h3 {
  margin-top: 0;
}
.points .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shots img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}

.foot {
  background: var(--ink);
  color: #d9d4f2;
  margin-top: 56px;
  padding: 26px 0;
}
.foot a {
  color: #fff;
}
.foot p {
  margin: 0 0 8px;
}
.foot .small {
  color: #a9a3cb;
}

@media (min-width: 760px) {
  .hero {
    background-image: var(--hero-wide) !important;
    background-position: center 35%;
  }
  h1 {
    font-size: 2.3rem;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero .wrap {
    padding-top: 96px;
    padding-bottom: 88px;
  }
  .top-row {
    padding-top: 10px;
  }
  .nav {
    padding-left: 16px;
  }
  .detail {
    grid-template-columns: 300px 1fr;
  }
  .detail .portrait {
    position: sticky;
    top: 92px;
    align-self: start;
  }
  .scroll {
    margin: 0;
    padding: 0;
  }
}
@media (max-width: 420px) {
  .shots {
    gap: 8px;
  }
  dl.facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dl.facts dd {
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .chip,
  .btn {
    transition:
      border-color 0.15s,
      background 0.15s,
      box-shadow 0.15s;
  }
  .card:hover {
    box-shadow:
      0 2px 4px rgba(27, 23, 64, 0.1),
      0 10px 24px rgba(27, 23, 64, 0.1);
  }
}

/* The game's pictures beside names */
.ico {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.3em;
  margin-right: 0.25em;
  object-fit: contain;
}
.it {
  white-space: nowrap;
}
.items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.skill h3 .ico {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.4em;
}
.badge .ico {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.25em;
  margin-right: 0.2em;
}
table.tbl td .ico {
  width: 1.5em;
  height: 1.5em;
}
