/* 홈페이지 공통 모양 (Pages/_Layout.cshtml, 2026-10-25). 남색 게임 테마 + 금색 강조. 관리자 화면 (/admin) 은 쓰지 않는다. */
:root {
    --bg: #071028; --bg2: #0b1838;
    --panel: #11265a; --panel2: #0c1c45; --line: rgba(130, 170, 255, .2); --line2: rgba(130, 170, 255, .32);
    --fg: #eaf0ff; --muted: #a8b6da; --link: #8fcaff;
    --brand: #2f7bff; --gold: #ffc53d; --gold2: #ff9b1f; --gold-fg: #251600;
    --ok: rgba(46, 196, 128, .14); --okfg: #9ff0c6; --okline: rgba(46, 196, 128, .45);
    --err: rgba(240, 82, 96, .15); --errfg: #ffb8bf; --errline: rgba(240, 82, 96, .5);
    --warn: rgba(255, 197, 61, .12); --warnfg: #ffdc8f; --warnline: rgba(255, 197, 61, .45);
    --display: "Black Han Sans", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --radius: 14px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
    font-size: 15px; line-height: 1.65; color: var(--fg); word-break: keep-all; overflow-wrap: anywhere;
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.6px),
        radial-gradient(1100px 520px at 50% -160px, #1d4296 0%, rgba(29, 66, 150, 0) 70%),
        linear-gradient(180deg, var(--bg2), var(--bg) 640px);
    background-size: 14px 14px, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #c3e3ff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- 머리 줄 */
header.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(5, 12, 34, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand .brand-logo { display: block; height: 40px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand .tag { font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255, 197, 61, .5); border-radius: 999px; padding: 0 7px; line-height: 18px; }
nav.menu { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.menu::-webkit-scrollbar { display: none; }
nav.menu a {
    position: relative; color: #c9d6f5; text-decoration: none; padding: 8px 13px; border-radius: 10px;
    font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s;
}
nav.menu a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
nav.menu a.on { color: #fff; }
nav.menu a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #c9d6f5; white-space: nowrap; }
.who > span { color: #fff; font-weight: 700; }
.who button { background: transparent; border: 1px solid var(--line2); color: #dbe6ff; padding: 4px 11px; font-size: 13px; box-shadow: none; }
.who button:hover { background: rgba(255, 255, 255, .08); transform: none; }

/* ---------------------------------------------------------------- 본문 */
main.wrap { flex: 1; padding-top: 26px; padding-bottom: 48px; }
h1 { font-size: 26px; line-height: 1.35; margin: 0 0 16px; font-weight: 800; color: #fff; letter-spacing: -.2px; }
h2 { font-size: 19px; line-height: 1.4; margin: 0 0 12px; font-weight: 800; color: #fff; }
h3 { font-size: 16px; margin: 18px 0 6px; color: #e3ebff; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 22px; }
li { margin: 2px 0; }
b, strong { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card {
    position: relative; background: linear-gradient(180deg, rgba(24, 52, 118, .92), rgba(13, 29, 70, .94));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card > :last-child { margin-bottom: 0; }
.card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-bottom: 18px; }
.grid > .card { margin-bottom: 0; }
.msg { padding: 11px 15px; border-radius: 12px; margin-bottom: 18px; border: 1px solid transparent; font-weight: 600; }
.msg.ok { background: var(--ok); color: var(--okfg); border-color: var(--okline); }
.msg.err { background: var(--err); color: var(--errfg); border-color: var(--errline); }
.note { background: var(--warn); color: var(--warnfg); border: 1px solid var(--warnline); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- 단추·입력 */
button, .btn {
    font: inherit; font-weight: 800; color: var(--gold-fg); border: 0; border-radius: 10px; padding: 8px 16px; cursor: pointer;
    display: inline-block; text-decoration: none; line-height: 1.4; text-align: center;
    background: linear-gradient(180deg, #ffd768, var(--gold) 45%, var(--gold2));
    box-shadow: 0 4px 14px rgba(255, 155, 31, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .12s, filter .12s, box-shadow .12s;
}
button:hover, .btn:hover { color: var(--gold-fg); filter: brightness(1.06); transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0); }
button.sub, .btn.sub { background: rgba(255, 255, 255, .04); color: #d5e8ff; border: 1px solid rgba(143, 202, 255, .55); box-shadow: none; }
button.sub:hover, .btn.sub:hover { background: rgba(143, 202, 255, .12); color: #fff; }
button.danger, .btn.danger { background: linear-gradient(180deg, #f2646b, #d33a43); color: #fff; box-shadow: 0 4px 14px rgba(211, 58, 67, .3); }
button.link { background: none; color: var(--link); padding: 0; border: 0; font-weight: 700; box-shadow: none; }
button.link:hover { transform: none; text-decoration: underline; }
label { font-weight: 700; font-size: 14px; color: #dce6ff; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
    font: inherit; color: var(--fg); width: 100%; max-width: 100%; background: #0a1735;
    border: 1px solid #2c4a8e; border-radius: 10px; padding: 9px 11px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
::placeholder { color: #7f92bf; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 197, 61, .7); outline-offset: 0; border-color: var(--gold); }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row > input, .row > select { flex: 1 1 160px; width: auto; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }

/* ---------------------------------------------------------------- 목록·표시 */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.list > li:first-child { border-top: 0; }
.list .main { flex: 1 1 220px; min-width: 0; }
.list button, .list .btn { padding: 4px 11px; font-size: 13px; }
.gname { display: inline-block; padding: 0 9px; border-radius: 7px; background: #050a1c; border: 1px solid rgba(255, 255, 255, .12); font-weight: 800; line-height: 1.6; }
.badge { display: inline-block; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d3ddf7; font-size: 12px; font-weight: 700; vertical-align: 1px; line-height: 1.7; }
.badge.master { background: rgba(255, 170, 40, .2); color: #ffcf7a; }
.badge.officer { background: rgba(90, 160, 255, .22); color: #b3d4ff; }
.badge.pin { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--gold-fg); }
.badge.gone { background: rgba(255, 255, 255, .06); color: #8a99bf; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 14px; }
dl.info dt { color: var(--muted); } dl.info dd { margin: 0; }
.big { font-size: 24px; font-weight: 900; color: var(--gold); }
kbd { display: inline-block; min-width: 1.7em; text-align: center; padding: 0 6px; border: 1px solid #3c5ca6; border-bottom-width: 3px; border-radius: 6px;
      background: #0a1735; color: #fff; font-family: inherit; font-size: 13px; }
code { background: rgba(255, 255, 255, .09); color: #ffe3a3; padding: 1px 6px; border-radius: 5px; font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.toc a { background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: #d5e8ff; border-radius: 999px; padding: 4px 13px; text-decoration: none; font-size: 14px; font-weight: 600; }
.toc a:hover { background: rgba(143, 202, 255, .14); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; font-weight: 400; }
.swatches span { display: inline-block; min-width: 30px; padding: 2px 4px; border-radius: 6px; text-align: center; font-size: 12px; color: #000; border: 1px solid #000; }
.pre { white-space: pre-wrap; }

/* 계급 그림 (newrank.i16 22장, 12×12 → 2배). style="--g:계급" */
.rk { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle;
      background: url(rank.png) no-repeat; background-size: 528px 24px; background-position: calc(var(--g, 20) * -24px) 0; image-rendering: pixelated; }

/* ---------------------------------------------------------------- 홈 첫 화면 */
/* 그림 (2:1, 로고가 위 가운데) 을 넓게 깔고 아래쪽에 글 · 단추를 얹는다. 로고가 잘리지 않게 위 기준으로 자른다. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b1838;
        min-height: clamp(420px, 46vw, 700px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none;
               background: linear-gradient(180deg, rgba(7, 16, 40, 0), rgba(7, 16, 40, .72) 55%, rgba(7, 16, 40, .94)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 34px; }
.hero-body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-body .lead { text-shadow: 0 2px 6px rgba(0, 0, 0, .8); margin-left: auto; margin-right: auto; }
.hero-body .cta, .hero-body .servers { justify-content: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--gold); background: rgba(255, 197, 61, .1);
          border: 1px solid rgba(255, 197, 61, .4); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1.08; margin: 0 0 14px; letter-spacing: .5px;
           text-shadow: 0 4px 0 rgba(3, 10, 35, .55), 0 0 30px rgba(80, 160, 255, .35); }
.hero h1 .blue { color: #5cc3ff; background: linear-gradient(180deg, #a9e4ff, #3a9dff 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
                 text-shadow: none; filter: drop-shadow(0 4px 0 rgba(3, 10, 35, .55)) drop-shadow(0 0 14px rgba(80, 160, 255, .4)); }
.hero .lead { font-size: 17px; color: #d3def8; max-width: 30em; margin-bottom: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn.lg { font-size: 18px; padding: 13px 26px; border-radius: 12px; }
.servers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.servers li { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #d3def8; background: rgba(5, 12, 34, .55);
              border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7898; flex: none; }
.dot.on { background: #3ee08f; box-shadow: 0 0 0 3px rgba(62, 224, 143, .2), 0 0 10px rgba(62, 224, 143, .7); }

/* 바로 가기 카드 */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: -6px 0 26px; }
.quick a.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fg); padding: 18px; border-radius: var(--radius);
                background: linear-gradient(180deg, rgba(27, 58, 130, .95), rgba(13, 29, 70, .95)); border: 1px solid var(--line);
                box-shadow: 0 12px 28px rgba(0, 0, 0, .3); transition: transform .15s, border-color .15s, box-shadow .15s; min-width: 0; }
.quick a.tile:hover { transform: translateY(-3px); border-color: rgba(255, 197, 61, .6); box-shadow: 0 16px 34px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 197, 61, .25); }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-fg);
             background: linear-gradient(180deg, #ffd768, var(--gold2)); box-shadow: 0 6px 16px rgba(255, 155, 31, .3); }
.tile .ico.b { color: #fff; background: linear-gradient(180deg, #62b6ff, #2f6fe8); box-shadow: 0 6px 16px rgba(47, 111, 232, .35); }
.tile .ico svg { width: 22px; height: 22px; }
.tile strong { font-size: 17px; font-weight: 800; }
.tile span.d { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tile .go { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--gold); }

/* 섹션 제목 */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.sec-title h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0; letter-spacing: .3px; }
.sec-title h2::before { content: ""; display: inline-block; width: 6px; height: 20px; margin-right: 10px; vertical-align: -2px; border-radius: 3px;
                        background: linear-gradient(180deg, var(--gold), var(--gold2)); }
.sec-title a { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- 순위표 */
.ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.ranks > .card { margin-bottom: 0; padding: 18px 18px 10px; }
.ranks .card h3 { margin: 0 0 8px; font-size: 17px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rank th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.rank td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rank tr:last-child td { border-bottom: 0; }
table.rank tbody tr:hover td { background: rgba(255, 255, 255, .035); }
table.rank tr.me td { background: rgba(255, 197, 61, .1); }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rank .c { text-align: center; width: 1%; white-space: nowrap; }
table.rank .pl { display: flex; align-items: center; gap: 8px; min-width: 0; }
table.rank .pl .n { font-weight: 800; color: #fff; min-width: 0; overflow-wrap: anywhere; }
table.rank .sub { display: block; font-size: 12px; color: var(--muted); }
table.rank .gname { font-size: 12px; padding: 0 6px; }
.rnum { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 9px; font-weight: 900; font-size: 14px;
        color: #d7e2ff; background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.rnum.r1 { color: #3a2500; background: linear-gradient(180deg, #ffe27a, #ffb21f); box-shadow: 0 0 12px rgba(255, 190, 40, .5); }
.rnum.r2 { color: #1d2433; background: linear-gradient(180deg, #f3f6fb, #aeb9cc); }
.rnum.r3 { color: #2e1503; background: linear-gradient(180deg, #f2b27a, #c4733a); }
.empty { padding: 18px 4px; text-align: center; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 8px 18px; border-radius: 10px; font-weight: 800; color: #cfdcfa; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tabs a.on { color: var(--gold-fg); background: linear-gradient(180deg, #ffd768, var(--gold2)); border-color: transparent; }

/* 시작 단계 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; margin-bottom: 8px; }
.steps > div { position: relative; padding: 18px 18px 16px 64px; border-radius: var(--radius); background: rgba(10, 23, 55, .7); border: 1px solid var(--line); }
.steps > div::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px;
                       display: grid; place-items: center; font-family: var(--display); font-size: 19px; color: var(--gold-fg);
                       background: linear-gradient(180deg, #ffd768, var(--gold2)); }
.steps strong { display: block; font-size: 16px; margin-bottom: 2px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* 쪽 넘기기 */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.pager a, .pager span { min-width: 36px; padding: 5px 10px; border-radius: 9px; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px;
                        border: 1px solid var(--line); color: #cfdcfa; background: rgba(255, 255, 255, .04); }
.pager a:hover { border-color: var(--line2); color: #fff; }
.pager span.on { color: var(--gold-fg); background: linear-gradient(180deg, #ffd768, var(--gold2)); border-color: transparent; }
.pager span.gap { border: 0; background: none; min-width: 0; padding: 5px 2px; }

/* ---------------------------------------------------------------- 길드 게시판 */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.board-head h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { margin: 0; border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts a.p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 6px; text-decoration: none; color: inherit; border-radius: 8px; }
.posts a.p:hover { background: rgba(255, 255, 255, .04); }
.posts li.pinned a.p { background: rgba(255, 197, 61, .07); }
.posts .t { flex: 1 1 260px; min-width: 0; font-weight: 700; color: #fff; }
.posts .cc { color: var(--gold); font-weight: 800; font-size: 13px; margin-left: 4px; }
.posts .m { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-body { font-size: 15.5px; line-height: 1.75; white-space: pre-wrap; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions button, .actions .btn { padding: 5px 12px; font-size: 13px; }
.comments { list-style: none; margin: 0 0 14px; padding: 0; }
.comments > li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.comments > li:first-child { border-top: 0; }
.comments .h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.comments .h b { font-size: 14px; }
.comments .body { white-space: pre-wrap; margin-bottom: 6px; }
.comments .actions button, .comments .actions .btn { padding: 2px 9px; font-size: 12px; }
.count { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------------------------------------------------------------- 바닥 */
footer.foot { border-top: 1px solid var(--line); background: rgba(3, 8, 24, .8); color: var(--muted); font-size: 13px; }
footer.foot .wrap { padding-top: 18px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: #fff; }
footer.foot .logo { font-family: var(--display); color: #cfdcfa; font-size: 15px; }
footer.foot .pub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
footer.foot .pub img { height: 22px; width: auto; vertical-align: middle; margin: 0 5px 0 4px; }

/* ---------------------------------------------------------------- 좁은 화면 */
@media (max-width: 900px) {
    .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
    .ranks { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body { font-size: 14.5px; }
    header.top .wrap { min-height: 0; gap: 0 12px; }
    nav.menu { order: 3; flex-basis: 100%; margin: 0 -8px; }
    nav.menu a { padding: 6px 9px; font-size: 14px; }
    nav.menu a.on::after { left: 9px; right: 9px; bottom: 1px; }
    .who { margin-left: auto; gap: 6px; }
    .who > span { display: none; }
    h1 { font-size: 22px; }
    /* 좁은 화면: 그림은 위에 통째로 (2:1), 글 · 단추는 그 아래 */
    .hero { display: block; min-height: 0; }
    .hero-bg { position: static; height: auto; aspect-ratio: 2 / 1; }
    .hero::after { display: none; }
    .hero .wrap { padding-top: 16px; padding-bottom: 24px; }
    .brand .brand-logo { height: 34px; }
    .hero .lead { font-size: 15.5px; }
    .btn.lg { font-size: 16px; padding: 11px 18px; flex: 1 1 140px; }
    .card { padding: 16px 15px; }
    .ranks > .card { padding: 14px 10px 6px; }
    table.rank td, table.rank th { padding: 6px 5px; }
    .quick { gap: 10px; }
    .quick a.tile { padding: 14px; }
    .tile .ico { width: 36px; height: 36px; }
    .tile strong { font-size: 15.5px; }
    .sec-title h2 { font-size: 21px; }
}
@media (max-width: 400px) {
    .brand .tag { display: none; }
}
