body.page-badge {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(76, 130, 255, 0.14), transparent 55%),
    var(--apple-bg, #0f0f14);
}

.badge-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.badge-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.badge-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.badge-hero p {
  color: var(--apple-text-secondary, #86868b);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.badge-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.light-theme .badge-section {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.badge-section h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.badge-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 48px;
}

.badge-preview--dark {
  padding: 1rem;
  border-radius: 12px;
  background: #1e1e2f;
}

.badge-code {
  position: relative;
}

.badge-code pre {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

body.light-theme .badge-code pre {
  background: #f5f5f7;
}

.badge-copy {
  margin-top: 0.65rem;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--okdak-accent, #4c82ff);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.badge-copy:hover {
  filter: brightness(1.08);
}

.badge-directories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.badge-directories li {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .badge-directories li {
  background: #f9f9fb;
  border-color: rgba(0, 0, 0, 0.06);
}

.badge-directories a {
  font-weight: 600;
  color: var(--okdak-accent, #4c82ff);
  text-decoration: none;
}

.badge-directories p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--apple-text-secondary, #86868b);
}

.badge-note {
  font-size: 0.85rem;
  color: var(--apple-text-secondary, #86868b);
  margin-top: 1.5rem;
  line-height: 1.6;
}

.badge-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--okdak-accent, #4c82ff);
  text-decoration: none;
  font-size: 0.9rem;
}
