:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --ink: #111827;
  --muted: #4b5563;
  --border: #d8dee9;
  --border-strong: #94a3b8;
  --indigo: #1d3557;
  --indigo-dark: #102138;
  --indigo-soft: #e8eef7;
  --accent: #c81e2b;
  --accent-dark: #9f1420;
  --accent-soft: #fdecec;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --success: #0f766e;
  --success-soft: #ccfbf1;
  --font-serif: 'Shippori Mincho', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, 0.08);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--indigo-dark);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.brand:hover {
  color: #ffffff;
}

.brand-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font

-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Hero & Page Head */
.hero-band,
.page-head-band {
  position: relative;
  overflow: hidden;
}

.hero-band {
  background: linear-gradient(180deg, #e7edf6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 46px;
}

.hero-band--visual,
.page-head-band--visual {
  min-height: min(68vh, 620px);
  display: flex;
  align-items: flex-end;
  padding: 56px 0 48px;
  border-bottom: none;
  color: #f8fafc;
  background: var(--indigo-dark);
}

.hero-media,
.page-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media-img,
.page-banner-img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-media::after,
.page-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 33, 56, 0.45) 0%, rgba(16, 33, 56, 0.72) 48%, rgba(16, 33, 56, 0.92) 100%),
    linear-gradient(90deg, rgba(16, 33, 56, 0.82) 0%, rgba(16, 33, 56, 0.38) 58%, rgba(16, 33, 56, 0.62) 100%);
}

.hero-band--visual > .container,
.page-head-band--visual > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-band--visual .kicker-tag,
.page-head-band--visual .kicker-tag {
  color: #fca5a5;
  background: rgba(16, 33, 56, 0.5);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 30, 43, 0.45);
}

.hero-band--visual h1,
.page-head-band--visual h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-band--visual .hero-lead,
.page-head-band--visual .hero-lead,
.page-head-band--visual .updated-meta,
.page-head-band--visual .breadcrumbs,
.page-head-band--visual .breadcrumbs a {
  color: rgba(248, 250, 252, 0.9);
}

.page-head-band--visual .breadcrumbs a:hover {
  color: #fecaca;
}

.hero-band--visual .fact-strip {
  border-top-color: rgba(248, 250, 252, 0.2);
}

.hero-band--visual .fact-item dt {
  color: rgba(248, 250, 252, 0.7);
}

.hero-band--visual .fact-item dd {
  color: #ffffff;
}

.hero-band--visual .btn-ghost {
  background: rgba(248, 250, 252, 0.1);
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.35);
}

.hero-band--visual .btn-ghost:hover {
  background: rgba(248, 250, 252, 0.2);
  color: #ffffff;
  border-color: #fca5a5;
}

.her

o-band--visual .codes-panel {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(2px);
}

.cover-band {
  padding-top: 28px;
  padding-bottom: 8px;
}

.game-cover-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.game-cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-cover-card figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.banner-caption-band {
  padding-top: 14px;
}

.banner-caption {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: start;
}

.kicker-tag {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.25;
  margin-top: 0;
}

.hero-copy h1,
.page-head-band h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-secondary {
  background: var(--indigo);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--indigo-dark);
  color: #ffffff;
}

.btn-ghost,
.btn-outline {
  background: var(--surface);
  color: var(--indigo);
  border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-outline:hover {
  border-color: var(--indigo);
  background: var(--indigo-soft);
  color: var(--indigo-dark);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.fact-item dt {
  font-size: 12px;
  font-weight: 70

0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.fact-item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Ledger Card & Codes Panel */
.ledger-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.codes-panel,
.codes-banner {
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--indigo);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--indigo-dark);
  color: #ffffff;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
  flex-shrink: 0;
}

.panel-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fca5a5;
}

.panel-meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: #e2e8f0;
}

.panel-meta strong {
  color: #ffffff;
}

.count-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.code-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 12px 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
}

.tab-btn.is-active {
  color: var(--indigo);
  border-bottom-color: var(--accent);
}

.code-list {
  list-style: none;
  margin: 0;
  padding: 10px 18px;
}

.code-list.is-hidden {
  display: none;
}

.code-list-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.code-list-wide .code-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface-alt);
}

.code-row:last-child {
  border-bottom: none;
}

