/* NEKO89 CO theme */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--nk8-bg);
  background-image: radial-gradient(60% 50% at 50% 12%, var(--nk8-bg-hi) 0%, var(--nk8-bg) 100%);
  background-attachment: fixed;
  color: var(--nk8-text);
  font: 400 14px/1.5 var(--nk8-font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:not([href]) { cursor: default; }
button { font: inherit; color: inherit; }

.nk8-app { max-width: var(--nk8-w); margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nk8-dock) + 16px); }

/* header */
.nk8-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 77px; padding: 0 var(--nk8-gut);
  background: linear-gradient(180deg, rgba(41, 36, 99, .55), rgba(25, 21, 66, .35));
  position: relative;
}
.nk8-top::after { content: ""; position: absolute; left: var(--nk8-gut); right: var(--nk8-gut); bottom: 0; height: 1px; background: rgba(255, 255, 255, .12); }
.nk8-logo img { width: 58px; height: auto; }
.nk8-auth { display: flex; gap: 8px; }
.nk8-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 15px; border-radius: 4px;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
}
.nk8-btn--ghost { border: 1px solid var(--nk8-line); }
.nk8-btn--main { background: radial-gradient(50% 100% at 50% 0%, var(--nk8-violet-a) 0%, var(--nk8-violet-b) 100%); }
.nk8-btn:hover { filter: brightness(1.12); color: var(--nk8-text); }

.nk8-main { padding: 28px var(--nk8-gut) 0; }

/* hang su kien */
.nk8-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--nk8-gut) * -1); padding: 0 var(--nk8-gut); }
.nk8-chips::-webkit-scrollbar { display: none; }
.nk8-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  min-width: 100px; height: 58px; padding: 4px 16px 4px; border-radius: 6px;
  background: linear-gradient(180deg, var(--nk8-panel), var(--nk8-panel-lo));
  font-size: 15px; white-space: nowrap;
}
.nk8-chip img { height: 30px; width: auto; object-fit: contain; }
.nk8-chip--vip img { height: 26px; }
.nk8-chip:hover { filter: brightness(1.15); }

