:root {
  --bg: #14161d;
  --surface: #1e222c;
  --surface-2: #272c38;
  --line: #333a49;
  --ink: #f2f4f9;
  --muted: #8d94a6;
  --live: #3ddc84;
  --live-dim: #193a2a;
  --expired: #6b7280;
  --brand: #ff4b57;
  --brand-dark: #d93a45;
  --new: #ffcb45;
  --radius-panel: 14px;
  --radius-chip: 10px;
  --radius-btn: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 29, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  transition: transform 0.18s ease;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #14161d;
  border: 1px solid rgba(255, 75, 87, 0.38);
  box-shadow: 0 4px 12px rgba(255, 75, 87, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 9px;
}

.logo:hover .logo-mark {
  transform: rotate(-5deg) scale(1.06);
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(255, 75, 87, 0.4), 0 0 12px rgba(61, 220, 132, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-main {
  font-size: 20.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f4f9;
  display: inline-flex;
  align-items: center;
}

.logo-accent {
  background: linear-gradient(135deg, #ff4b57 0%, #ff7e87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 1px;
}

.logo-tld {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--live);
  background: rgba(61, 220, 132, 0.13);
  border: 1px solid rgba(61, 220, 132, 0.32);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  letter-spacing: 0;
  line-height: 1.1;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}

.topsearch {
  margin-left: auto;
  flex: 1;
  max-width: 260px;
  position: relative;
}

.topsearch input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.topsearch input:focus {
  border-color: var(--brand);
}

.topsearch svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Main Layout */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

.main-single {
  max-width: 960px;
}

/* Hero Section */
.hero {
  padding: 46px 0 28px;
  position: relative;
}

.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--live);
  background: var(--live-dim);
  border: 1px solid #235c3f;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.hero .pill .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
  max-width: 620px;
}

.hero h1 .r {
  color: var(--brand);
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}

.herosearch {
  margin-top: 24px;
  max-width: 520px;
  position: relative;
}

.herosearch input {
  width: 100%;
  padding: 15px 16px 15px 46px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.herosearch input:focus {
  border-color: var(--brand);
}

.herosearch svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.hotrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.hotrow .lbl {
  font-size: 13px;
  color: var(--muted);
}

.hotrow a {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.15s ease;
}

.hotrow a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Category Filter Chips */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 18px;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}

.cats::-webkit-scrollbar {
  height: 0;
}

.cat {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
  user-select: none;
}

.cat:hover {
  color: var(--ink);
}

.cat.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.listhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 14px 0 14px;
}

.listhead #listtitle {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.listhead span:last-child {
  color: var(--muted);
  font-size: 13px;
}

/* Section Headings */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 38px 0 14px;
}

.sec-head h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.sec-head span {
  color: var(--muted);
  font-size: 13.5px;
}

#rbxcodes .sec-head {
  margin-top: 10px;
}

/* 3-Column Code Table */
.code-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
}

.ctr {
  display: grid;
  grid-template-columns: 210px 1fr 122px;
}

.ct-head > div {
  padding: 13px 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  text-align: center;
  background: var(--surface-2);
}

.ct-head > div:nth-child(2) {
  text-align: left;
}

.ct-head .sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.crow {
  border-top: 1px solid var(--line);
  align-items: center;
  transition: background 0.12s ease;
}

.crow:hover {
  background: var(--surface-2);
}

.crow.expired {
  opacity: 0.55;
}

.crow > div {
  padding: 14px 16px;
}

.cell-code {
  display: grid;
  place-items: center;
}

.codebox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 184px;
  padding: 11px 10px;
  border: 2px dashed var(--brand);
  border-radius: 9px;
  background: transparent;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.12s ease;
  word-break: break-all;
  text-align: center;
  line-height: 1.2;
}

.codebox:hover {
  background: rgba(255, 75, 87, 0.08);
}

.codebox.live {
  border-style: solid;
  border-color: var(--line);
  color: var(--ink);
}

.codebox.live:hover {
  border-color: var(--brand);
  background: rgba(255, 75, 87, 0.06);
}

.codebox.exp {
  border-style: solid;
  border-color: var(--line);
  color: var(--muted);
  text-decoration: line-through;
  cursor: default;
}

