/* ── Guide panels ───────────────────────────────────────────────────── */
.guide-page main {
  line-height: 1.7;
}

.guide-hero {
  border: 1px solid color-mix(in srgb, var(--hunt) 18%, var(--border) 82%);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(239, 63, 49, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(88, 101, 242, 0.1), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.guide-hero p {
  max-width: 42rem;
}

.guide-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(18, 16, 16, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1.35rem;
  padding: 1.5rem;
}

.guide-panel p,
.guide-panel li,
.guide-note span {
  line-height: 1.75;
}

/* ── Guide steps (simple list) ──────────────────────────────────────── */
.guide-steps {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.guide-steps strong,
.guide-steps span,
.guide-note strong,
.guide-note span {
  display: block;
}

.guide-steps strong {
  color: var(--text);
  font-size: 0.95rem;
}

.guide-steps span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Guide note (recommendation box) ───────────────────────────────── */
.guide-note {
  border: 1px solid rgba(88, 101, 242, 0.22);
  border-radius: 1rem;
  background: rgba(88, 101, 242, 0.08);
  padding: 1rem;
}

.guide-note strong {
  color: var(--text);
  font-size: 0.95rem;
}

.guide-note span {
  color: var(--muted);
  line-height: 1.6;
}

/* ── Platform tab buttons ───────────────────────────────────────────── */
.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.guide-tab-btn:hover {
  background: color-mix(in srgb, var(--discord) 10%, var(--surface));
  border-color: rgba(88, 101, 242, 0.4);
}

.guide-tab-btn[aria-selected="true"] {
  background: var(--discord);
  border-color: var(--discord);
  color: #fff;
}

.guide-tab-panel[hidden] {
  display: none;
}

/* ── Numbered steps ─────────────────────────────────────────────────── */
.guide-numbered-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.guide-numbered-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0 0.85rem;
  align-items: start;
}

.guide-numbered-steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--discord);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.guide-numbered-steps > li > div {
  display: grid;
  gap: 0.25rem;
}

.guide-numbered-steps > li > div > strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  display: block;
}

.guide-numbered-steps span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  display: block;
}

/* ── Action buttons ─────────────────────────────────────────────────── */
.guide-action-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--discord);
  border-radius: 999px;
  color: var(--discord);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.guide-action-btn:hover {
  background: color-mix(in srgb, var(--discord) 10%, transparent);
}

.guide-action-btn-primary {
  background: var(--discord);
  color: #fff;
}

.guide-action-btn-primary:hover {
  background: color-mix(in srgb, var(--discord) 88%, #000);
  color: #fff;
}

/* ── Amber note box ─────────────────────────────────────────────────── */
.guide-amber-note {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 0.85rem;
  background: rgba(245, 158, 11, 0.07);
  padding: 0.9rem 1rem;
}

/* ── Screenshot placeholder ─────────────────────────────────────────── */
.screenshot-placeholder {
  border: 1.5px dashed var(--border);
  border-radius: 0.85rem;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

/* ── Screenshot with lightbox ───────────────────────────────────────── */
.guide-screenshot {
  margin: 0;
}

.guide-screenshot figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.screenshot-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1e1f22;
}

.screenshot-wrap img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  transition: opacity 0.15s;
}

.screenshot-wrap:hover img {
  opacity: 0.92;
}

.screenshot-static {
  display: inline-block;
  max-width: 100%;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1e1f22;
}

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

.screenshot-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
  pointer-events: none;
}

/* ── Lightbox overlay ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(90vw, 820px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.6rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

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

/* ── Checklist ──────────────────────────────────────────────────────── */
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

.guide-checklist li::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  border-radius: 50%;
  background:
    var(--discord)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 72% no-repeat;
}

/* ── Info hub card grid ─────────────────────────────────────────────── */
.info-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hq-action-info {
  border-top: 4px solid var(--discord);
}

.info-cards .hq-action {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--discord);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 2.35rem 1rem 1rem;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.info-cards .hq-action:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--discord) 42%, var(--border) 58%);
  box-shadow: 0 22px 54px rgba(18, 16, 16, 0.17);
}

.info-cards .hq-action::before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: block;
  height: 2.35rem;
  width: 2.35rem;
  border: 1px solid color-mix(in srgb, var(--discord) 26%, transparent);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--discord);
  transition:
    transform 170ms ease,
    background 170ms ease,
    border-color 170ms ease;
}

.info-cards .hq-action::after {
  content: "";
  position: absolute;
  right: 1.9rem;
  top: 1.77rem;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid var(--discord);
  border-top: 2px solid var(--discord);
  transform: rotate(45deg);
  transition: transform 170ms ease;
}

.info-cards .hq-action:hover::before {
  transform: translateX(0.16rem);
  border-color: color-mix(in srgb, var(--discord) 48%, var(--border) 52%);
}

.info-cards .hq-action:hover::after {
  transform: translateX(0.16rem) rotate(45deg);
}

.info-cards .hq-action span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.info-cards .hq-action strong {
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.15;
}

.info-cards .hq-action small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (min-width: 680px) {
  .info-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .guide-hero {
    padding: 1.75rem;
  }

  .guide-panel {
    padding: 1.75rem;
  }
}
