/* KGame – cổng thông tin game nổ hũ | kkgame.pics */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Saira:wght@600;700;800&display=swap");

:root {
  --bg: #071018;
  --bg-2: #0c1824;
  --surface: #122233;
  --surface-2: #173047;
  --line: rgba(140, 190, 230, 0.14);
  --text: #e9f2fa;
  --muted: #93a8bd;
  --accent: #2bb4ff;
  --accent-deep: #0e7ec4;
  --gold: #e4b84a;
  --danger: #ff6b6b;
  --ok: #3dd68c;
  --radius: 14px;
  --header-h: 72px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Saira", "Be Vietnam Pro", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 180, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(228, 184, 74, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, #08131c 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7ad0ff;
}

ul,
ol {
  padding-left: 1.2rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #031018;
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
  background: rgba(43, 180, 255, 0.1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04101a;
  box-shadow: 0 8px 24px rgba(43, 180, 255, 0.28);
}

.btn-primary:hover {
  color: #04101a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(43, 180, 255, 0.45);
  color: var(--text);
}

.btn-gold {
  background: linear-gradient(135deg, #f0d078, var(--gold));
  color: #2a1d05;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="false"] .icon-close,
.menu-toggle:not([aria-expanded="true"]) .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-toggle[aria-expanded="true"] .label-menu {
  display: none;
}

.menu-toggle[aria-expanded="false"] .label-close,
.menu-toggle:not([aria-expanded="true"]) .label-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .label-close {
  display: inline;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(8, 16, 24, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  z-index: 999;
  box-shadow: var(--shadow);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  color: var(--text);
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.nav-mobile .mobile-auth {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.nav-mobile .mobile-auth .btn {
  width: 100%;
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .nav-mobile {
    display: none !important;
  }
}

main {
  padding-top: var(--header-h);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.92) 0%, rgba(5, 12, 20, 0.72) 42%, rgba(5, 12, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 12, 20, 0.2) 0%, rgba(5, 12, 20, 0.92) 100%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 640px;
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 36rem;
  color: #c5d6e8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Sections ========== */
.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

/* Brand intro */
.intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .intro-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.intro-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
  padding: 1rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose h2,
.prose h3 {
  margin-top: 1.6rem;
}

.prose li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 720px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 180, 255, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(43, 180, 255, 0.12), transparent 65%), #0a1520;
  padding: 0.75rem;
}

.cat-item span {
  display: block;
  padding: 0.75rem 0.5rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Cards / articles */
.card-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 34, 51, 0.9), rgba(12, 24, 36, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 180, 255, 0.35);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1520;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.04);
}

.article-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .meta {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.article-card h3 a {
  color: var(--text);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  font-size: 0.92rem;
  flex: 1;
}

.article-card .more {
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.88rem;
}

/* Brands strip */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .brand-strip {
    grid-template-columns: repeat(8, 1fr);
  }
}

.brand-strip img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem;
  filter: grayscale(0.2);
  opacity: 0.9;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 780px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 34, 51, 0.55);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  margin: 0;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(43, 180, 255, 0.08), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  opacity: 0.5;
}

/* Article layout */
.article-layout {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.article-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  background: #0a1520;
}

.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.sidebar-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 34, 51, 0.6);
  padding: 1.15rem;
  margin-bottom: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  border-bottom: 1px solid var(--line);
}

.related-list a {
  display: block;
  padding: 0.7rem 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.related-list a:hover {
  color: var(--accent);
}

/* Category detail blocks */
.cat-detail {
  display: grid;
  gap: 1.25rem;
}

.cat-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 34, 51, 0.45);
}

@media (min-width: 720px) {
  .cat-row {
    grid-template-columns: 140px 1fr;
  }
}

.cat-row img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto;
  background: #0a1520;
  border-radius: 12px;
  padding: 0.4rem;
}

.cat-row h3 {
  margin-bottom: 0.4rem;
}

/* Legal / about */
.content-panel {
  padding: 2.5rem 0 4rem;
  max-width: 800px;
}

.content-panel h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Promo band */
.promo-band {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 180, 255, 0.28);
  background:
    linear-gradient(120deg, rgba(43, 180, 255, 0.12), rgba(228, 184, 74, 0.08));
}

@media (min-width: 760px) {
  .promo-band {
    grid-template-columns: 1fr auto;
  }
}

.promo-band img {
  max-height: 72px;
  width: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050c13;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.92rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 0.28rem 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}

.list-page .article-card {
  flex-direction: row;
  align-items: stretch;
}

.list-page .article-card .thumb {
  width: 38%;
  min-width: 140px;
  aspect-ratio: auto;
}

.list-page .article-card .thumb img {
  height: 100%;
}

@media (max-width: 640px) {
  .list-page .article-card {
    flex-direction: column;
  }

  .list-page .article-card .thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(43, 180, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.note-box {
  border-left: 3px solid var(--accent);
  background: rgba(43, 180, 255, 0.08);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}

.note-box p {
  margin: 0;
  color: #c9d8e8;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
