/* ── BLOG CARDS ──────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blog);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(22,163,74,0.12);
  transform: translateY(-2px);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface);
  display: block;
}
.blog-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blog);
}

.blog-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-card-date { font-size: 0.75rem; color: var(--muted); }
.blog-card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.5; flex: 1; }
.blog-card-more { font-size: 0.78rem; font-weight: 700; color: var(--blog); margin-top: 4px; }

/* ── GUIDE LIST ──────────────────────────────────────── */
.guide-list { list-style: none; }

.guide-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.12s;
}
.guide-item:hover { padding-left: 6px; }

.guide-item-title { flex: 1; font-weight: 500; font-size: 0.95rem; }
.guide-item-date  { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.guide-item-arrow { color: var(--muted); font-size: 0.9rem; }
.guide-item:hover .guide-item-arrow { color: var(--ink); }

/* ── CARRUSEL ────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease;
}

.carousel-item {
  flex-shrink: 0;
}

/* 5 imágenes visibles */
.carousel-images .carousel-item  { width: calc((100% - 48px) / 5); }
/* 3 videos visibles */
.carousel-videos .carousel-item  { width: calc((100% - 24px) / 3); }

.carousel-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  border: 1px solid var(--rule);
  display: block;
  transition: opacity 0.15s;
}
.carousel-item img:hover { opacity: 0.85; }

.carousel-item .video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  position: relative;
  cursor: pointer;
}
.carousel-item .video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.15s;
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--ink); color: var(--bg); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

/* ── STREAM ──────────────────────────────────────────── */
.stream-section {
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
}

.stream-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: stretch;
}

.stream-frame, .stream-chat {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--stream-bd);
  background: #0e0e10;
}

.stream-frame iframe, .stream-chat iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  min-height: 400px;
}

.stream-offline {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #adadb8;
  font-size: 0.9rem;
  background: #0e0e10;
  border-radius: 8px;
}

/* ── BIRTHDAY CARD ───────────────────────────────────── */
.bday-section { border-top: 1px solid var(--rule); padding: 40px 0; }

.bday-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--bday-bd);
  border-left: 5px solid var(--bday);
  border-radius: 10px;
  padding: 24px 28px;
  max-width: 540px;
}

.bday-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--bday-bd);
  flex-shrink: 0;
  background: var(--bday-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
}
.bday-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.bday-info { flex: 1; }
.bday-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bday); font-weight: 700; }
.bday-name  { font-size: 1.3rem; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.bday-date  { font-size: 0.9rem; color: var(--muted); }
.bday-days  { font-size: 0.8rem; color: var(--bday); font-weight: 700; margin-top: 6px; }

/* ── JUEGO PAGE ──────────────────────────────────────── */
.game-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.game-hero.ro  { border-bottom: 3px solid var(--ro); }
.game-hero.wow { border-bottom: 3px solid var(--wow); }

.game-hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.game-hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.game-info-item {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
}
.game-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.game-info-value { font-size: 0.9rem; font-weight: 700; }

/* ── LIGHTBOX ────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92%; max-height: 90vh; border-radius: 6px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 16px; right: 24px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* ── ARTICLE (posts y guías) ─────────────────────────── */
.article-wrap { padding: 48px 0 64px; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.article-back:hover { color: var(--ink); }

.article-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.article-body { line-height: 1.8; }
.article-body img { display: block; margin: 20px auto; max-width: 100%; height: auto; border-radius: 6px; }
.article-body h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 10px; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.article-body p  { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 18px; }
.article-body li { margin: 6px 0; }
.article-body a  { text-underline-offset: 3px; }
.article-body strong { font-weight: 700; }
.article-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}
.article-body code {
  background: var(--surface);
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 0.88em;
}
.article-body pre {
  background: #111;
  color: #f5f5f5;
  padding: 18px 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.article-body pre code { background: none; border: none; padding: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 0.9rem; }
.article-body th, .article-body td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--surface); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.article-body tbody tr:nth-child(even) { background: var(--surface); }
.article-body td.loc-cell,  .article-body th.loc-cell  { text-align: center; }
.article-body td.day-cell,  .article-body th.day-cell   { text-align: center; }
.article-body .daily-table { table-layout: fixed; }
.article-body th { word-break: break-word; }

/* ── GUÍA: ÍNDICE (TOC) ──────────────────────────────── */
.guide-toc {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 32px;
}
.guide-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.guide-toc-list { list-style: none; counter-reset: guide-toc; padding: 0; }
.guide-toc-list li { counter-increment: guide-toc; margin: 2px 0; }
.guide-toc-list li::before {
  content: counter(guide-toc) ".";
  display: inline-block;
  width: 1.6em;
  color: var(--muted);
  font-weight: 700;
}
.guide-toc-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.guide-toc-list a:hover { text-decoration: underline; }

/* ── GUÍA: SECCIONES COLAPSABLES (MISIONES) ──────────── */
.guide-section {
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin: 16px 0;
  overflow: hidden;
}
.guide-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.guide-section-toggle:hover { background: var(--rule); }
.guide-section-arrow {
  font-size: 1.1rem;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--muted);
}
.guide-section.open .guide-section-arrow { transform: rotate(90deg); }
.guide-section-title { font-size: 1.05rem; font-weight: 700; }
.guide-section-body {
  display: none;
  padding: 24px 24px 28px;
  border-top: 1px solid var(--rule);
}
.guide-section-body > *:first-child { margin-top: 0; }
.guide-section.open .guide-section-body { display: block; }