.codebox.done {
  border-color: var(--live);
  border-style: solid;
  color: var(--live);
  background: var(--live-dim);
}

.cell-reward {
  font-size: 14.5px;
  color: #d3d8e4;
  line-height: 1.5;
}

.cell-reward b {
  color: var(--ink);
}

.cell-status {
  display: grid;
  place-items: center;
}

.stpill {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.15;
  text-align: center;
  padding: 7px 9px;
  border-radius: 7px;
  min-width: 76px;
}

.stpill.new {
  background: var(--brand);
  color: #fff;
}

.stpill.live {
  background: var(--live);
  color: #062a17;
}

.stpill.exp {
  background: var(--surface-2);
  color: var(--muted);
}

/* About & FAQ */
.about {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}

.about .lead {
  color: #c9cfdb;
  font-size: 15px;
  line-height: 1.65;
  max-width: 100%;
  margin-bottom: 20px;
}

.faq,
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.faq details,
.faq-list details,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 0 20px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.faq details:hover,
.faq-list details:hover,
.faq-item:hover {
  border-color: #3b4254;
  background: #1a1e28;
}

.faq details[open],
.faq-list details[open],
.faq-item[open] {
  border-color: rgba(255, 75, 87, 0.5);
  background: linear-gradient(180deg, rgba(255, 75, 87, 0.05) 0%, var(--surface) 100%);
  box-shadow: inset 3px 0 0 var(--brand), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.faq summary,
.faq-list summary,
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color 0.15s ease;
}

.faq details:hover summary,
.faq-list details:hover summary,
.faq-item:hover summary {
  color: #ffffff;
}

.faq details[open] summary,
.faq-list details[open] summary,
.faq-item[open] summary {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.faq summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.faq-list summary::after,
.faq-item summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 75, 87, 0.12);
  border: 1px solid rgba(255, 75, 87, 0.28);
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.faq details:hover summary::after,
.faq-list details:hover summary::after,
.faq-item:hover summary::after {
  background: rgba(255, 75, 87, 0.2);
  border-color: var(--brand);
}

.faq details[open] summary::after,
.faq-list details[open] summary::after,
.faq-item[open] summary::after {
  content: "–";
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.faq details p,
.faq-list details p,
.faq-body {
  padding: 0 0 18px;
  color: #d3d8e4;
  font-size: 14.8px;
  line-height: 1.7;
  margin: 0;
}

.faq details p b,
.faq details p strong,
.faq-body b,
.faq-body strong {
  color: #ffffff;
}

.faq details p code,
.faq-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--live);
  background: var(--live-dim);
  padding: 2px 7px;
  border-radius: 5px;
}

/* SEO Pillar Content, TGDD Media & Step-by-Step Visual Guide */
.toc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  align-items: center;
}

.toc-bar .toc-lbl {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

.toc-bar a {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  transition: all 0.15s ease;
}

.toc-bar a:hover {
  color: var(--ink);
  border-color: var(--brand);
  background: rgba(255, 75, 87, 0.14);
}

.seo-banner-fig {
  margin: 16px 0 18px;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.seo-banner-fig img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.seo-banner-fig figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  text-align: center;
}

.code-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ctype-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  padding: 15px 16px;
}

.ctype-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctype-card p {
  font-size: 13.8px;
  color: #c9cfdb;
  line-height: 1.55;
}

.ctype-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--live);
  background: var(--live-dim);
  padding: 2px 6px;
  border-radius: 5px;
}

.seo-guide-sec {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.seo-guide-sec h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
}

.seo-guide-sec h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 26px 0 12px;
  color: var(--ink);
}

.seo-guide-sec p {
  color: #c9cfdb;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.seo-guide-sec ul,
.seo-guide-sec ol {
  margin: 0 0 16px 20px;
  color: #c9cfdb;
  font-size: 15px;
  line-height: 1.7;
}

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

.seo-guide-sec b,
.seo-guide-sec strong {
  color: var(--ink);
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin: 16px 0 22px;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  background: #0b0d12;
  aspect-ratio: 16 / 9;
}

.video-player-wrap video,
.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.video-meta-bar a {
  color: var(--brand);
  font-weight: 600;
}

.video-meta-bar a:hover {
  text-decoration: underline;
}

.tgdd-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}

