/* 공략실 전용 (공략실 목록 · 공략 문서) */

/* ---------- 공략실 첫 화면 (성문): 흑백 키아트 + 아치형 문 셋 + 명판, 금빛 포인트(--hof-gold) ---------- */
.gg { display: flex; flex-direction: column; gap: var(--sp-8); }
.gg-hero .eyebrow, .gg-gate .eyebrow, .gg-guild .eyebrow { color: var(--hof-gold); }
.gg-hero { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; border-radius: var(--radius-lg); background: var(--art-bg); text-align: center; isolation: isolate; }
.gg-hero__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: brightness(var(--hero-dim, .45)) saturate(.85); /* 밝기 = 관리자 배경 그림의 진하기 */ }
.gg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 60% at 50% 40%, transparent, rgba(var(--bg-rgb), .55) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 55%); }
.gg-hero__text { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-6) var(--sp-6) calc(var(--sp-16) * 2 + var(--sp-4)); isolation: isolate; }
.gg-hero__title { font-size: var(--fs-hero); font-weight: var(--fw-black); letter-spacing: .08em; line-height: var(--lh-display); color: var(--text-strong); }
.gg-hero__text p { font-size: var(--fs-lg); color: var(--text-sub); }
.gg-gates { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); margin-top: calc(var(--sp-16) * -2 - var(--sp-8)); padding-inline: var(--sp-8); }
.gg-gate { display: flex; flex-direction: column; }
.gg-gate__arch {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: var(--text);
  /* 화면이 낮으면(1920×1080 창 등) 문을 줄여 아래 바로가기까지 한 화면에: 화면 높이 - (머리 · 제목 · 바로가기 ≈ 620px), 최소 300 */
  max-height: max(300px, calc(100svh - 620px));
  border: 1px solid color-mix(in srgb, var(--hof-gold) 55%, transparent); border-radius: 999px 999px var(--radius-sm) var(--radius-sm); background: var(--art-bg);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px color-mix(in srgb, var(--hof-gold) 28%, transparent), 0 30px 50px -24px rgba(var(--scrim-rgb), .95);
}
.gg-gate__arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(.85); transition: filter .5s ease, transform .8s ease; }
.gg-gate__arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--scrim-rgb), .95) 8%, rgba(var(--scrim-rgb), .2) 55%, rgba(var(--scrim-rgb), .35)); }
.gg-gate__arch:hover { color: var(--text); }
.gg-gate__arch:hover img { filter: brightness(.85) saturate(1); transform: scale(1.04); }
.gg-gate__no { position: absolute; z-index: 1; top: 13%; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); color: var(--hof-gold); }
.gg-gate__cap { position: absolute; z-index: 1; left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-6); display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); text-align: center; }
.gg-gate__cap b { font-size: var(--fs-4xl); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tight); color: var(--text-strong); }
.gg-gate__cap small { font-size: var(--fs-sm); color: var(--text-sub); }
/* 문 아래: 금빛 선이 내려와 마름모에서 갈라지고, 그 아래 명판(메달 그림 + 제목) */
.gg-gate__links { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: var(--sp-10) 0 0; list-style: none; }
.gg-gate__links::before { content: ""; position: absolute; top: var(--sp-2); left: 50%; height: var(--sp-6); border-left: 1px solid color-mix(in srgb, var(--hof-gold) 55%, transparent); }
.gg-gate__links::after { content: ""; position: absolute; top: calc(var(--sp-8) - 4px); left: 50%; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: var(--hof-gold); }
.gg-gate__links a {
  position: relative; display: flex; align-items: center; gap: var(--sp-3); min-height: 68px; padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hof-gold) 20%, transparent); border-radius: 999px var(--radius) var(--radius) 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hof-gold) 9%, var(--surface-solid)), var(--surface-solid) 70%);
  color: var(--text); transition: border-color .25s ease, background .25s ease;
}
/* 마우스를 올리면 금빛이 왼쪽에서 스윽 */
.gg-gate__links a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hof-gold) 14%, transparent), transparent); transform: translateX(-100%); transition: transform .6s ease; pointer-events: none; }
.gg-gate__links a:hover { border-color: color-mix(in srgb, var(--hof-gold) 60%, transparent); color: var(--text); }
.gg-gate__links a:hover::before { transform: translateX(100%); }
.gg-medal { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 3px color-mix(in srgb, var(--hof-gold) 50%, transparent); transition: box-shadow .25s ease; }
.gg-medal img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transition: filter .3s ease, transform .4s ease; }
.gg-gate__links a:hover .gg-medal { box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 3px var(--hof-gold), 0 0 18px color-mix(in srgb, var(--hof-gold) 35%, transparent); }
.gg-gate__links a:hover .gg-medal img { filter: none; transform: scale(1.08); }
/* 준비 중(일반 사용자에게 링크 없음): 그림 흐리게 · 꺾쇠 대신 '준비중' 딱지, 눌러도 반응 없음 */
.gg-gate__links a.is-soon { cursor: default; }
.gg-gate__links a.is-soon:hover { border-color: var(--line); color: inherit; }
.gg-gate__links a.is-soon::before, .gg-gate__links a.is-soon .gg-plate__go { display: none; }
.gg-gate__links a.is-soon .gg-medal img, .gg-gate__links a.is-soon:hover .gg-medal img { filter: grayscale(.8) brightness(.55); transform: none; }
.gg-gate__links a.is-soon:hover .gg-medal { box-shadow: none; }
.gg-gate__links a.is-soon small { opacity: .75; }
.soon-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: var(--fw-bold); line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.gg-plate__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gg-plate__text b { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-strong); transition: color .2s ease; }
.gg-plate__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-xs); color: var(--muted); }
.gg-plate__go { flex-shrink: 0; color: color-mix(in srgb, var(--hof-gold) 55%, transparent); transition: color .2s ease, transform .2s ease; }
.gg-gate__links a:hover .gg-plate__text b { color: var(--hof-gold-light); }
.gg-gate__links a:hover .gg-plate__go { color: var(--hof-gold); transform: translateX(3px); }
.gg-guild { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--sp-5); margin-top: var(--sp-6); padding: var(--sp-6) 0; border-top: 1px solid color-mix(in srgb, var(--hof-gold) 28%, transparent); } /* 아랫선은 빼서 바로 밑 사이트 하단 선과 겹치지 않게 */
.gg-guild__head { display: flex; flex-direction: column; gap: 2px; }
.gg-guild__head h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
.gg-guild__head p { font-size: var(--fs-sm); color: var(--muted); }
.gg-guild__link { display: flex; align-items: center; gap: var(--sp-3); color: var(--text); }
.gg-guild__link span { min-width: 0; display: flex; flex-direction: column; }
.gg-guild__link b { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-strong); }
.gg-guild__link small { font-size: var(--fs-xs); color: var(--muted); }
.gg-guild__link:hover { color: var(--text); }
.gg-guild__link:hover .gg-medal { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--hof-gold), 0 0 18px color-mix(in srgb, var(--hof-gold) 35%, transparent); }
.gg-guild__link:hover .gg-medal img { filter: none; transform: scale(1.08); }
@media (max-width: 1024px) {
  .gg-gates { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; padding-inline: 0; gap: var(--sp-10); width: 100%; }
  .gg-gate__arch { aspect-ratio: 4 / 3; max-height: none; }
  .gg-guild { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 공략 문서 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-8); align-items: start; }
