/* 신규 게임 소개 페이지 (new-games.html, en/new-games.html) 전용 스타일 — 2026-11-19
   공통 style.css 의 색·글꼴·nav·footer 를 그대로 쓰고, 이 페이지에만 필요한 것만 둡니다. */
.ng-body { background: var(--bg); }
.ng { --mori:#52794f; --suri:#82649e; --saeri:#3972a8; --tori:#a77b20; --buri:#b44e38; }

/* ── 첫 화면: 그림은 가리지 않고 통째로, 글은 그 아래 남색 판 ── */
.ng-hero { position: relative; background: var(--bg-dark); padding-bottom: clamp(30px, 4vw, 56px); }
.ng-hero__img { position: relative; }
.ng-hero__img img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; object-position: 50% 62%; }
.ng-hero__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(27,57,112,0), var(--bg-dark)); }
.ng-hero__copy { position: relative; margin-top: clamp(-120px, -8vw, -40px); text-align: center; color: #fff; }
.ng-hero__lead, .ng-stats, .ng-hero__cta { margin-left: auto !important; margin-right: auto !important; justify-content: center; }
.ng-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--yellow); color: var(--brand-ink); font-weight: 900; font-size: 15px; letter-spacing: .08em; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ng-hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e2412f; animation: ngPulse 1.2s ease-in-out infinite; }
@keyframes ngPulse { 50% { transform: scale(1.6); opacity: .5; } }
.ng-hero h1 { margin: 16px 0 12px; font-size: clamp(36px, 6.2vw, 76px); line-height: 1.12; font-weight: 900; letter-spacing: -.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.ng-hero h1 em { font-style: normal; color: var(--yellow); }
.ng-hero h1 br { display: none; }
.ng-hero__lead { margin: 0 0 22px; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 640px; }
.ng-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.ng-stats li { padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 15px; color: #fff; }
.ng-stats b { display: block; font-size: 26px; line-height: 1.1; font-weight: 900; color: var(--yellow); }
.ng-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ng-btn-ghost { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.6) !important; }

/* ── 캐릭터 바로가기 (붙는 띠) ── */
.ng-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255,254,251,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.ng-tabs__row { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.ng-tabs__row::-webkit-scrollbar { display: none; }
.ng-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ng-tab img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--c, #eee); }
.ng-tab small { font-weight: 700; color: var(--ink-3); }
.ng-tab:hover, .ng-tab:focus-visible { border-color: var(--c, var(--brand)); color: var(--c, var(--brand)); }

/* ── 소개 ── */
.ng-intro { background: var(--bg); padding: var(--space) 0 calc(var(--space) * .5); text-align: center; }
.ng-intro h2 { margin: 8px 0 12px; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.3; font-weight: 900; color: var(--ink); }
.ng-intro p { margin: 0 auto; max-width: 640px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.ng-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px auto 0; max-width: 860px; padding: 0; list-style: none; }
.ng-ways li { padding: 18px 14px; border-radius: var(--r); background: var(--bg-alt); border: 1px solid #F2E6C8; }
.ng-ways b { display: block; font-size: 30px; line-height: 1; }
.ng-ways strong { display: block; margin: 10px 0 4px; font-size: 17px; color: var(--ink); }
.ng-ways span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ── 캐릭터 구역 ── */
.ng-char { padding: calc(var(--space) * .5) 0 var(--space); scroll-margin-top: calc(var(--nav-h) + 64px); }
.ng-banner { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(260px, 34vw, 440px);
  display: flex; align-items: center; box-shadow: var(--shadow); background: var(--c); }
.ng-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ng-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.ng-banner--r { justify-content: flex-end; }
.ng-banner--r::before { background: linear-gradient(90deg, rgba(0,0,0,0) 38%, rgba(10,16,40,.62) 70%, rgba(10,16,40,.78)); }
.ng-banner--l::before { background: linear-gradient(270deg, rgba(0,0,0,0) 38%, rgba(10,16,40,.62) 70%, rgba(10,16,40,.78)); }
.ng-banner__text { width: min(46%, 470px); padding: clamp(22px, 3.4vw, 44px); color: #fff; }
.ng-banner__who { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c); font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.ng-banner h2 { margin: 12px 0 8px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2; font-weight: 900; text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.ng-banner h2 span { color: var(--yellow); white-space: nowrap; }
.ng-banner p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; color: rgba(255,255,255,.92); }

.ng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 410px)); justify-content: center; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.ng-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; }
.ng-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(16,32,94,.12); }
.ng-shot { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #e9e6dd; }
.ng-shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-shot__play { position: absolute; right: 12px; bottom: 12px; width: 36%; border-radius: 12px; overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.35); background: #222; }
.ng-shot__play img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ng-shot__play span { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 800; }
.ng-new { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px; background: #e2412f; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.ng-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ng-card h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 900; color: var(--ink); }
.ng-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ng-chips li { padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; background: var(--bg-alt); color: var(--ink-2); border: 1px solid #F0E3C4; }
.ng-chips li.ng-chip--c { background: var(--c); color: #fff; border-color: var(--c); }
.ng-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.ng-banner__new { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: #e2412f; color: #fff; font-size: 14px; font-weight: 900; }
.ng-filter { display: inline-flex; gap: 6px; margin-top: 26px; padding: 6px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ng-filter button { font: inherit; font-weight: 800; font-size: 15px; padding: 10px 20px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); cursor: pointer; }
.ng-filter button.is-on { background: var(--brand); color: #fff; }
.ng--new .ng-card:not(.is-new) { display: none; }

/* ── 카메라 게임 안내 ── */
.ng-cam { padding: var(--space) 0; background: var(--bg-alt); }
.ng-cam__box { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; max-width: 900px; margin: 0 auto;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.ng-cam__box svg { width: 100%; height: auto; }
.ng-cam h2 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); font-weight: 900; }
.ng-cam p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.7; font-size: 16px; }

/* ── 마무리 ── */
.ng-cta { padding: var(--space) 0; text-align: center; background: var(--bg-dark); color: #fff; }
.ng-cta h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.ng-cta p { margin: 0 auto 24px; max-width: 560px; color: rgba(255,255,255,.85); line-height: 1.7; }
.ng-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ng-note { margin: 22px 0 0; font-size: 13px; color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .ng-grid { grid-template-columns: minmax(0, 1fr); }
  .ng-ways { grid-template-columns: 1fr; text-align: left; }
  .ng-ways li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
  .ng-ways b { grid-row: span 2; }
  .ng-ways strong { margin: 0; }
  .ng-banner { align-items: flex-end; min-height: 380px; }
  .ng-banner--r, .ng-banner--l { justify-content: stretch; }
  .ng-banner--r::before, .ng-banner--l::before { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,16,40,.82) 82%); }
  .ng-banner__text { width: 100%; padding: 20px; }
  .ng-banner--r img { object-position: 20% 50%; }
  .ng-banner--l img { object-position: 80% 50%; }
  .ng-banner { min-height: 440px; }
  .ng-cam__box { grid-template-columns: 1fr; text-align: center; }
  .ng-cam__box svg { max-width: 220px; margin: 0 auto; }
  .ng-hero__img img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
  .ng-hero h1 br { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-hero__badge::before { animation: none; }
  .ng-card, .ng-card:hover { transition: none; transform: none; }
}

/* 리뉴얼(기존 게임을 새롭게 다듬음) 표시 — 2026-11-20 */
.ng-new.ng-renew { background: #1D427F; }
.ng-banner__new.ng-banner__renew { background: #1D427F; }
.ng--renew .ng-card:not(.is-renew) { display: none; }
.ng-filter button { white-space: nowrap; }
@media (max-width: 480px) { .ng-filter { gap: 2px; padding: 5px; } .ng-filter button { padding: 9px 13px; font-size: 14px; } }

/* 모바일: 게임 카드 한 줄에 2개 — 2026-11-20 */
@media (max-width: 860px) {
  .ng-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
  .ng-card { border-radius: 14px; }
  .ng-card__body { padding: 11px 11px 14px; gap: 7px; }
  .ng-card h3 { font-size: 15.5px; line-height: 1.3; word-break: keep-all; }
  .ng-chips { gap: 4px; }
  .ng-chips li { padding: 2px 7px; font-size: 11px; }
  .ng-card p { font-size: 13px; line-height: 1.5; word-break: keep-all; }
  .ng-new { left: 7px; top: 7px; padding: 2px 7px; font-size: 10.5px; border-radius: 6px; letter-spacing: .04em; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .ng-grid { gap: 16px; }
  .ng-card h3 { font-size: 18px; }
  .ng-card p { font-size: 14px; }
}

/* 위 메뉴가 스크롤로 숨으면 주인공 바로가기 띠도 맨 위로 붙음 (빈틈 방지) — 2026-11-20 */
.ng-tabs { transition: top .28s ease; }
body:has(.nav.nav--hidden) .ng-tabs { top: 0; }
.ng-char { scroll-margin-top: calc(var(--nav-h, 64px) + 72px); }
@media (prefers-reduced-motion: reduce) { .ng-tabs { transition: none; } }