.tgdd-step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tgdd-step-head {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.tgdd-step-head .step-badge {
  background: var(--brand);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tgdd-step-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #d3d8e4;
}

.tgdd-step-fig {
  margin: 0;
  padding: 12px;
  background: #101218;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.tgdd-step-fig img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.tgdd-step-fig figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.vn-spotlight {
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-chip);
  font-size: 14px;
  color: #c9cfdb;
  line-height: 1.6;
}

.vn-spotlight a {
  color: var(--live);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Game Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.gcard {
  display: flex;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
  position: relative;
}

.gcard:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.gcard .ic {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: var(--surface-2);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.gcard h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.25;
  color: var(--ink);
}

.card-anchor {
  color: inherit;
  text-decoration: none;
}

.card-anchor::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.gcard .tag {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 5px;
}

.gcard .stat {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--live);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gcard .stat .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.gcard .arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--muted);
  font-size: 18px;
  transition: all 0.15s ease;
}

.gcard:hover .arrow {
  color: var(--brand);
  transform: translateX(3px);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 44px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-chip);
}

/* Single Game Styles */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0 0;
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs .sep {
  opacity: 0.5;
}

.banner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 20px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand), transparent 70%);
  opacity: 0.14;
  transform: rotate(20deg);
  pointer-events: none;
}

.gicon {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  flex-shrink: 0;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 40px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.banner h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  align-items: center;
}

.meta b {
  color: var(--live);
  font-weight: 600;
}

.dot-updated {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  margin-right: 5px;
  box-shadow: 0 0 0 3px var(--live-dim);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0 14px;
}

.filters {
  display: flex;
  gap: 8px;
}

.fbtn {
  padding: 7px 15px;
  border-radius: var(--radius-chip);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  user-select: none;
}

.fbtn.active {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--muted);
}

.cbox {
  margin-left: auto;
  position: relative;
}

.cbox input {
  padding: 8px 12px 8px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  width: 190px;
  transition: border-color 0.15s ease;
}

.cbox input:focus {
  border-color: var(--brand);
}

.cbox svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.section-h {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 34px 0 16px;
  letter-spacing: -0.01em;
}

.game-intro {
  color: #c9cfdb;
  font-size: 15px;
  line-height: 1.72;
  max-width: 760px;
  margin-bottom: 6px;
}

.game-intro b {
  color: var(--ink);
}

.sub-h {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 12px;
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  padding: 15px 16px;
}

.step .n {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--brand);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.step p {
  font-size: 14.5px;
  color: #d3d8e4;
}

.step b {
  color: var(--ink);
}

.relgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.relcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  padding: 14px;
  transition: border-color 0.15s ease;
  position: relative;
  cursor: pointer;
}

.relcard:hover {
  border-color: var(--brand);
}

.relcard .ci {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  background: var(--surface-2);
}

.relcard h3 {
  font-size: 14.5px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--ink);
}

.relcard span {
  font-size: 12px;
  color: var(--muted);
}

.backhome {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.backhome:hover {
  color: var(--brand);
}

footer {
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 22px 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 500;
}

.footer-nav a {
  color: #c9cfdb;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-nav .dot {
  color: var(--line);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topnav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #c9cfdb;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.topnav-link:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.topnav-link.active {
  color: var(--ink);
  background: rgba(255, 75, 87, 0.14);
  border-color: rgba(255, 75, 87, 0.35);
}

/* About Us Page (/gioi-thieu/) */
.about-page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 18px 0;
}

.about-hero {
  background: linear-gradient(145deg, rgba(30, 34, 44, 0.96) 0%, rgba(20, 22, 29, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 28px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 75, 87, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--live);
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.about-hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}

.about-hero-main {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.about-hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex-shrink: 0;
  background: #14161d;
  border: 1.5px solid rgba(255, 75, 87, 0.45);
  box-shadow: 0 8px 24px rgba(255, 75, 87, 0.25);
  overflow: hidden;
}

.about-hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-hero-copy h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}

.about-hero-copy h1 .hl {
  color: var(--brand);
}

.about-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: #cfd5e2;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.about-stat-card {
  background: rgba(20, 22, 29, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-stat-card .stat-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--live);
  line-height: 1.15;
}