.article { display: flex; flex-direction: column; gap: var(--sp-8); min-width: 0; }
.article__head { display: flex; flex-direction: column; gap: var(--sp-3); }
.article__title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.article__lead { font-size: 16px; line-height: 1.7; color: var(--muted); }
.article__hero { border-radius: var(--radius-lg); aspect-ratio: 21 / 9; }
.article-sec { display: flex; flex-direction: column; gap: var(--sp-4); scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
.article-sec__title { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.article-sec p.article__text { font-size: 15px; line-height: 1.85; color: var(--text-sub); }
.article-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 480px) { .article-shots { grid-template-columns: minmax(0, 1fr); } }
.article .faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.article .faq-list details.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

/* 입력 조합 */
.key-combo { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* 팁 / 주의 상자 */
.callout { display: flex; gap: var(--sp-3); padding: var(--sp-4); font-size: 14px; line-height: 1.7; border-radius: var(--radius); background: rgba(139,92,246,0.12); border: 1px solid rgba(196,181,253,0.35); }
.callout__label { font-weight: 700; color: var(--accent); white-space: nowrap; }
.callout--warn { background: rgba(224,122,122,0.10); border-color: rgba(224,122,122,0.35); }
.callout--warn .callout__label { color: #E07A7A; }

/* 관련 게임 데이터 링크 */
.related-link { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); color: var(--text); }
.related-link:hover { color: var(--text); }
.related-link__thumb { width: 72px; height: 48px; flex-shrink: 0; font-size: 11px; border-radius: 8px; }
.related-link__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.related-link__body b { color: var(--text-strong); }
.related-link__arrow { color: var(--accent); font-size: 20px; }

/* 도움 됐어요 */
.article-feedback { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* 목차 */
.toc { position: sticky; top: calc(var(--header-h) + var(--sp-6)); display: flex; flex-direction: column; gap: var(--sp-1); }
.toc__title { font-weight: 700; color: var(--text-strong); margin-bottom: var(--sp-2); }
.toc__link { padding: var(--sp-2) 10px; font-size: 14px; color: var(--text-sub); border-radius: var(--radius-sm); }
.toc__link:hover { background: rgba(255,255,255,0.04); color: var(--text-strong); }
.toc__related { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout__aside { order: -1; }
  .toc { position: static; }
}