.code-row.is-used {
  opacity: 0.56;
}

.code-row.is-used .code-token {
  text-decoration: line-through;
}

.code-row.is-expired {
  opacity: 0.78;
}

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

.code-top-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}


.code-token {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo-dark);
  background: var(--indigo-soft);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
}

.code-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.code-badge.badge-expired {
  background: #e2e8f0;
  color: #475569;
}

.code-reward {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

.code-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.used-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.used-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--indigo);
  cursor: pointer;
}

.copy-btn {
  appearance: none;
  border: 1.5px solid var(--indigo);
  background: var(--surface);
  color: var(--indigo);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 72px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  background: var(--indigo);
  color: #ffffff;
}

.copy-btn.is-copied {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.panel-foot {
  margin: 0;
  padding: 12px 20px 15px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

/* Page Head Band */
.page-head-band {
  background: linear-gradient(180deg, #e7edf6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 34px;
}

.page-head-band--visual {
  background: var(--indigo-dark);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  text-decoration: none;
  font-weight: 600;
}

.updated-meta {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Sections & Grids */
.section-band {
  padding: 40px 0;
}

.compact-band {
  padding: 26px 0 6px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decor

ation: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.index-card:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.index-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.index-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.index-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Prose Layout */
.prose-band {
  padding-top: 28px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.prose h2 {
  font-size: clamp(22px, 2.5vw, 27px);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 19px;
  margin: 22px 0 8px;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--indigo-soft);
  color: var(--indigo-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #334155;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 11px 13px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--indigo-dark);
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.prose tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.editorial-figure {
  margin: 0 0 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
}

.editorial-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.article-next {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--indigo-soft);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
}

.article-next p {
  margin: 0;
}

/* Side Rail */
.side-rail {
  display: flex;
  flex-direct

ion: column;
  gap: 18px;
  position: sticky;
  top: 86px;
}

.rail-box {
  padding: 20px;
}

.rail-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li {
  padding: 7px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 14px;
}

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

.rail-list a {
  text-decoration: none;
  font-weight: 600;
}

.rail-date {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.rail-empty {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}

.rail-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

/* Blog List */
.post-list {
  display: grid;
  gap: 16px;
}

.post-item {
  padding: 24px 26px;
}

.post-date {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.post-item h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.post-item h2 a {
  text-decoration: none;
  color: var(--ink);
}

.post-item h2 a:hover {
  color: var(--accent);
}

.post-excerpt {
  margin: 0 0 12px;
  color: var(--muted);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

/* FAQ */
.faq-band {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Community Band */
.community-band {
  padding-top: 24px;
  padding-bottom: 56px;
}

.community-card {
  padding: 26px 28px;
}

.community-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.community-top h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.community-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.engage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.engage-btn[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.count-pill {

 background: var(--indigo-soft);
  color: var(--indigo-dark);
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
}

.share-msg,
.comment-msg {
  font-size: 13px;
  color: var(--success);
  margin: 0;
}

.comment-form {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--indigo-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.reply-banner.is-active {
  display: flex;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.comments-header h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comments-empty-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.comment-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.reply-card {
  margin-top: 10px;
  margin-left: 18px;
  background: var(--surface);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 6px;
}

.owner-badge {
  display: none;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 999px;
}

.owner-badge.is-visible {
  display: inline-block;
}

.comment-time,
.reply-to {
  color: var(--muted);
  font-size: 12px;
}

.comment-body {
  margin: 0 0 8px;
  font-size: 14.5px;
  white-space: pre-wrap;
}

.link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--indigo-dark);
  color: #cbd5e1;
  border-top: 3px solid var(--accent);
  padding: 42px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.footer-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 44ch;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-wei

ght: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca5a5;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.footer-col a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-band--visual,
  .page-head-band--visual {
    min-height: min(58vh, 520px);
    align-items: flex-end;
  }

  .side-rail {
    position: static;
  }

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

  .code-list-wide {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    width: 100%;
    gap: 4px;
  }

  .site-nav a {
    padding: 6px 9px;
    font-size: 13px;
  }

  .fact-strip,
  .index-grid {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 22px 18px;
  }

  .code-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-controls {
    width: 100%;
    justify-content: space-between;
  }
}