.about-stat-card .stat-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.about-sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 24px 26px;
  margin-bottom: 20px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.about-pillar-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.about-pillar-card .pillar-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.about-pillar-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.about-pillar-card p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #c5ccd9 !important;
  margin-bottom: 0 !important;
}

.about-workflow {
  margin-top: 16px;
}

/* Contact Us Page (/lien-he/) */
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-channel-card {
  background: rgba(20, 22, 29, 0.78);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.contact-channel-card:hover {
  border-color: rgba(255, 75, 87, 0.45);
  transform: translateY(-2px);
}

.contact-channel-card .ch-icon {
  font-size: 24px;
}

.contact-channel-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 16.5px;
  color: var(--ink);
}

.contact-channel-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #c2c9d6;
  margin-bottom: 6px;
}

.contact-channel-card .ch-mail {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--live);
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.28);
  padding: 7px 11px;
  border-radius: 8px;
  width: fit-content;
}

.contact-channel-card .ch-mail:hover {
  background: rgba(61, 220, 132, 0.2);
}

.contact-channel-card .ch-time {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.cf-field .req {
  color: var(--brand);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 75, 87, 0.15);
}

.cf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.cf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  font-family: 'Fredoka', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
}

.cf-submit-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.cf-privacy-note {
  font-size: 12.5px;
  color: var(--muted);
}

.cf-alert-success {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: 10px;
  color: #d6f8e6;
  font-size: 14px;
  line-height: 1.55;
}

.brand-meta-list {
  list-style: none;
  margin: 10px 0 0 !important;
  padding: 0;
}

.brand-meta-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.brand-meta-list li:last-child {
  border-bottom: none;
}

.brand-meta-list a {
  color: var(--live);
  font-weight: 600;
}

/* Blox Fruit Rich SEO Content (/code-blox-fruit/) */
.bf-toc {
  background: linear-gradient(135deg, rgba(30, 34, 44, 0.96) 0%, rgba(20, 22, 29, 0.96) 100%);
  border: 1px solid rgba(255, 75, 87, 0.32);
  border-radius: var(--radius-panel);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.bf-toc-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.bf-toc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bf-toc-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #dfe4f0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bf-toc-grid a:hover {
  border-color: var(--brand);
  background: rgba(255, 75, 87, 0.14);
  color: #fff;
}

.bf-answer-first {
  background: rgba(61, 220, 132, 0.08);
  border-left: 4px solid var(--live);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.bf-answer-first p {
  margin-bottom: 0 !important;
  color: #e6f9ef !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

.bf-sub-table {
  margin: 14px 0 18px;
}

.bf-mini-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.bf-mini-col h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.bf-article-fig {
  margin: 16px 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.bf-article-fig img {
  width: 100%;
  height: auto;
  display: block;
}

.bf-article-fig figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.bf-steps-4 {
  grid-template-columns: repeat(2, 1fr);
}

.tgdd-video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin: 16px 0 20px;
}

.tgdd-video-card video {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0d12;
  aspect-ratio: 16 / 9;
}

.tgdd-video-caption {
  padding: 12px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.tgdd-video-caption b {
  color: var(--ink);
}

/* Screen Reader Live Region for Copy Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Mobile Layout (≤820px & ≤560px) */
@media (max-width: 820px) {
  .contact-channels-grid,
  .contact-main-grid,
  .bf-mini-tables-grid,
  .bf-steps-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .logo-tld,
  .logo-sub {
    display: none;
  }
  .topnav-link:first-child {
    display: none;
  }
  .cf-row-2 {
    grid-template-columns: 1fr;
  }
  .about-hero {
    padding: 20px 16px;
  }
  .about-hero-main {
    flex-direction: column;
    text-align: center;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-sec {
    padding: 18px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .code-table {
    border: none;
    background: transparent;
  }
  .ct-head {
    display: none;
  }
  .ctr {
    grid-template-columns: 1fr;
  }
  .crow {
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface);
    margin-bottom: 10px;
  }
  .crow > div {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }
  .crow > div:first-child {
    border-top: none;
  }
  .cell-code {
    place-items: stretch;
  }
  .codebox {
    max-width: none;
  }
  .cell-status {
    place-items: start;
  }
  .banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .meta {
    justify-content: center;
  }
  .cbox {
    margin-left: 0;
    width: 100%;
  }
  .cbox input {
    width: 100%;
  }
}

