:root {
  --bg: #0d1525;
  --bg2: #111b2f;
  --panel: #16213a;
  --panel2: #1c2a47;
  --line: #26365a;
  --text: #e9eef8;
  --muted: #95a3bf;
  --orange: #ff9a1f;
  --yellow: #ffd24a;
  --cream: #fff3d6;
  --ink: #3d1f0a;
  --blue: #4a7fe0;
  --green: #35a04a;
  --red: #e0524f;
  --purple: #8f63e0;
  --teal: #2fb3a6;
  --radius: 14px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.pixel { image-rendering: pixelated; }

/* 머리 */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 21, 37, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand .stage { font-size: 11px; font-weight: 900; letter-spacing: 1px; color: #fff; background: var(--red); border-radius: 6px; padding: 1px 7px; }
.nav { display: flex; gap: 6px; margin-left: 24px; }
.nav a { padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--panel); }
.top .spacer { flex: 1; }
.btn-start {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0;
  padding: 10px 18px; border-radius: 12px; font-weight: 900; color: #3a1d00;
  background: linear-gradient(180deg, #ffd65c, #ff9a1f);
  box-shadow: 0 3px 0 #b8600a, 0 6px 16px rgba(255, 154, 31, .25);
  transition: transform .12s;
}
.btn-start:hover { transform: translateY(-1px); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 38px; font-size: 18px; cursor: pointer; }

/* 배너 */
.hero { position: relative; max-width: 1600px; margin: 0 auto; background: #081020; overflow: hidden; }
.hero .slides { display: flex; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero .slide { flex: 0 0 100%; aspect-ratio: 1600 / 560; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .ctrl { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(8, 16, 32, .55); padding: 6px 10px; border-radius: 99px; }
.hero .dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .45); border: 0; padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.hero .dot.on { width: 26px; background: var(--yellow); }
.hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 99px; border: 0; background: rgba(8, 16, 32, .5); color: #fff; font-size: 20px; cursor: pointer; }
.hero .arrow.prev { left: 14px; }
.hero .arrow.next { right: 14px; }

/* 판 */
.section { padding: 36px 0 8px; }
.section h2 { font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.section h2 .more { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 700; }
.section h2 .more:hover { color: var(--text); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* 소식 목록 */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.tabs button.on { color: var(--text); background: var(--panel2); }
.news { list-style: none; margin: 0; padding: 0; }
.news li a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.news li:last-child a { border-bottom: 0; }
.news li a:hover .t { color: var(--yellow); }
.news .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.news .d { color: var(--muted); font-size: 13px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.news .new { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 900; color: #fff; background: var(--red); border-radius: 4px; padding: 0 4px; vertical-align: 2px; }
.cat { flex-shrink: 0; font-size: 12px; font-weight: 900; padding: 2px 9px; border-radius: 7px; color: #fff; }
.news .cat { min-width: 68px; text-align: center; }
.cat.notice { background: var(--blue); }
.cat.patch { background: var(--orange); color: #3a1d00; }
.cat.event { background: var(--green); }
.cat.sanction { background: var(--red); }
.cat.policy { background: var(--purple); }
.cat.qna { background: var(--teal); }
.empty { color: var(--muted); padding: 18px 4px; }

/* 게임 시작 상자 */
.start-card {
  display: block; border-radius: var(--radius); padding: 22px; color: #3a1d00;
  background: linear-gradient(140deg, #ffe07a 0%, #ffad3a 55%, #ff8a1f 100%);
  box-shadow: 0 10px 28px rgba(255, 138, 31, .25);
  position: relative; overflow: hidden;
}
.start-card .k { font-size: 12px; font-weight: 900; opacity: .75; }
.start-card .big { font-size: 30px; font-weight: 900; letter-spacing: .5px; line-height: 1.2; margin: 4px 0 2px; }
.start-card .s { font-weight: 700; font-size: 14px; }
.start-card .play { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 99px; background: rgba(255, 255, 255, .85); display: grid; place-items: center; font-size: 20px; }
.start-card:hover { filter: brightness(1.04); }
.side-links { margin-top: 12px; }
.side-links a { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--text); }
.world-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.world-info div { background: var(--panel2); border-radius: 10px; padding: 10px; text-align: center; }
.world-info b { display: block; font-size: 15px; }
.world-info span { font-size: 12px; color: var(--muted); }

/* 배율 */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rate { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, #fff6df, #f3dfb4); color: var(--ink); border: 3px solid #8b5a2b; border-radius: 16px; padding: 14px 18px; }
.rate img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.rate .l { font-weight: 900; font-size: 17px; }
.rate .v { margin-left: auto; font-size: 28px; font-weight: 900; color: #d0661a; text-shadow: 0 2px 0 #fff, 0 3px 0 rgba(107, 52, 16, .35); }

/* 특징 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .2s; }
.feature:hover { transform: translateY(-3px); }
.feature img { width: 100%; aspect-ratio: 892 / 500; object-fit: cover; }
.feature .cap { padding: 12px 16px; }
.feature .cap b { display: block; }
.feature .cap span { color: var(--muted); font-size: 14px; }

/* 바로가기 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick a { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s; }
.quick a:hover { border-color: var(--yellow); background: var(--panel2); }
.quick a.off { opacity: .55; pointer-events: none; }
.quick .ic { font-size: 22px; }
.quick b { font-size: 16px; }
.quick span { color: var(--muted); font-size: 13px; }

/* 바닥 */
.foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg2); position: relative; }
.mobs { height: 86px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent 70%, rgba(80, 140, 60, .25)); }
.mobs img { position: absolute; bottom: 6px; image-rendering: pixelated; animation: walk linear infinite; }
@keyframes walk { from { transform: translateX(-140px) scaleX(-1); } to { transform: translateX(calc(100vw + 140px)) scaleX(-1); } }
.foot .wrap { padding: 26px 16px 40px; color: var(--muted); font-size: 13px; }
.foot .links { display: flex; gap: 14px; margin-bottom: 10px; }
.foot .links a { color: var(--text); font-weight: 700; }
.foot p { margin: 4px 0; }

/* 소식 페이지 · 글 */
.page-head { padding: 34px 0 6px; }
.page-head h1 { margin: 0; font-size: 28px; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-top: 18px; }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.post-head h1 { font-size: 24px; margin: 8px 0 4px; line-height: 1.35; }
.post-head .d { color: var(--muted); font-size: 13px; }
.md { font-size: 15.5px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.md h2 { font-size: 22px; margin: 22px 0 10px; color: var(--yellow); }
.md h3 { font-size: 18px; margin: 20px 0 8px; color: #8fb4ff; }
.md h4 { font-size: 16px; margin: 16px 0 6px; }
.md p { margin: 6px 0; }
.md .li { position: relative; padding-left: 18px; margin: 3px 0; }
.md .li::before { content: '•'; position: absolute; left: 4px; color: var(--muted); }
.md .li.l1 { margin-left: 20px; }
.md .li.l2 { margin-left: 40px; }
.md .li.l3 { margin-left: 60px; }
.md .li.num::before { content: none; }
.md .cont { margin-left: 38px; margin-top: 2px; }
.md .small { font-size: 13px; color: var(--muted); }
.md blockquote { margin: 8px 0; padding: 6px 14px; border-left: 3px solid var(--blue); color: #a9c4ff; background: rgba(74, 127, 224, .08); border-radius: 0 8px 8px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.md code { background: var(--panel2); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.md a { color: var(--yellow); text-decoration: underline; }
.md table { border-collapse: collapse; margin: 10px 0; width: 100%; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md th { background: var(--panel2); }
.md .gap { height: 8px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.post-nav a { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.post-nav a:hover { color: var(--text); }
.post-nav a b { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-nav .next { text-align: right; }
.crumb { color: var(--muted); font-size: 13px; padding-top: 22px; }
.crumb a:hover { color: var(--text); }

/* 가이드 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; right: 16px; top: 10px; font-size: 40px; font-weight: 900; color: var(--panel2); }
.step b { display: block; font-size: 17px; margin-bottom: 6px; }
.step span { color: var(--muted); font-size: 14px; }
.guide-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; margin-bottom: 22px; }
.guide-feature img { border-radius: var(--radius); border: 1px solid var(--line); }
.guide-feature h3 { margin: 0 0 8px; font-size: 20px; }
.guide-feature p { color: var(--muted); margin: 4px 0; }
.guide-feature ul { margin: 8px 0 0; padding-left: 18px; color: var(--text); }

@media (max-width: 960px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .guide-feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px; margin: 0; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .btn-start { padding: 8px 12px; font-size: 14px; }
  .btn-start .lg { display: none; }
  .brand img { height: 38px; }
  .top .wrap { gap: 10px; }
  .hero .arrow { display: none; }
  .hero .ctrl { bottom: 6px; padding: 4px 8px; }
  .features, .rates, .steps { grid-template-columns: minmax(0, 1fr); }
  .box { padding: 16px 14px; }
  .news li a { gap: 8px; align-items: flex-start; }
  .news .t { white-space: normal; line-height: 1.45; }
  .news .d { font-size: 12px; padding-top: 2px; }
  .post { padding: 18px 16px; }
  .section h2 { font-size: 19px; }
}
