:root {
  --bg: #070609;
  --surface: #151115;
  --surface-strong: #21171a;
  --text: #f7efe4;
  --muted: #cbbba8;
  --soft: #928477;
  --gold: #efc36a;
  --gold-deep: #a96f2d;
  --red: #8f2430;
  --steel: #667489;
  --line: rgba(247, 239, 228, 0.16);
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 9, 0.9);
  backdrop-filter: blur(12px);
}

.brand img {
  display: block;
  width: 136px;
  max-width: 38vw;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold);
}

.hero-section {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.94) 0%, rgba(7, 6, 9, 0.72) 48%, rgba(7, 6, 9, 0.32) 100%),
    url("../img/web-hero-001.jpg?v=s19") center / cover no-repeat;
}

.hero-content {
  width: min(700px, 100%);
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 18px 40px var(--shadow);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
}

.button-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.button-primary {
  color: #1b1008;
  border-color: rgba(255, 230, 168, 0.68);
  background: linear-gradient(180deg, #f2cc76, #b97b31);
  box-shadow: 0 16px 34px rgba(185, 123, 49, 0.2);
}

.button-secondary {
  color: var(--text);
  background: rgba(21, 17, 21, 0.88);
}

.button-discord {
  color: #eef3ff;
  border-color: rgba(120, 146, 255, 0.55);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.92), rgba(48, 57, 150, 0.9));
  box-shadow: 0 16px 34px rgba(88, 101, 242, 0.18);
}

.button:hover,
.button:focus-visible,
.community-link:hover,
.community-link:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(239, 195, 106, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(33, 23, 26, 0.94), rgba(11, 8, 10, 0.92));
  box-shadow: 0 22px 48px var(--shadow);
}

.hero-panel h2 {
  font-size: 24px;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-panel li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.content-band {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(7, 6, 9, 1), rgba(14, 10, 12, 1));
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 30px;
}

.section-heading p {
  max-width: 740px;
  color: var(--muted);
}

/* Section Kết nối: căn giữa nội dung */
.community-band .section-heading {
  text-align: center;
}

.community-band .section-heading p {
  margin-left: auto;
  margin-right: auto;
}

.community-band .community-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 340px));
  justify-content: center;
}

.news-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.news-card,
.guide-step,
.community-link,
.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(33, 23, 26, 0.98), rgba(14, 10, 12, 0.98));
  box-shadow: 0 16px 36px var(--shadow);
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card div {
  padding: 18px;
}

.news-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.news-card p,
.guide-step p,
.community-link span,
.download-copy p,
.site-footer p {
  color: var(--muted);
}

.feature-news {
  border-color: rgba(239, 195, 106, 0.38);
}

.guide-band {
  background:
    linear-gradient(180deg, rgba(7, 6, 9, 0.95), rgba(7, 6, 9, 0.98)),
    url("../img/section-bg.jpg") center / cover no-repeat;
}

.guide-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.guide-step {
  min-height: 246px;
  padding: 20px;
}

.guide-step span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #160e08;
  background: var(--gold);
  font-weight: 900;
}

.guide-step strong {
  color: var(--gold);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  align-items: center;
  padding: clamp(44px, 6vw, 78px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(13, 9, 12, 0.98), rgba(16, 12, 15, 0.82)),
    url("../template/footer_background.jpg") center / cover no-repeat;
}

.download-copy {
  max-width: 720px;
}

.download-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.download-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 0 6px rgba(102, 116, 137, 0.16);
}

.download-card .button {
  width: 100%;
}

.community-band {
  background:
    linear-gradient(180deg, rgba(7, 6, 9, 0.92), rgba(7, 6, 9, 1)),
    url("../img/section-bg.jpg") center / cover no-repeat;
}

.community-link {
  display: grid;
  width: 100%;
  min-height: 188px;
  gap: 8px;
  padding: 22px;
  color: var(--text);
  text-align: left;
}