/* banner */
.nk8-slider { position: relative; margin-top: 8px; border-radius: 12px; overflow: hidden; aspect-ratio: 728 / 224; }
.nk8-slides { display: flex; height: 100%; transition: transform .5s ease; }
.nk8-slide { flex: 0 0 100%; height: 100%; }
.nk8-slide img { width: 100%; height: 100%; object-fit: cover; }
.nk8-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.nk8-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s; }
.nk8-dot.is-on { width: 18px; background: #fff; }

/* tab sanh */
.nk8-cats { display: flex; gap: 6px; margin-top: 8px; }
.nk8-cat-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nk8-cat-row::-webkit-scrollbar { display: none; }
.nk8-cat {
  flex: 0 0 70px; height: 59px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 2px 4px; border: 0; border-radius: 6px; cursor: pointer;
  background: linear-gradient(180deg, var(--nk8-panel), var(--nk8-panel-lo));
  font-size: 9.5px; font-weight: 500; line-height: 1.1; text-transform: uppercase; text-align: center;
}
.nk8-cat img { width: 24px; height: 24px; object-fit: contain; }
.nk8-cat.is-on { background: var(--nk8-on); }
.nk8-cat--search { height: 72px; flex-basis: 70px; }
.nk8-cat--search svg { color: #fff; }

/* luoi game */
.nk8-pane { margin-top: 12px; }
.nk8-pane[hidden] { display: none; }
.nk8-pane--prov { display: grid; grid-template-columns: 92px 1fr; gap: 8px; margin-left: calc(var(--nk8-gut) * -1); }
.nk8-pane--prov[hidden] { display: none; }
.nk8-provs { display: flex; flex-direction: column; gap: 4px; }
.nk8-prov {
  display: flex; align-items: center; justify-content: center; height: 48px; padding: 6px 10px;
  background: linear-gradient(180deg, var(--nk8-panel), var(--nk8-panel-lo)); border-radius: 0 6px 6px 0;
}
.nk8-prov.is-on { background: var(--nk8-on); }
.nk8-prov img { max-height: 34px; width: auto; object-fit: contain; }
.nk8-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; align-content: start; }
.nk8-pane--prov .nk8-games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.nk8-game { display: flex; flex-direction: column; gap: 6px; }
.nk8-game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.nk8-games--top .nk8-game img { aspect-ratio: 178 / 104; border-radius: 6px; }
.nk8-game:hover img { filter: brightness(1.1); }
.nk8-rtp { position: relative; display: block; height: 13px; border-radius: 7px; background: #2b2563; overflow: hidden; }
.nk8-rtp i { position: absolute; inset: 0 auto 0 0; border-radius: 7px; }
.nk8-rtp--hi i { background: linear-gradient(90deg, var(--nk8-ok-a), var(--nk8-ok-b)); }
.nk8-rtp--lo i { background: linear-gradient(90deg, var(--nk8-lo-a), var(--nk8-lo-b)); }
.nk8-rtp b { position: relative; display: block; font-size: 9.5px; font-weight: 500; line-height: 13px; text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }

/* content SEO tu editor */
.nk8-seo { position: relative; margin-top: 24px; padding: 18px 18px 8px; border-radius: 10px; background: linear-gradient(180deg, rgba(49, 45, 111, .55), rgba(35, 31, 85, .45)); }
.nk8-more-x { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nk8-seo-body { max-height: 420px; overflow: hidden; position: relative; color: #dcd8f7; }
.nk8-seo-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(31, 27, 78, 0), #221e53); pointer-events: none; }
.nk8-more-x:checked + .nk8-seo-body { max-height: none; }
.nk8-more-x:checked + .nk8-seo-body::after { display: none; }
.nk8-more { display: flex; justify-content: center; margin: 10px auto 6px; width: max-content; padding: 7px 22px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; background: radial-gradient(50% 100% at 50% 0%, var(--nk8-violet-a) 0%, var(--nk8-violet-b) 100%); }
.nk8-more-off { display: none; }
.nk8-more-x:checked ~ .nk8-more .nk8-more-on { display: none; }
.nk8-more-x:checked ~ .nk8-more .nk8-more-off { display: inline; }
.nk8-more-x:focus-visible ~ .nk8-more { outline: 2px solid #fff; outline-offset: 2px; }

.nk8-seo-body, .nk8-prose { font-size: 14px; line-height: 1.7; }
.nk8-seo-body > :first-child, .nk8-prose > :first-child { margin-top: 0; }
.nk8-seo h1, .nk8-seo h2, .nk8-seo h3, .nk8-seo h4, .nk8-prose h2, .nk8-prose h3, .nk8-prose h4 { color: #fff; line-height: 1.3; font-weight: 700; margin: 1.3em 0 .5em; }
.nk8-seo h1, .nk8-post-h1 { font-size: 22px; }
.nk8-seo h2, .nk8-prose h2 { font-size: 18px; }
.nk8-seo h3, .nk8-prose h3 { font-size: 16px; }
.nk8-seo p, .nk8-prose p { margin: 0 0 .9em; }
.nk8-seo a, .nk8-prose a { color: #a99bff; text-decoration: underline; text-underline-offset: 2px; }
.nk8-seo a:hover, .nk8-prose a:hover { color: #fff; }
.nk8-seo ul, .nk8-seo ol, .nk8-prose ul, .nk8-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.nk8-seo li, .nk8-prose li { margin-bottom: .35em; }
.nk8-seo img, .nk8-prose img { border-radius: 8px; margin: 1em auto; }
.nk8-seo table, .nk8-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 13px; display: block; overflow-x: auto; }
.nk8-seo th, .nk8-seo td, .nk8-prose th, .nk8-prose td { border: 1px solid rgba(255, 255, 255, .14); padding: 8px 10px; text-align: left; vertical-align: top; }
.nk8-seo th, .nk8-prose th { background: rgba(65, 30, 185, .45); color: #fff; }
.nk8-seo blockquote, .nk8-prose blockquote { margin: 0 0 1em; padding: 10px 14px; border-left: 3px solid var(--nk8-violet-a); background: rgba(255, 255, 255, .04); }
.nk8-seo details, .nk8-prose details { margin: 0 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); padding: 10px 14px; }
.nk8-seo summary, .nk8-prose summary { cursor: pointer; font-weight: 600; color: #fff; }

/* bai viet + danh sach */
.nk8-post-img img { border-radius: 10px; width: 100%; }
.nk8-post-h1 { margin: 16px 0 4px; line-height: 1.3; }
.nk8-post-meta { margin: 0 0 16px; color: var(--nk8-mute); font-size: 12px; }
.nk8-prose { color: #dcd8f7; }
.nk8-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nk8-card { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--nk8-panel), var(--nk8-panel-lo)); }
.nk8-card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nk8-card-t { padding: 0 12px; font-weight: 600; line-height: 1.35; }
.nk8-card-x { padding: 0 12px; color: var(--nk8-mute); font-size: 12.5px; }
.nk8-empty { color: var(--nk8-mute); }
.nk8-pager { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.nk8-pager .page-numbers { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--nk8-panel-lo); }
.nk8-pager .current { background: var(--nk8-on); }
.nk8-404 { text-align: center; padding: 60px 0; }
.nk8-404-code { font-size: 64px; font-weight: 700; margin: 0; }

/* chan trang */
.nk8-foot { padding: 28px var(--nk8-gut) 12px; text-align: center; color: var(--nk8-mute); font-size: 12px; }
.nk8-foot-nav ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.nk8-foot-nav a:hover, .nk8-copy a:hover { color: #fff; }
.nk8-copy { margin: 0; }

/* thanh dieu huong day */
.nk8-dock {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 50;
  width: 100%; max-width: var(--nk8-w); height: var(--nk8-dock);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 13px 13px 0 0;
  background: radial-gradient(33.48% 103.75% at 52.2% 0, #531b88 0%, #151240 100%);
}
.nk8-dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.2px; text-align: center; line-height: 1.2; }
.nk8-dock svg { width: 20px; height: 20px; fill: currentColor; }
.nk8-dock-i { color: var(--nk8-mute); }
.nk8-dock-i.is-on, .nk8-dock-i:hover { color: #fff; }
.nk8-dock-i.is-on span { border-bottom: 2px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.nk8-dock-reg {
  justify-self: center; width: 68px; height: 68px; margin-top: -30px; border-radius: 50%; justify-content: center;
  background: radial-gradient(60% 60% at 50% 30%, #8a63ff 0%, #5a26d6 100%);
  box-shadow: 0 0 0 4px rgba(122, 82, 255, .25), 0 6px 16px rgba(0, 0, 0, .35);
  font-weight: 700; color: #fff;
}
.nk8-dock-reg svg { fill: none; stroke: #fff; stroke-width: 2.2; }
.nk8-dock-i svg path[d^="M4 11"] { fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 600px) {
  .nk8-top { height: 70px; }
  .nk8-logo img { width: 54px; }
  .nk8-btn { font-size: 14px; padding: 0 14px; }
  .nk8-main { padding-top: 26px; }
  .nk8-chip { font-size: 14px; min-width: 120px; }
  .nk8-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nk8-pane--prov { grid-template-columns: 76px 1fr; }
  .nk8-pane--prov .nk8-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nk8-prov { height: 44px; padding: 5px 8px; }
  .nk8-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  :root { --nk8-gut: 14px; }
  .nk8-btn { padding: 0 10px; font-size: 13px; }
  .nk8-pane--prov .nk8-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .nk8-slides, .nk8-dot { transition: none; }
}
