/* ════════════════════════════════════════════════════════════════════════
   메인 (2026-10-22 2차 «소대 색띠») — 첫 화면은 게임 «캐릭터 선택» 화면 구성 그대로:
   왼쪽 위 게임 글씨 제목 · 다섯 사선 띠 · 띠 위에 줄 선 소대원 · 바닥에 남색 로그인 띠
   ════════════════════════════════════════════════════════════════════════ */

/* ── 첫 화면 ──────────────────────────────────────────────────────── */
.hero { position: relative; height: 640px; overflow: hidden; isolation: isolate; background: #fff; }
.hero-bands { position: absolute; top: -2px; bottom: -2px; left: -16%; right: -20%; display: flex; gap: 14px; transform: skewX(-24deg); z-index: -2; }
.hero-bands i { flex: 1; background-size: 76px 76px; animation: band-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-bands .b-lime { background-color: var(--lime); background-image: var(--pat-lime); }
.hero-bands .b-blue { background-color: var(--blue); background-image: var(--pat-blue); animation-delay: 0.06s; }
.hero-bands .b-pink { background-color: var(--pink); background-image: var(--pat-pink); animation-delay: 0.12s; }
.hero-bands .b-yellow { background-color: var(--yellow); background-image: var(--pat-yellow); animation-delay: 0.18s; }
.hero-bands .b-teal { background-color: var(--teal); background-image: var(--pat-teal); animation-delay: 0.24s; }
@keyframes band-in { from { transform: translateY(-101%); } }

.hero-in { position: relative; z-index: 2; padding-top: 42px; }
.hero-title { margin: 0; font-size: 58px; line-height: 1.18; animation: title-in 0.5s 0.25s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.hero-title span + span { margin-left: 0.3em; }
.hero-sub { display: inline-block; max-width: 640px; margin: 16px 0 0; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink); color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.6; animation: title-in 0.5s 0.35s ease both; }
@keyframes title-in { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }

/* 소대원 줄 — 1180px 무대를 화면 폭에 맞춰 통째로 줄인다(그림은 원본 크기 그대로라 선명) */
.hero-cast { position: absolute; left: 50%; bottom: 84px; z-index: 1; width: 1180px; height: 430px; transform: translateX(-50%); transform-origin: 50% 100%; pointer-events: none; }
.hero-cast img { position: absolute; animation: cast-in 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.hero-cast .c-kt { left: 0; bottom: 28px; animation-delay: 0.45s; }
.hero-cast .c-gi { left: 548px; bottom: -6px; animation-delay: 0.57s; }
.hero-cast .c-ku { left: 790px; bottom: 34px; animation-delay: 0.69s; }
.hero-cast .c-do { left: 1012px; bottom: 6px; animation-delay: 0.81s; }
@keyframes cast-in { from { opacity: 0; transform: translateY(-46px); } }

/* ── 로그인 띠(옛 공식 사이트의 «게임 시작 + 로그인» 띠) ─────────────── */
.loginbar-wrap { position: relative; z-index: 5; margin-top: -84px; }
.loginbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 16px 24px 16px 18px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: 0 6px 0 rgba(11, 22, 89, 0.22); }
/* 게임 시작 = 옛 공식 홈페이지의 노란 장난감 총. 띠 위아래로 삐져나온다(손잡이는 띠 아래로 늘어진다).
   마우스를 올리면: 1.2초마다 «탕» — 몸통이 뒤로 튀고(반동) 총구에 불꽃 · 다이얼이 돌아간다. 누르면 한 번 더 세게. */
.gamestart { position: relative; display: block; flex: none; width: 258px; height: 70px; margin-left: 2px; border-radius: 14px; }
.gamestart .gs { position: absolute; left: -30px; bottom: -32px; width: 300px; height: auto; overflow: visible; filter: drop-shadow(0 5px 0 rgba(3, 8, 40, 0.45)); transform-origin: 72% 78%; }
.gamestart .gs-flash { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); }
.gamestart .gs-knob { transform-box: fill-box; transform-origin: center; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.gamestart:hover .gs, .gamestart:focus-visible .gs { animation: gs-fire 1.2s ease-out infinite; }
.gamestart:hover .gs-flash, .gamestart:focus-visible .gs-flash { animation: gs-flash 1.2s ease-out infinite; }
.gamestart:hover .gs-knob, .gamestart:focus-visible .gs-knob { transform: rotate(120deg); }
.gamestart:active .gs { animation: gs-kick 0.28s ease-out; }
.gamestart:active .gs-flash { animation: gs-flash-big 0.28s ease-out; }
.gamestart:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@keyframes gs-fire {
	0% { transform: translate(0, 0) rotate(0deg); }
	6% { transform: translate(10px, -3px) rotate(5deg); }
	20% { transform: translate(-3px, 1px) rotate(-1.5deg); }
	32% { transform: translate(1px, 0) rotate(0.5deg); }
	44%, 100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes gs-flash {
	0% { opacity: 1; transform: scale(0.35) rotate(0deg); }
	8% { opacity: 1; transform: scale(1.2) rotate(18deg); }
	24% { opacity: 0; transform: scale(1.55) rotate(30deg); }
	100% { opacity: 0; transform: scale(0.2); }
}
@keyframes gs-kick { 0% { transform: translate(0, 0); } 30% { transform: translate(14px, -4px) rotate(7deg); } 100% { transform: translate(0, 0); } }
@keyframes gs-flash-big { 0% { opacity: 1; transform: scale(0.5); } 40% { opacity: 1; transform: scale(1.6) rotate(25deg); } 100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) {
	.gamestart:hover .gs, .gamestart:focus-visible .gs, .gamestart:active .gs { animation: none; transform: scale(1.03); }
	.gamestart:hover .gs-flash, .gamestart:focus-visible .gs-flash { animation: none; opacity: 1; transform: scale(1); }
}
.lb-form { min-width: 0; }
.lb-row { display: flex; align-items: center; gap: 8px; }
.lb-field input { width: 200px; height: 44px; padding: 0 18px; border: 2px solid #fff; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; }
.lb-field input::placeholder { color: #9aa0bf; font-weight: 400; }
.lb-field input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.lb-go { height: 44px; border-color: #fff; box-shadow: 0 3px 0 #050a2e; }
.lb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: #c9cfee; }
.lb-links a:hover { color: #fff; text-decoration: underline; }
.lb-links .ck { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lb-links .ck input { width: 15px; height: 15px; accent-color: var(--lime); }
.lb-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.me-av { width: 48px; height: 48px; border-color: #fff; font-size: 21px; }
.me-tx { margin: 0 6px 0 0; font-size: 15px; color: #dfe3f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-tx b { font-family: var(--font-display); font-weight: normal; font-size: 21px; color: var(--yellow); }
.lb-me .btn-white { border-color: #fff; box-shadow: 0 3px 0 #050a2e; }
.lb-out { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.lb-out:hover { border-color: #fff; }
.lb-live { display: flex; align-items: center; gap: 8px; margin: 0; padding-left: 20px; border-left: 2px dashed rgba(255, 255, 255, 0.25); font-size: 14px; color: #dfe3f6; white-space: nowrap; }
.lb-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(195, 227, 21, 0.3); }
.lb-live b { font-family: var(--font-display); font-weight: normal; font-size: 19px; color: var(--lime); }
.lb-live a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── 아래 내용 ────────────────────────────────────────────────────── */
.home-main { padding-top: 36px; }
.row { display: grid; gap: 24px; }
.r1 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.r2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: 36px; }
/* 2026-10-24 왼쪽 칸 = 게임소식(글 길이만큼) + 서버 상태(남는 높이를 채운다) */
.r1-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.r1-left .news { flex: 0 0 auto; }
.srv { flex: 1 1 auto; display: flex; flex-direction: column; }
.srv .srv-tick { color: var(--ink-3); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.srv-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 2px 22px 18px; }
.srv-state { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-size: 27px; line-height: 1.25; color: var(--ink); }
.srv-state b { font-weight: normal; }
.srv-state i { flex: none; width: 20px; height: 20px; border: 3px solid var(--ink); border-radius: 50%; background: var(--line); }
.srv-body[data-state="ok"] .srv-state i { background: var(--lime-d); animation: srv-pulse 2.4s ease-out infinite; }
.srv-body[data-state="maint"] .srv-state i { background: var(--orange); }
.srv-body[data-state="down"] .srv-state i { background: var(--red); }
@keyframes srv-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 163, 8, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(127, 163, 8, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 163, 8, 0); } }
.srv-desc { margin: 6px 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.srv-nums { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.srv-nums div { min-width: 132px; padding: 10px 16px 8px; border: 2px solid var(--ink); border-radius: 14px; background: var(--mist); }
.srv-body[data-state="ok"] .srv-nums div:first-child { background: var(--lime-l); }
.srv-body[data-state="maint"] .srv-nums div:first-child { background: var(--yellow-l); }
.srv-nums dt { color: var(--ink-2); font-size: 12.5px; font-weight: 800; }
.srv-nums dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.srv-nums dd b { margin-right: 3px; font-family: var(--font-display); font-weight: normal; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.srv-body[data-state="down"] .srv-nums, .srv-body[data-state="unknown"] .srv-nums, .srv-body[data-state="loading"] .srv-nums { display: none; }
.srv-char { align-self: end; width: auto; height: auto; max-width: 150px; max-height: 150px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .srv-body[data-state="ok"] .srv-state i { animation: none; } }

.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 4px; }
.seg button { height: 32px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 800; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.seg button:hover { border-color: var(--ink); color: var(--ink); }
.seg button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 게임소식 */
.news-list { list-style: none; margin: 0; padding: 4px 20px 16px; }
.news-list li + li { border-top: 1px dashed var(--line); }
.news-list a { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 2px; }
.news-list a:hover .tt { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.news-list .tag { justify-self: start; }
.news-list .tt { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list .new { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.news-list .dt { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* 계급 랭킹 */
.rank-list { list-style: none; margin: 0; padding: 12px 20px 4px; display: grid; gap: 3px; }
.rank-list li:not(.empty) { display: grid; grid-template-columns: 34px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
/* 계급장(게임 원본) — 28×24 칸에 맞춘다 */
.mr { width: 28px; height: 24px; object-fit: contain; }
.mr-none { display: inline-block; }
/* 내 순위 — 랭킹 표 바로 아래, 남색 테두리 띠 */
.rank-me { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 10px 20px 0; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow-l); font-size: 14px; }
.rank-me:empty { display: none; }
.rank-me .rm-lb { flex: none; padding: 1px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.rank-me .rm-pos { flex: none; font-family: var(--font-display); font-weight: normal; font-size: 20px; }
.rank-me .rm-nk { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-me .rm-tx { flex: 1; min-width: 0; color: var(--ink-2); font-weight: 700; }
.rank-me .rm-go { flex: none; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 13px; }
.rank-me .rm-go:hover { background: var(--lime); }
.rank-me .rk { flex: none; padding: 1px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rank-list li:nth-child(odd):not(.empty) { background: var(--mist); }
.rank-list .pos { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-family: var(--font-display); font-size: 16px; }
.rank-list li:nth-child(1) .pos { background: var(--yellow); }
.rank-list li:nth-child(2) .pos { background: #dfe4ee; }
.rank-list li:nth-child(3) .pos { background: #f3c79a; }
.rank-list .nk { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .rk { padding: 1px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink-l); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rank-foot { margin: 8px 20px 16px; color: var(--ink-3); font-size: 12.5px; }

/* 맵 선반 */
.maps { margin-top: 44px; padding: 26px 0 26px; background: var(--mist); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.maps-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.maps-h h2 { margin: 0; font-family: var(--font-display); font-weight: normal; font-size: 29px; line-height: 1.2; }
.maps-nav { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.round svg { width: 20px; height: 20px; }
.round:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.map-shelf { list-style: none; display: flex; gap: 14px; margin: 14px 0 0; padding: 4px max(16px, calc((100vw - 1180px) / 2)) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, calc((100vw - 1180px) / 2)); scrollbar-width: none; }
.map-shelf::-webkit-scrollbar { display: none; }
.map-shelf:focus-visible { outline-offset: -3px; }
.map-shelf li { flex: none; width: 216px; scroll-snap-align: start; }
.map-shelf img { width: 216px; height: 216px; transition: transform 0.2s; }
.map-shelf li:hover img { transform: translateY(-4px); }

/* 거래 시세 */
.price-list, .trade-list { list-style: none; margin: 0; padding: 8px 20px 18px; }
.price-list li:not(.empty), .trade-list li:not(.empty) { display: grid; align-items: center; gap: 12px; padding: 9px 2px; }
.price-list li + li, .trade-list li + li { border-top: 1px dashed var(--line); }
.price-list li:not(.empty) { grid-template-columns: 24px 46px minmax(0, 1fr) auto; }
.price-list .no { font-family: var(--font-display); font-size: 18px; color: var(--ink-3); text-align: center; }
.price-list li:nth-child(-n+3) .no { color: var(--orange-d); }
.ic { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.ic img { width: 40px; height: 40px; }
.nm { min-width: 0; }
.nm b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm span { margin-right: 8px; color: var(--ink-3); font-size: 12.5px; }
.pr { font-family: var(--font-display); font-size: 19px; color: var(--orange-d); white-space: nowrap; text-align: right; }
.pr small { margin-left: 2px; font-family: var(--font-body); font-size: 12px; color: var(--ink-3); }
.trade-list li:not(.empty) { grid-template-columns: 46px minmax(0, 1fr) auto; }
.trade-list .am { text-align: right; font-size: 14px; font-weight: 800; white-space: nowrap; }
.trade-list .am span { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }

/* 커뮤니티 */
.commu-list { list-style: none; margin: 0; padding: 14px 20px 4px; display: grid; gap: 12px; }
.commu-list .cl { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 10px; }
.commu-list .bubble { min-width: 0; padding: 8px 13px 9px; border: 2px solid var(--ink); border-radius: 14px; border-top-left-radius: 4px; background: #fff; transition: background 0.15s; }
.commu-list .cl:hover .bubble { background: var(--blue-l); }
.commu-list .hd { display: flex; align-items: baseline; gap: 8px; color: var(--ink-3); font-size: 12px; }
.commu-list .hd b { color: var(--ink); font-size: 13.5px; }
.commu-list .bd { color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan-h { margin: 18px 20px 8px; font-family: var(--font-display); font-weight: normal; font-size: 17px; color: var(--ink-2); }
.chan-list { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chan-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; transition: border-color 0.15s, background 0.15s; }
.chan-list a:hover { border-color: var(--ink); background: var(--blue-l); }
.chan-list .hash { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: var(--blue); color: #fff; font-family: var(--font-display); font-size: 15px; }
.chan-list b { display: block; font-size: 14px; }
.chan-list small { display: block; overflow: hidden; color: var(--ink-3); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

/* ── 작은 화면 ────────────────────────────────────────────────────── */
@media (max-width: 1240px) { .hero-cast { transform: translateX(-50%) scale(0.86); } }
@media (max-width: 1100px) {
	.r1, .r2 { grid-template-columns: 1fr; }
	.loginbar { grid-template-columns: auto minmax(0, 1fr); }
	.lb-live { grid-column: 1 / -1; padding: 10px 0 0; border-left: 0; border-top: 2px dashed rgba(255, 255, 255, 0.2); }
	.hero-cast { transform: translateX(-50%) scale(0.74); }
}
@media (max-width: 820px) {
	.hero { height: 560px; }
	.hero-title { font-size: 42px; }
	.hero-title span { display: block; }
	.hero-title span + span { margin-left: 0; }
	.hero-sub { font-size: 14px; }
	.hero-cast { bottom: 80px; transform: translateX(-50%) scale(0.56); }
	.loginbar { grid-template-columns: 1fr; padding: 34px 16px 16px; }
	.gamestart { justify-self: center; margin: 0 0 18px; }
	.lb-row { flex-wrap: wrap; }
	.lb-field { flex: 1 1 140px; }
	.lb-field input { width: 100%; }
}
@media (max-width: 520px) {
	.hero { height: 520px; }
	.hero-title { font-size: 34px; }
	.hero-cast { transform: translateX(-50%) scale(0.42); }
	.news-list a { grid-template-columns: minmax(0, 1fr) auto; }
	.news-list .tag { grid-column: 1 / -1; }
	.maps-h h2 { font-size: 23px; }
	.srv-body { grid-template-columns: minmax(0, 1fr); }
	.srv-char { display: none; }
	.srv-state { font-size: 23px; }
	.srv .srv-tick { display: none; }
}