/* ── GUÍA: PASO NUMERADO (NAVI + imagen + tabla agrupados) ── */
.article-body .step { display: flex; align-items: flex-start; gap: 16px; margin: 20px 0 28px; }
.article-body .step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 1.4ch;
}
.article-body .step-body { flex: 1; min-width: 0; }
.article-body .step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-weight: 600;
}
.article-body .step-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-body .step-media table { margin: 0; }
.article-body .step-media img { margin: 0; }

/* Imágenes de guía: chicas por defecto, se agrandan en el lightbox al hacer click */
.article-body img.guide-img {
  max-width: 240px;
  width: 100%;
  margin: 0 auto 16px;
  cursor: zoom-in;
}
.article-body .step-media img.guide-img { margin: 0; }
.article-body img.guide-img.guide-img-lg { max-width: 300px; }

/* Imagen "destacada" con botón NAVI superpuesto en la esquina inferior
   derecha (con margen, sin pegarse al borde) */
.article-body .step-img-wrap {
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.article-body .step-img-wrap img.guide-img { margin: 0; display: block; }
.article-body .step-img-wrap .step-img-navi {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.article-body .step-img-wrap .step-img-navi:hover,
.article-body .step-img-wrap .step-img-navi.copied {
  background: var(--ink);
  color: var(--bg);
}

/* Texto clickeable que abre el modal de respuestas */
.article-body .trivia-trigger {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 700;
}
.article-body .trivia-trigger:hover { color: var(--muted); }

/* Modal de respuestas (trivia, etc.) */
.answer-modal {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6);
  align-items: center; justify-content: center;
  padding: 20px;
}
.answer-modal.active { display: flex; }
.answer-modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  max-width: 380px; width: 100%;
  padding: 28px 26px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.answer-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--muted);
}
.answer-modal-close:hover { color: var(--ink); }
.answer-modal-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; padding-right: 20px; }
.answer-modal-list { padding-left: 1.3em; }
.answer-modal-list li { margin: 8px 0; font-size: 0.9rem; }

/* Bloque "The Poring Journal": tarjetas lado a lado — título, imagen,
   y debajo los botones NAVI numerados, todo del ancho de la imagen */
.article-body .poring-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 16px 0 30px;
}
.article-body .poring-card { width: 240px; flex-shrink: 0; }
.article-body .poring-card h3 { margin: 0 0 10px; }
.article-body .poring-card img.guide-img {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
}
.article-body .poring-navis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Placeholder para tarjetas de poring-grid que todavía no tienen imagen */
.article-body .poring-card .guide-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
  margin: 0 0 10px;
}

/* ── AVATAR CON BORDE DE GÉNERO ──────────────────────── */
/* Uso: <div class="avatar avatar-f"> o .avatar-m
   El elemento puede ser div o img directamente.          */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 3px solid var(--rule);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-f { border-color: var(--female); background: var(--female-bg); box-shadow: 0 0 0 1px var(--female); }
.avatar-m { border-color: var(--male);   background: var(--male-bg);   box-shadow: 0 0 0 1px var(--male);   }

/* ── COMMENTS ────────────────────────────────────────── */
.comments-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.comments-title   { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; margin-bottom: 24px; }

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.comment {
  display: flex;
  gap: 14px;
}
.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--rule);
  overflow: hidden;
  background: var(--surface);
}
.comment-avatar.avatar-f { border-color: var(--female); background: var(--female-bg); box-shadow: 0 0 0 1px var(--female); }
.comment-avatar.avatar-m { border-color: var(--male);   background: var(--male-bg);   box-shadow: 0 0 0 1px var(--male);   }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body    { flex: 1; }
.comment-header  { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.comment-author  { font-weight: 700; font-size: 0.9rem; }
.comment-date    { font-size: 0.75rem; color: var(--muted); }
.comment-text    { font-size: 0.9rem; line-height: 1.6; color: var(--ink); }

.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.comment-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.comment-login-note { font-size: 0.82rem; color: var(--muted); }
.comment-login-note a { color: var(--ink); }

/* ── NAVI BTN ────────────────────────────────────────── */
.navi-btn {
  display: inline-block;
  min-width: 60px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  vertical-align: middle;
}
.navi-btn:hover, .navi-btn.copied { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── TABS ────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink-rule); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.ro:hover,  .tab-btn.ro.active  { color: var(--ro);  border-bottom-color: var(--ro); }
.tab-btn.wow:hover, .tab-btn.wow.active { color: var(--wow); border-bottom-color: var(--wow); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── ADMIN ───────────────────────────────────────────── */
.admin-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 24px;
}
