/* 사이트 공통 틀(shell.js가 만드는 왼쪽 메뉴·위쪽 막대·아래 정보)과 밝은 기본 색 */
:root { --bg:#f5f6f8; --panel:#fff; --line:#e4e6eb; --text:#1c1e23; --muted:#6b7280; --gold:#c98500; --green:#2e9d4f; --red:#e5484d; --blue:#2f7cf6; --accent:#e83e3e; --side:232px; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.65 "Pretendard","Noto Sans KR",system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:var(--blue); }
img.px { image-rendering:pixelated; }
html[lang=ko] [data-en], html[lang=en] [data-ko] { display:none !important; }

body.has-shell { padding-left:var(--side); }
.side { position:fixed; left:0; top:0; bottom:0; width:var(--side); background:#fff; border-right:1px solid var(--line); padding:26px 18px 30px; overflow-y:auto; z-index:20; }
.brand { display:inline-flex; align-items:baseline; gap:5px; text-decoration:none; color:var(--text); }
.brand-mark { font-weight:900; font-size:24px; letter-spacing:-.5px; color:var(--accent); }
.brand-word { font-weight:800; font-size:18px; letter-spacing:1px; }
.side .brand { margin:0 6px 20px; }
.side .lang { display:flex; gap:6px; margin:0 6px 18px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.lang button { flex:1; background:#f1f2f5; color:var(--muted); border:1px solid transparent; border-radius:8px; padding:6px 8px; font:inherit; font-size:13px; cursor:pointer; }
.lang button.on { background:#fff; color:var(--text); border-color:var(--text); font-weight:700; }
.nav { display:flex; flex-direction:column; gap:2px; }
.nav-item { display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:10px; color:#3d424c; text-decoration:none; font-size:15px; }
.nav-item:hover { background:#f3f4f7; }
.nav-item.on { background:#fff1f1; color:var(--accent); font-weight:700; }
.nav-ico { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; }
.nav-title { font-size:12px; font-weight:700; color:#9aa0ab; margin:22px 10px 6px; letter-spacing:.3px; }
.nav-games { display:flex; flex-direction:column; gap:2px; }
.nav-game { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:10px; color:#3d424c; text-decoration:none; font-size:14px; line-height:1.3; }
.nav-game img { width:30px; height:30px; border-radius:8px; flex:none; }
.nav-game em { font-style:normal; font-size:11px; color:var(--gold); margin-left:auto; white-space:nowrap; }
.nav-game:hover { background:#f3f4f7; }
.nav-game.on { background:#fff1f1; color:var(--accent); font-weight:700; }

.topbar { display:none; }
.dim { display:none; }
.site-foot { background:#1f2024; color:#9a9ea8; margin-top:72px; padding:36px 0 44px; font-size:13px; }
.foot-in { max-width:1120px; margin:0 auto; padding:0 32px; }
.foot-brand .brand-word { color:#fff; }
.site-foot p { margin:10px 0; }
.site-foot a { color:#c9ccd3; text-decoration:none; }
.site-foot a:hover { color:#fff; text-decoration:underline; }
.foot-links { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0; }
.foot-links b { color:#fff; font-weight:600; min-width:170px; }
.site-foot .copy { margin-top:22px; color:#6e727c; }

@media (max-width:1023px){
  body.has-shell { padding-left:0; padding-top:56px; }
  .topbar { display:flex; align-items:center; gap:10px; position:fixed; top:0; left:0; right:0; height:56px; padding:0 12px; background:#fff; border-bottom:1px solid var(--line); z-index:30; }
  .topbar .brand { margin:0 auto 0 4px; }
  .menu-btn { width:40px; height:40px; border:0; background:none; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:0 9px; cursor:pointer; }
  .menu-btn span { display:block; height:2px; background:var(--text); border-radius:2px; }
  .side { top:56px; transform:translateX(-100%); transition:transform .25s; box-shadow:none; }
  body.nav-open .side { transform:none; box-shadow:4px 0 24px rgba(0,0,0,.15); }
  body.nav-open .dim { display:block; position:fixed; inset:56px 0 0 0; background:rgba(0,0,0,.35); z-index:15; }
  .side .brand { display:none; }
  .foot-in { padding:0 18px; }
}

/* 하위 페이지 머리 띠(넷마블처럼 그림 + 제목) */
.phero { position:relative; color:#fff; background:#1f2024 var(--img,none) center/cover; overflow:hidden; }
.phero::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(10,10,14,.88) 0%,rgba(10,10,14,.55) 55%,rgba(10,10,14,.25)); }
.phero .in { position:relative; max-width:1120px; margin:0 auto; padding:54px 32px 50px; }
.crumb { font-size:13px; color:rgba(255,255,255,.7); margin-bottom:10px; }
.crumb a { color:rgba(255,255,255,.85); text-decoration:none; } .crumb a:hover { text-decoration:underline; }
.crumb i { font-style:normal; margin:0 6px; opacity:.6; }
.phero h1 { font-size:clamp(28px,4vw,40px); margin:0; line-height:1.25; letter-spacing:-.5px; color:#fff; }
.phero p { margin:10px 0 0; max-width:640px; color:rgba(255,255,255,.85); font-size:16px; }
.phero .btns { margin-top:20px; }
.phero.plain { background:linear-gradient(120deg,#26272d,#3a2326); }
.phero.plain::before { display:none; }

/* 게임 소개 머리(큰 대표 그림) */
.ghero { position:relative; color:#fff; background:#000; overflow:hidden; }
.ghero > img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ghero::before { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.55) 45%,rgba(0,0,0,0) 80%),linear-gradient(transparent 60%,rgba(0,0,0,.6)); }
.ghero .in { position:relative; z-index:2; max-width:1120px; margin:0 auto; padding:0 32px; min-height:min(46vw,520px); display:flex; flex-direction:column; justify-content:flex-end; padding-bottom:44px; }
.ghero .gi { display:flex; gap:18px; align-items:center; }
.ghero .gi img { width:92px; height:92px; border-radius:22px; border:3px solid rgba(255,255,255,.9); flex:none; }
.ghero h1 { font-size:clamp(28px,4vw,42px); margin:0; line-height:1.2; color:#fff; letter-spacing:-.5px; }
.ghero .sub { color:rgba(255,255,255,.8); font-size:15px; margin-top:4px; }
.ghero .tag2 { display:inline-block; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; background:var(--accent); margin-bottom:12px; align-self:flex-start; }
.ghero .tag2.soon { background:#ffd36b; color:#3a2a00; }
.ghero .btns { margin-top:22px; }

/* 페이지 안 탭(밑줄) */
.ptabs { position:sticky; top:0; z-index:10; background:#fff; border-bottom:1px solid var(--line); }
.ptabs .in { max-width:1120px; margin:0 auto; padding:0 32px; display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
.ptabs a, .ptabs button { flex:none; position:relative; background:none; border:0; font:inherit; font-size:16px; color:#6b7280; padding:16px 14px; text-decoration:none; cursor:pointer; white-space:nowrap; }
.ptabs a:hover, .ptabs button:hover { color:var(--text); }
.ptabs .on { color:var(--text); font-weight:700; }
.ptabs .on::after { content:''; position:absolute; left:14px; right:14px; bottom:-1px; height:3px; background:var(--accent); border-radius:3px; }
.anchor { scroll-margin-top:70px; }
@media (max-width:1023px){ .ptabs { top:56px; } .anchor { scroll-margin-top:126px; } .phero .in, .ghero .in, .ptabs .in { padding-left:16px; padding-right:16px; } }
@media (max-width:640px){ .phero .in { padding-top:34px; padding-bottom:32px; } .ghero .in { min-height:420px; padding-bottom:28px; } .ghero::before { background:linear-gradient(transparent 20%,rgba(0,0,0,.9)); } .ghero .gi img { width:68px; height:68px; border-radius:16px; } .ptabs a, .ptabs button { font-size:15px; padding:14px 10px; } }

/* 공용 버튼(게임 머리·배너에서 같이 씀) */
.btns { display:flex; gap:8px; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; text-decoration:none; font-weight:700; font-size:14px; padding:11px 20px; border-radius:999px; color:#fff; white-space:nowrap; border:0; cursor:pointer; font-family:inherit; }
.btn.info { background:var(--accent); } .btn.gp { background:#fff; color:#1c1e23; } .btn.as { background:#1c1e23; color:#fff; border:1px solid rgba(255,255,255,.35); }
.btn.soon { background:rgba(0,0,0,.45); border:1px solid #f0b429; color:#ffd36b; }
.btn:hover { filter:brightness(1.08); }
.phero .pmeta { margin:10px 0 0; color:rgba(255,255,255,.7); font-size:14px; }
@media (max-width:640px){ .ghero .crumb { display:none; } }