.community-icon,
.community-image {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 1px solid rgba(239, 195, 106, 0.62);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(239, 195, 106, 0.13);
  font-weight: 900;
}

.community-image {
  padding: 9px;
  object-fit: contain;
}

.community-link strong {
  color: var(--gold);
  font-size: 22px;
}

.community-link em {
  width: fit-content;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(102, 116, 137, 0.48);
  border-radius: 999px;
  color: #d8e0ec;
  background: rgba(102, 116, 137, 0.18);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.site-footer {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 46px 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #050407;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 4, 7, 0.7), rgba(5, 4, 7, 0.92)),
    url("../img/section-bg.jpg") center / cover no-repeat;
  opacity: 0.42;
  filter: blur(1px);
  transform: scale(1.03);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(239, 195, 106, 0.12), transparent 42%);
}

.site-footer .footer-logo {
  width: 142px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.42));
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.footer-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(239, 195, 106, 0.44);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer-discord:hover,
.footer-discord:focus-visible {
  color: #110b05;
  background: var(--gold);
  outline: none;
}

.site-footer .footer-badge {
  display: block;
  width: auto;
  height: 52px;
}

.site-footer p {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(239, 195, 106, 0.45);
  border-radius: 8px;
  color: var(--text);
  background: rgba(21, 17, 21, 0.96);
  box-shadow: 0 18px 40px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-modal-open {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(239, 195, 106, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.download-modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(239, 195, 106, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(39, 25, 29, 0.96), rgba(8, 7, 10, 0.98)),
    url("../img/section-bg.jpg") center / cover no-repeat;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.download-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(7, 6, 9, 0.62);
  pointer-events: none;
}

.download-modal-panel > * {
  position: relative;
}

.download-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 239, 228, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.download-modal-close:hover,
.download-modal-close:focus-visible {
  color: var(--gold);
  border-color: rgba(239, 195, 106, 0.58);
}

.download-modal-panel h2 {
  max-width: calc(100% - 44px);
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
}

.download-modal-copy,
.download-modal-note {
  margin: 0;
  color: var(--muted);
}

.download-provider-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 16px;
}

.download-provider {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(247, 239, 228, 0.12);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, rgba(32, 25, 28, 0.9), rgba(12, 10, 13, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.download-provider strong {
  color: var(--gold);
  font-size: 18px;
}

.download-provider span {
  color: var(--muted);
}

.download-provider em {
  min-width: 104px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.download-provider:not(.is-disabled):hover,
.download-provider:not(.is-disabled):focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 195, 106, 0.58);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.download-provider.is-disabled {
  cursor: pointer;
}

.download-provider.is-disabled em {
  color: var(--soft);
}

.guide-modal-panel {
  width: min(680px, 100%);
}

.guide-modal-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-modal-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 14px 14px 56px;
  border: 1px solid rgba(247, 239, 228, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(32, 25, 28, 0.9), rgba(12, 10, 13, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  counter-increment: guide-step;
}

.guide-modal-steps li::before {
  content: counter(guide-step);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1b1008;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffe39a 0%, #dca34b 100%);
  box-shadow: 0 8px 18px rgba(185, 123, 49, 0.24);
}

.guide-modal-steps strong {
  color: var(--text);
  font-size: 17px;
}

.guide-modal-steps span {
  color: var(--muted);
}

.guide-modal-steps b {
  color: var(--gold);
  font-weight: 900;
}

.guide-modal-note {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(239, 195, 106, 0.22);
  border-radius: 10px;
  background: rgba(239, 195, 106, 0.08);
}

.guide-modal-note strong {
  color: var(--gold);
}

.guide-modal-note span {
  color: var(--muted);
}

@media (max-width: 560px) {
  .download-modal {
    align-items: end;
    padding: 12px;
  }

  .download-modal-panel {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .download-provider {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .download-provider em {
    width: fit-content;
  }

  .guide-modal-steps li {
    padding: 14px 14px 14px 50px;
  }
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 720px;
  }

  .news-grid,
  .guide-layout,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .guide-step {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .main-nav a {
    min-height: 34px;
    justify-content: center;
    padding: 6px 4px;
    font-size: 13px;
  }

  .hero-section {
    min-height: 660px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

/* ===== News filter + badges ===== */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
}

.filter-chip {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(21, 17, 21, 0.7);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 140ms ease, color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--gold);
  border-color: rgba(239, 195, 106, 0.55);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  color: #1b1008;
  border-color: rgba(255, 230, 168, 0.7);
  background: linear-gradient(180deg, #f2cc76, #b97b31);
  box-shadow: 0 12px 26px rgba(185, 123, 49, 0.28);
}

.news-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-tin-moi {
  color: #1b1008;
  background: linear-gradient(180deg, #f2cc76, #c9892f);
}

.badge-thong-bao {
  color: #ffdfe2;
  background: rgba(143, 36, 48, 0.92);
}

.badge-cap-nhat {
  color: #dde7f6;
  background: rgba(102, 116, 137, 0.9);
}

.badge-lo-trinh {
  color: #ece4ff;
  background: rgba(124, 106, 196, 0.92);
}

.news-card {
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 195, 106, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.62);
}

.news-card.is-anim {
  animation: newsCardIn 260ms ease both;
}

@keyframes newsCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.news-card.is-hidden {
  display: none;
}

.news-empty {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 560px) {
  .news-filter {
    gap: 8px;
  }

  .filter-chip {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* ===== Hero aside: countdown + lead form ===== */
.hero-aside {
  display: grid;
  gap: 16px;
  align-content: center;
}

.launch-popup {
  position: fixed;
  bottom: 18px;
  right: clamp(10px, 1.5vw, 22px);
  z-index: 60;
  width: min(290px, calc(100vw - 24px));
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.launch-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.launch-popup.is-closed {
  display: none;
}

.launch-popup-close {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 195, 106, 0.4);
  border-radius: 50%;
  background: rgba(11, 8, 10, 0.92);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.launch-popup-close:hover {
  background: rgba(33, 23, 26, 0.96);
  transform: scale(1.06);
}

.launch-popup-body {
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding-right: 2px;
}

/* ===== Sự kiện & Boss ===== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.event-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(33, 23, 26, 0.96), rgba(14, 10, 12, 0.96));
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 195, 106, 0.5);
  box-shadow: 0 16px 36px var(--shadow);
}

.event-card h3 {
  margin: 0;
  font-size: 18px;
}

.event-tagline {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.event-type {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ev-event .event-type { background: rgba(74, 144, 217, 0.18); color: #8ec5ff; }
.ev-pvp .event-type { background: rgba(192, 57, 43, 0.22); color: #f0997b; }
.ev-boss .event-type { background: rgba(239, 195, 106, 0.18); color: var(--gold); }

.event-time {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.event-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.event-card:hover .event-cta { color: var(--gold); }

.event-modal-meta {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.event-modal-meta li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.event-modal-meta strong { font-weight: 800; }


.countdown-card {
  padding: 18px 20px;
  border: 1px solid rgba(239, 195, 106, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(33, 23, 26, 0.94), rgba(11, 8, 10, 0.92));
  box-shadow: 0 22px 48px var(--shadow);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.cd-box {
  display: grid;
  gap: 4px;
  padding: 12px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.cd-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.countdown-target {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.lead-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-notice {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.launch-notice p {
  margin: 0;
  color: var(--muted);
}

.launch-notice .button {
  width: 100%;
}

.lead-helper {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lead-helper b,
.community-link b {
  color: var(--gold);
}

/* ===== Content pages (GHRS / Auto Reset / Lệnh) ===== */
.main-nav a[aria-current="page"] {
  color: var(--gold);
}

.page-hero {
  padding: clamp(40px, 7vw, 72px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.95) 0%, rgba(7, 6, 9, 0.72) 60%, rgba(7, 6, 9, 0.42) 100%),
    url("../img/section-bg.jpg") center / cover no-repeat;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 56px);
}

.page-hero .hero-copy {
  margin-bottom: 0;
}

.prose {
  width: min(1180px, 100%);
  margin: 0 auto 24px;
  color: var(--muted);
}

.prose p {
  margin-bottom: 14px;
}

.placeholder-note {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  padding: 12px 16px;
  border: 1px dashed rgba(239, 195, 106, 0.4);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.table-hint {
  display: none;
  width: min(1180px, 100%);
  margin: 0 auto 8px;
  color: var(--soft);
  font-size: 13px;
}

.table-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.data-table.is-wide {
  min-width: 880px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}

.data-table thead th {
  color: var(--gold);
  background: rgba(33, 23, 26, 0.98);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.data-table td.is-empty {
  color: var(--soft);
}

.table-note,
.table-empty {
  width: min(1180px, 100%);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.cmd-group {
  width: min(1180px, 100%);
  margin: 0 auto 24px;
}

@media (max-width: 720px) {
  .table-hint {
    display: block;
  }
}

/* ===== Khu Hướng dẫn (sidebar + nội dung) ===== */
.guide-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 40px);
}

.guide-toggle {
  display: none;
}

.guide-sidebar {
  align-self: start;
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(21, 17, 21, 0.7);
}

.guide-group-title {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-group a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
}

.guide-group a:hover,
.guide-group a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.guide-group a[aria-current="page"] {
  color: var(--gold);
  background: rgba(239, 195, 106, 0.1);
  border-left-color: var(--gold);
  font-weight: 700;
}

.guide-content {
  min-width: 0;
}

.guide-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.guide-content h2 {
  margin-top: 28px;
}

.guide-content ul {
  padding-left: 20px;
  color: var(--muted);
}

.guide-content li {
  margin-bottom: 8px;
}

.guide-updating {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(21, 17, 21, 0.92);
    font-weight: 800;
  }

  .guide-sidebar {
    position: static;
    display: none;
  }

  .guide-sidebar.is-open {
    display: grid;
  }
}

/* Menu Hướng dẫn hiển thị ở trang chủ (lưới nhóm) */
.guide-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.guide-menu-grid .guide-group {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(21, 17, 21, 0.7);
}

/* Quick-menu bên trái + bố cục 2 cột trang chủ (từ section Thông báo) */
.home-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  width: 100%;
  margin: 0;
  padding: 0 max(clamp(16px, 4vw, 32px), calc((100vw - 1240px) / 2 + 16px));
  overflow: clip;
}

.home-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 6, 9, 0.9), rgba(7, 6, 9, 0.72) 18%, rgba(7, 6, 9, 0.78) 72%, rgba(7, 6, 9, 0.96)),
    url("../img/section-bg.jpg") center top / cover repeat-y;
  opacity: 0.5;
  filter: blur(1px);
  transform: scale(1.015);
}

.home-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 12%, rgba(239, 195, 106, 0.12), transparent 26%),
    radial-gradient(circle at 12% 70%, rgba(143, 36, 48, 0.16), transparent 30%);
  pointer-events: none;
}

.quick-menu {
  position: sticky;
  top: 92px;
  align-self: start;
  margin-top: clamp(52px, 7vw, 92px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(21, 17, 21, 0.7);
}

.quick-menu-title {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-menu-list {
  display: grid;
  gap: 16px;
}

.home-main {
  min-width: 0;
}

.home-main > .content-band {
  background: rgba(7, 6, 9, 0.28);
}

.home-main > .guide-band,
.home-main > .community-band {
  background: rgba(7, 6, 9, 0.5);
}

.home-main > .download-section {
  background: rgba(13, 9, 12, 0.62);
}

.home-main > .content-band,
.home-main > .download-section {
  padding-left: clamp(16px, 3vw, 30px);
  padding-right: clamp(16px, 3vw, 30px);
}

@media (max-width: 860px) {
  .home-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .quick-menu {
    position: static;
    margin: 0 clamp(16px, 5vw, 24px);
  }
}

/* Logo Lục Địa VN làm tiêu đề hero (nền tối tự hòa qua blend) */
.hero-title-logo {
  margin-bottom: 18px;
  line-height: 1;
}

.hero-logo {
  display: block;
  width: min(480px, 88%);
  height: auto;
  mix-blend-mode: lighten;
}

/* UI polish pass: cards, panels, buttons */
.button,
.filter-chip,
.community-link,
.news-card,
.guide-step,
.download-card,
.hero-panel,
.countdown-card,
.quick-menu {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border-color: rgba(255, 230, 168, 0.22);
  letter-spacing: 0;
}

.button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.button-primary {
  background: linear-gradient(180deg, #ffe39a 0%, #dda64c 52%, #9f6323 100%);
  box-shadow:
    0 12px 28px rgba(185, 123, 49, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.button-secondary {
  border-color: rgba(239, 195, 106, 0.26);
  background: linear-gradient(180deg, rgba(38, 29, 29, 0.92), rgba(14, 11, 14, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 195, 106, 0.72);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(239, 195, 106, 0.12);
}

.button-icon {
  background: rgba(5, 4, 7, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-panel,
.countdown-card,
.quick-menu,
.download-card {
  border-radius: 12px;
  border-color: rgba(239, 195, 106, 0.22);
  background: linear-gradient(180deg, rgba(38, 26, 27, 0.9), rgba(9, 7, 10, 0.9));
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel li,
.cd-box {
  border-radius: 8px;
  border-color: rgba(247, 239, 228, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.news-card,
.guide-step,
.community-link {
  position: relative;
  border-radius: 12px;
  border-color: rgba(247, 239, 228, 0.12);
  background: linear-gradient(180deg, rgba(39, 25, 29, 0.92), rgba(12, 9, 12, 0.92));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-card::before,
.guide-step::before,
.community-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(239, 195, 106, 0.1), transparent 36%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.news-card:hover,
.community-link:hover,
.community-link:focus-visible,
.guide-step:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 195, 106, 0.42);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(239, 195, 106, 0.08);
}

.news-card:hover::before,
.community-link:hover::before,
.community-link:focus-visible::before,
.guide-step:hover::before {
  opacity: 1;
}

.news-card img {
  border-bottom: 1px solid rgba(239, 195, 106, 0.12);
}

.news-card div {
  position: relative;
  padding: 18px 18px 20px;
}

.news-badge,
.community-link em {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.filter-chip {
  border-color: rgba(247, 239, 228, 0.12);
  background: linear-gradient(180deg, rgba(32, 25, 28, 0.86), rgba(12, 10, 13, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-chip.is-active {
  background: linear-gradient(180deg, #ffe39a 0%, #dca34b 54%, #9d6022 100%);
  box-shadow:
    0 12px 26px rgba(185, 123, 49, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.guide-step {
  overflow: hidden;
}

.guide-step span,
.community-icon,
.community-image {
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.quick-menu {
  background: linear-gradient(180deg, rgba(30, 22, 25, 0.82), rgba(10, 8, 11, 0.82));
}

.guide-group-title {
  color: var(--gold);
}

.guide-group a {
  border-radius: 8px;
  border-left-width: 2px;
}

.guide-group a:hover {
  color: var(--text);
  background: rgba(239, 195, 106, 0.08);
  border-left-color: rgba(239, 195, 106, 0.7);
}

@media (max-width: 560px) {
  .site-header {
    gap: 8px;
    padding: 8px 16px 10px;
  }

  .brand img {
    width: 112px;
    max-width: 42vw;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav a {
    min-height: 32px;
    padding: 5px 3px;
    font-size: 12px;
  }
}

