: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;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.logo .cube {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--brand-dark);
  transform: rotate(-6deg);
}

.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 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.faq details {
  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 {
  border-color: #3b4254;
  background: #1a1e28;
}

.faq details[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 {
  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 {
  color: #ffffff;
}

.faq details[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 {
  display: none;
}

.faq 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 {
  background: rgba(255, 75, 87, 0.2);
  border-color: var(--brand);
}

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

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

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

.faq details p 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);
}

.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;
}

.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;
}

/* 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 (≤560px) */
@media (max-width: 560px) {
  .logo span.full {
    display: none;
  }
  .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%;
  }
}
