/* 게임 소개 › 메이플 오리진 (/game/about/) — build.py about(). 맵 그림 칸(.wm-thumb)·"그림 준비 중"은 world.css 를 같이 쓴다 */

/* 큰 그림 + 이름 */
.ab-hero { position: relative; display: flex; align-items: flex-end; min-height: 420px; border-radius: 12px; overflow: hidden; background: #05090e; }
.ab-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 10, 16, .92) 0%, rgba(6, 10, 16, .72) 36%, rgba(6, 10, 16, 0) 72%), linear-gradient(0deg, rgba(6, 10, 16, .55), rgba(6, 10, 16, 0) 45%); }
.ab-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; max-width: 540px; padding: 40px 40px 36px; }
.ab-kicker { font-size: 13px; font-weight: 600; color: var(--brand-text); }
.ab-hero h1 { font-size: 42px; font-weight: 700; line-height: 1.15; }
.ab-headline { font-size: 18px; line-height: 1.5; color: #d3e1ee; }
.ab-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ab-ghost { background: rgba(14, 22, 32, .66); }

/* 숫자 */
.ab-stats { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.ab-stats li + li { border-left: 1px solid var(--sep); }
.ab-stats a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; }
.ab-stats b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; transition: color .15s ease; }
.ab-stats span { font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.ab-stats a:hover b { color: var(--brand-text); }

.ab-lead { max-width: 780px; font-size: 16px; line-height: 1.8; color: var(--fg-2); }

/* 절 머리 */
.ab-sec { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.ab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ab-eyebrow { font-size: 13px; font-weight: 600; color: var(--brand-text); }
.ab-head h2 { margin-top: 2px; font-size: 22px; font-weight: 600; }
.ab-more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 14px; color: var(--fg-2); transition: color .15s ease; }
.ab-more svg { width: 16px; height: 16px; }
.ab-more:hover { color: var(--brand-text); }

/* 그 시절 그대로 */
.ab-feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ab-feat { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.ab-num { font-size: 13px; font-weight: 700; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.ab-feat h3 { font-size: 17px; font-weight: 600; }
.ab-feat-t, .ab-band-t { font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.ab-feat-t a, .ab-band-t a, .ab-lead a { color: var(--brand-text); text-decoration: underline; text-decoration-color: rgba(255, 173, 92, .4); text-underline-offset: 3px; }

/* 카드 공통(직업·지역·파티 퀘스트·보스) */
.ab-job, .ab-reg, .ab-pq { display: flex; flex-direction: column; height: 100%; border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.ab-job-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #05090e; }
.ab-job-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ab-job:hover .ab-job-pic img, .ab-reg:hover .wm-thumb img, .ab-pq:hover .wm-thumb img { transform: scale(1.05); }
.ab-job-t, .ab-pq-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px 12px; }
.ab-job-t b { font-size: 16px; font-weight: 600; transition: color .15s ease; }
.ab-job-t span, .ab-pq-t span { font-size: 12px; color: var(--fg-3); }
.ab-reg-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 12px 11px; }
.ab-reg-t b, .ab-pq-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.ab-reg-t span { flex: none; font-size: 12px; color: var(--fg-3); }
.ab-pq-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-job:hover b, .ab-reg:hover b, .ab-pq:hover b { color: var(--brand-text); }
.ab-jobs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ab-regs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ab-pqs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }

/* 시작하기 띠 */
.ab-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 24px 28px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(243, 154, 61, .14), rgba(243, 154, 61, .03) 60%), var(--panel); box-shadow: inset 0 0 0 1px rgba(243, 154, 61, .25); }
.ab-band h2 { font-size: 20px; font-weight: 600; }
.ab-band-t { max-width: 560px; margin-top: 4px; }
.ab-band .ab-cta { margin-top: 0; }

@media (max-width: 1023px) {
  .ab-jobs, .ab-regs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-stats b { font-size: 20px; }
}
@media (max-width: 767px) {
  /* 폰: 그림 위, 글은 그림 아래 판 위에 */
  .ab-hero { flex-direction: column; align-items: stretch; min-height: 0; background: var(--panel); }
  .ab-hero-bg { position: static; aspect-ratio: 16 / 9; height: auto; }
  .ab-hero::after { display: none; }
  .ab-hero-in { max-width: none; padding: 16px 16px 20px; }
  .ab-hero h1 { font-size: 30px; }
  .ab-headline { font-size: 16px; }
  .ab-cta { margin-top: 8px; }
  .ab-cta .btn { flex: 1 1 auto; }
  .ab-stats a { padding: 12px 2px; }
  .ab-stats b { font-size: 17px; }
  .ab-stats span { font-size: 11px; }
  .ab-lead { font-size: 15px; }
  .ab-head h2 { font-size: 19px; }
  .ab-feats { grid-template-columns: minmax(0, 1fr); }
  /* 직업은 옆으로 밀기(다섯 장이 2·2·1 로 어긋나지 않게) */
  .ab-jobs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .ab-jobs::-webkit-scrollbar { display: none; }
  .ab-jobs li { flex: 0 0 42%; scroll-snap-align: start; }
  .ab-regs, .ab-pqs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* 폰은 칸이 좁아 조건(레벨·인원)이 잘리지 않게 두 줄까지 */
  .ab-pq-t span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
  .ab-band { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ab-job-pic img { transition: none; } }
