:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --red: #c62828;
  --red-soft: #fdecec;
  --red-border: #f3c4c4;
  --red-dark: #8e1b1b;
  --amber: #b45309;
  --amber-soft: #fff7e6;
  --amber-border: #f3d19a;
  --green: #1b7a3a;
  --green-soft: #eef8f0;
  --green-border: #b9e0c3;
  --code-bg: #f7f7f5;
  --code-border: #ecece8;
  --max: 820px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.faq {
  display: grid;
  gap: 14px;
}

.faq article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fafafa;
}

.faq h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

.faq p,
.faq ul {
  margin: 0;
  color: #333;
  font-size: 15px;
}

.faq ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq p + p,
.faq p + ul {
  margin-top: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  display: block;
}

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

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: #7a3e05;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.banner svg {
  flex-shrink: 0;
}

.hero {
  padding: 56px 0 28px;
  text-align: center;
}

.centerpiece {
  margin: 8px 0 12px;
  padding: 28px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid var(--red-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(198, 40, 40, 0.12);
}

.centerpiece h2 {
  margin: 12px 0 18px;
  font-size: clamp(22px, 4vw, 30px);
}

.centerpiece figure {
  margin: 0 auto;
  max-width: 640px;
}

.centerpiece .shot {
  border: 2px solid var(--red-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.centerpiece blockquote {
  margin: 18px 0 8px;
  color: var(--red-dark);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.centerpiece figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
}

h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 18px 0 16px;
  font-weight: 750;
}

.lede {
  color: #333;
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 28px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn svg {
  display: block;
}

.btn-dark {
  background: #1a1a1a;
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-light {
  background: #fff;
  border-color: #d4d4d4;
}

.btn-light:hover {
  background: #f6f6f6;
}

.alert {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}

.alert h2,
.alert h3 {
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-red {
  background: #fff;
  border: 1px solid var(--red-border);
  color: var(--red-dark);
}

.alert-red ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.alert-green {
  border: 1px solid var(--green-border);
  background: #fff;
  color: #14532d;
}

.alert-amber {
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: #7a3e05;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section {
  padding: 48px 0 8px;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

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

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

.card {
  background: var(--red-soft);
  border-radius: 14px;
  padding: 22px 18px 20px;
}

.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--red);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #5a2a2a;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  border: 0;
  background: #f1f1f1;
  color: #333;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: #1a1a1a;
  color: #fff;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.file {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 4px;
}

.file-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

pre {
  margin: 0 0 16px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow: auto;
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f1f1f;
  overflow-wrap: anywhere;
}

.c-c { color: #2f7d32; }
.c-s { color: #9a3412; }
.c-k { color: #1d4ed8; }
.c-n { color: #6b7280; }
.c-h { background: #ffe8c2; }

.quote {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  color: #333;
  font-size: 15px;
}

.quote p {
  color: #333;
  margin: 0 0 12px;
}

.quote p:last-child {
  margin: 0;
}

.section a:not(.btn) {
  color: #1d4ed8;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.shots figure {
  margin: 0;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.shot:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 3px;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111;
  transition: transform 0.2s ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.012);
}

.shot-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.shots figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.92);
  padding: 56px 72px 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  margin: 0;
  max-width: min(1400px, 100%);
  max-height: 100%;
  overflow: auto;
  text-align: center;
}

.lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1400px, 96vw);
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #111;
  cursor: zoom-in;
}

.lightbox-frame.is-zoomed {
  width: 100%;
  height: 100%;
}

.lightbox-frame.is-zoomed img {
  max-width: none;
  max-height: none;
  width: min(2048px, 200vw);
  cursor: zoom-out;
}

.lightbox-frame figcaption {
  color: #d4d4d4;
  font-size: 14px;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

footer {
  margin: 56px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0 0 16px;
}

.footer-links {
  font-size: 13px;
  font-weight: 600;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

.discord-btn:hover {
  background: #4752c4;
}

.discord-btn svg {
  display: block;
}

@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 32px;
  }

  .lightbox {
    padding: 52px 12px 24px;
  }

  .lightbox-nav {
    display: none;
  }
}
