/* janus 브랜드 (coach.januspy.com과 같은 색·글꼴 체계)
   기본은 다크. html[data-theme="light"]이면 라이트. 색은 여기 변수만 고치면 됩니다. */
:root {
  --bg: #000;
  --panel: #0B0B0B;
  --panel-2: #111;
  --line: #1F1F1F;
  --line-2: #333;
  --ink: #F2F2F2;
  --ink-2: #BDBDBD;
  --ink-3: #8C8C8C;
  --accent: #FF7A1A;
  --accent-2: #FF9A4D;
  --accent-tint: rgba(255, 122, 26, .1);
  --on-accent: #000;
  /* 변경 데이터 색: 브랜드 주황과 겹치지 않게 초록 / 분홍빛 빨강 */
  --buff: #3DDC97;
  --buff-tint: rgba(61, 220, 151, .12);
  --nerf: #FF4D6A;
  --nerf-tint: rgba(255, 77, 106, .12);
  --adjust: #8C8C8C;
  --adjust-tint: rgba(140, 140, 140, .14);
  --portrait-bg: #161616;
  --icon-bg: #161616;
  --display: "Pretendard Variable", Pretendard, "Pretendard JP Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: "Pretendard Variable", Pretendard, "Pretendard JP Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* 숫자용. 한글·가나가 섞이면 시스템 고정폭 글꼴 대신 Pretendard 로 */
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, "Pretendard Variable", "Pretendard JP Variable", monospace;
  --gut: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}
html:lang(ja) { --display: "Pretendard JP Variable", "Pretendard JP", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --body: "Pretendard JP Variable", "Pretendard JP", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, "Pretendard JP Variable", "Pretendard Variable", monospace; }
html[data-theme="light"] {
  --bg: #FFF;
  --panel: #FAFAFA;
  --panel-2: #F2F2F2;
  --line: #E8E8E8;
  --line-2: #D0D0D0;
  --ink: #0A0A0A;
  --ink-2: #3D3D3D;
  --ink-3: #6E6E6E;
  --accent: #E8650C;
  --accent-2: #FF7A1A;
  --accent-tint: rgba(232, 101, 12, .09);
  --buff: #0B8A5B;
  --buff-tint: rgba(11, 138, 91, .1);
  --nerf: #D3213F;
  --nerf-tint: rgba(211, 33, 63, .08);
  --adjust: #6E6E6E;
  --adjust-tint: rgba(110, 110, 110, .12);
  --portrait-bg: #EDEDED;
  --icon-bg: #111;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.75 var(--body);
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html:lang(ja) body { word-break: normal; line-break: strict; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

/* ── 머리글 ── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in, .sub-in { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 12px 20px; }
.top-in { min-height: 62px; }
.sub-in { min-height: 46px; border-top: 1px solid var(--line); flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 30px; height: 30px; }
html[data-theme="light"] .brand img { filter: invert(1); }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -.03em; }
.brand small { font-family: var(--mono); font-size: .6rem; letter-spacing: .22em; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: .6rem; line-height: 1.2; }
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; padding: 8px 10px; text-decoration: none; color: var(--ink-3); font-weight: 500; font-size: 14px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -11px; height: 2px; background: var(--accent); }

/* 알약형 선택 버튼 (코칭 사이트의 언어 전환과 같은 모양) */
.pill { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.pill button {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--ink-3);
  transition: color .15s ease, background .15s ease;
}
.pill button:hover { color: var(--ink); }
.pill button[aria-checked="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
#modeSeg button { font-family: var(--mono); font-weight: 700; letter-spacing: .02em; }
#langSeg button { min-width: 34px; padding: 5px 10px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 13px; cursor: pointer; margin-left: auto; }
.toggle:hover { color: var(--ink); }
.toggle input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; color: var(--ink-3); flex: 0 0 auto; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 16px; height: 16px; }

/* ── 검색 ── */
.search { position: relative; flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.search-ico { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 36px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; outline: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--accent); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none; max-height: min(70vh, 460px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.search-list .grp { padding: 8px 10px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.search-list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; }
.search-list [role="option"][aria-selected="true"], .search-list [role="option"]:hover { background: var(--panel-2); }
.search-list img { width: 26px; height: 26px; object-fit: cover; object-position: top; background: var(--portrait-bg); flex: 0 0 auto; }
.search-list .sub { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.search-list .none { padding: 10px; color: var(--ink-3); font-size: 14px; }

/* ── 전체 배치 ── */
.layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 40px; max-width: 1280px; margin: 0 auto; padding: 32px var(--gut) 48px; }
.side { position: sticky; top: 132px; align-self: start; max-height: calc(100vh - 148px); overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.main { min-width: 0; }

/* 작은 라벨 (코칭 사이트의 .tc 모양) */
.label { display: flex; align-items: center; gap: .8rem; margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.label b { color: var(--accent); font-weight: 700; }
/* 한글·일본어는 넓은 자간이 어색해서 본문 글꼴로 좁게 */
html:lang(ko) .label, html:lang(ja) .label,
html:lang(ko) .role-line, html:lang(ja) .role-line,
html:lang(ko) .search-list .grp, html:lang(ja) .search-list .grp { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── 영웅 그리드 ── */
.role-block + .role-block { margin-top: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
.tile { position: relative; display: block; text-decoration: none; text-align: center; padding: 3px 3px 4px; border: 1px solid transparent; }
.tile:hover { background: var(--panel-2); border-color: var(--line); }
.tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--portrait-bg); }
.tile span { display: block; margin-top: 5px; font-size: 11px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.quiet img { filter: grayscale(1) brightness(.6); opacity: .5; }
.tile.quiet span { color: var(--ink-3); }
.tile[aria-current="page"] { border-color: var(--accent); background: var(--accent-tint); }
.tile[aria-current="page"] span { color: var(--ink); font-weight: 700; }
.tile .pip { position: absolute; left: 3px; right: 3px; top: calc(100% - 26px); height: 2px; }
.pip.buff { background: var(--buff); }
.pip.nerf { background: var(--nerf); }
.pip.mixed { background: linear-gradient(90deg, var(--buff) 50%, var(--nerf) 50%); }
.pip.adjust { background: var(--adjust); }

/* ── 카드 (코칭 사이트의 .step 모양: 각진 상자 + 왼쪽 위 주황 막대) ── */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; min-width: 0; }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 2px; background: var(--accent); }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: .45rem; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.chip.season { color: var(--accent); border-color: var(--accent); }
.chip.season::before { background: var(--accent); }
.tally { display: inline-flex; gap: 12px; font-family: var(--mono); font-weight: 700; font-size: 15px; line-height: 1; }
.tally .b { color: var(--buff); }
.tally .n { color: var(--nerf); }
.tally .a { color: var(--adjust); font-weight: 400; }
.links { margin-left: auto; display: flex; gap: 14px; font-size: 12px; }
.links a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.links a:hover { color: var(--ink); border-color: var(--ink); }

/* ── 첫 화면 ── */
.home-hero { padding: 6px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; }
.home-hero > div { flex: 1 1 440px; min-width: 0; }
/* 다음 시즌 D-day */
.season-cd { position: relative; flex: 0 0 auto; min-width: 220px; padding: 18px 22px 16px; background: var(--panel); border: 1px solid var(--line); }
.season-cd::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 2px; background: var(--accent); }
.season-cd p { margin: 0; }
.season-cd .k { font-size: 13px; color: var(--ink-3); }
.season-cd .dday { margin: 4px 0 2px; font-family: var(--mono); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.season-cd .sub { font-size: 13px; color: var(--accent); }
.season-cd .when { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.season-cd .when span { font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.season-cd .src { margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.season-cd.est .dday { color: var(--ink-2); }
.eyebrow { display: flex; align-items: center; gap: .9rem; margin-bottom: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.home-hero h1 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.3; }
html:lang(en) .home-hero h1 { line-height: 1.15; letter-spacing: -.015em; }
.home-hero p { margin: 0; max-width: 40em; color: var(--ink-2); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-grid .wide { grid-column: 1 / -1; }
.home-card h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; font-size: 1.15rem; line-height: 1.5; }
.home-card .label { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: 1.75; }
.home-card .meta { margin: 0 0 14px; color: var(--ink-3); font-size: 13px; }
.home-card .meta a { color: var(--ink-2); }
.big-date { font-family: var(--mono); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line-2); text-decoration: none; font-size: 13px; }
.hero-chip:hover { border-color: var(--ink-3); background: var(--panel-2); }
.hero-chip img { width: 26px; height: 26px; object-fit: cover; object-position: top; background: var(--portrait-bg); }
.hero-chip .tally { font-size: 12px; gap: 6px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; }
.rank a { display: grid; grid-template-columns: 22px 30px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; }
.rank li:first-child a { border-top: 0; }
.rank a::before { content: counter(r); font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.rank a:hover .nm { color: var(--accent); }
.rank img { width: 30px; height: 30px; object-fit: cover; object-position: top; background: var(--portrait-bg); }
.rank .nm { font-weight: 500; }
.rank .tally { font-size: 13px; gap: 8px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent a { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.recent li:first-child a { border-top: 0; }
.recent a:hover .k { color: var(--ink); }
.recent .d { font-family: var(--mono); font-weight: 700; }
.recent .k { color: var(--ink-2); }
.recent .k.season { color: var(--accent); }
.recent .c { font-size: 12px; color: var(--ink-3); }

/* ── 영웅 머리말 ── */
.hero-head { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; align-items: end; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.hero-head > img { grid-row: span 2; width: 120px; height: 120px; object-fit: cover; object-position: top; background: var(--portrait-bg); border: 1px solid var(--line); }
.role-line { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.role-line svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.hero-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px 5px 10px; background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; }
.share-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.share-btn.done { color: var(--accent); border-color: var(--accent); }
.share-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hero-head h1 { margin: 4px 0 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.2; }
.stats { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.stat-box { display: flex; flex-direction: column; gap: 2px; }
.stat-box .v { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.stat-box .v.b { color: var(--buff); }
.stat-box .v.n { color: var(--nerf); }
.stat-box .k { font-size: 12px; color: var(--ink-3); }
.flow { grid-column: 1 / -1; margin-top: 18px; }
.flow-label { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.flow-strip { display: flex; gap: 3px; flex-wrap: wrap; }
.flow-strip button { width: 26px; height: 10px; padding: 0; border: 0; cursor: pointer; background: var(--adjust-tint); }
.flow-strip button.buff { background: var(--buff); }
.flow-strip button.nerf { background: var(--nerf); }
.flow-strip button.mixed { background: linear-gradient(90deg, var(--buff) 50%, var(--nerf) 50%); }
.flow-strip button.adjust { background: var(--adjust); opacity: .5; }
.flow-strip button:hover { outline: 2px solid var(--ink); outline-offset: 2px; }
.filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -8px 0 24px; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--accent-tint); font-size: 14px; }
.filter-note a { margin-left: auto; color: var(--ink-2); font-size: 13px; }

/* ── 타임라인 ── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 103px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.entry { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 34px; scroll-margin-top: 150px; }
.entry + .entry { margin-top: 24px; }
.entry::before { content: ""; position: absolute; left: 98px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--adjust); }
.entry.net-buff::before { border-color: var(--buff); background: var(--buff); }
.entry.net-nerf::before { border-color: var(--nerf); background: var(--nerf); }
.entry.net-mixed::before { border-color: var(--nerf); background: linear-gradient(90deg, var(--buff) 50%, var(--nerf) 50%); }
.entry.flash .card { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 2px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }
.when { text-align: right; padding-top: 2px; }
.when a { text-decoration: none; display: block; }
.when a:hover .md { color: var(--accent); }
.when .md { display: block; font-family: var(--mono); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.when .y { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.when .kind { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.when .kind.season { color: var(--accent); font-weight: 700; }

.group { padding-top: 4px; }
.group + .group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.group h3 { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; font-size: 15px; font-weight: 700; }
.group h3 img { width: 28px; height: 28px; padding: 4px; background: var(--icon-bg); border: 1px solid var(--line-2); }
.group h3 .chip { font-weight: 500; }
.lines { list-style: none; margin: 0; padding: 0; }
.ln { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 6px 0; align-items: start; }
.mk { width: 20px; height: 20px; margin-top: 3px; font: 700 13px/20px var(--mono); text-align: center; }
.v-buff .mk { background: var(--buff-tint); color: var(--buff); }
.v-nerf .mk { background: var(--nerf-tint); color: var(--nerf); }
.v-adjust .mk { background: var(--adjust-tint); color: var(--adjust); }
.body { min-width: 0; }
.stat { margin-right: 12px; }
.nums { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nums .from { color: var(--ink-3); font-weight: 400; }
.nums .arrow { color: var(--ink-3); font-weight: 400; }
.v-buff .nums .to, .v-buff .nums .by { color: var(--buff); }
.v-nerf .nums .to, .v-nerf .nums .by { color: var(--nerf); }
.v-adjust .nums .to, .nums .by { color: var(--ink); }
.mode { display: inline-block; margin-left: 10px; padding: 1px 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; vertical-align: 2px; }
.txt { white-space: pre-line; }
.v-adjust .txt { color: var(--ink-2); }
.txt.raw { color: var(--ink-3); }
.en { display: none; margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--ink-3); white-space: pre-line; }
body.show-en .en { display: block; }

details.dev { margin: 2px 0 10px; }
details.dev summary { cursor: pointer; width: fit-content; list-style: none; font-size: 13px; font-weight: 500; color: var(--ink-3); }
details.dev summary::-webkit-details-marker { display: none; }
details.dev summary::before { content: "+"; display: inline-block; width: 1.1em; font-family: var(--mono); color: var(--accent); }
details.dev[open] summary::before { content: "−"; }
details.dev summary:hover { color: var(--ink); }
details.dev p { margin: 8px 0 0; padding: .4rem 0 .4rem 1.2rem; border-left: 2px solid var(--accent); white-space: pre-line; max-width: 46em; color: var(--ink-2); line-height: 1.9; }
details.dev p.en { border-left-color: var(--line-2); font-size: 13px; }

/* ── 패치별 보기 ── */
.patch-list { list-style: none; margin: 0; padding: 0; }
.patch-list a { display: grid; grid-template-columns: 86px 1fr auto; align-items: baseline; gap: 10px; padding: 9px 12px; text-decoration: none; border-left: 2px solid transparent; }
.patch-list a:hover { background: var(--panel-2); }
.patch-list a[aria-current="page"] { background: var(--accent-tint); border-left-color: var(--accent); }
.patch-list .d { font-family: var(--mono); font-weight: 700; }
.patch-list .d small { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.patch-list .k { font-size: 13px; color: var(--ink-2); }
.patch-list .k.season { color: var(--accent); font-weight: 700; }
.patch-list .k.fix { color: var(--ink-3); }
.patch-list .c { font-size: 11px; color: var(--ink-3); }
.patch-head { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.patch-head h1 { margin: 0; font-family: var(--mono); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
/* 일본어·한국어 제목(패치노트 목록, 2026년 11월 3일)은 고정폭이 아닌 제목 글꼴로 */
html:lang(ja) .patch-head h1, html:lang(ko) .patch-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }
.patch-head .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.hero-blocks { display: grid; gap: 14px; }
.hero-block .hname { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; margin-right: 4px; }
.hero-block .hname:hover { color: var(--accent); }
.hero-block .card-top img { width: 36px; height: 36px; object-fit: cover; object-position: top; background: var(--portrait-bg); }
.other { margin-top: 40px; }
.other > h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; font-size: 1.15rem; }
.section-card + .section-card, .other .bugs { margin-top: 12px; }
.section-card h3 { margin: 0 0 6px; font-size: 16px; }
.section-card h4 { margin: 12px 0 2px; font-size: 14px; color: var(--ink-2); }
.section-card .desc { margin: 0 0 6px; color: var(--ink-2); white-space: pre-line; }
details.bugs summary { cursor: pointer; font-weight: 700; }
details.bugs[open] summary { margin-bottom: 10px; }
details.bugs .section-card { border: 0; padding: 0; background: none; }
details.bugs .section-card::before { display: none; }

.empty { color: var(--ink-2); padding: 12px 0; max-width: 60ch; }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 18px var(--gut) 44px; color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.foot p { margin: 3px 0; }
.foot p:first-child { font-family: var(--mono); letter-spacing: .04em; }

/* ── 좁은 화면 ── */
@media (max-width: 960px) {
  .top { position: static; }
  .is-home .main { order: -1; } /* 첫 화면에서는 요약을 영웅 목록보다 먼저 */
  .top-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px 14px; }
  .brand small { display: none; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .tabs { margin-left: auto; }
  .tabs a[aria-current="page"]::after { bottom: -2px; }
  .sub-in { gap: 8px; }
  .toggle { margin-left: 0; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 18px; }
  .side { position: static; max-height: none; overflow: visible; padding-right: 0; min-width: 0; }
  /* 영웅을 고른 뒤에는 목록을 한 줄 가로 스크롤로 줄임 */
  .side.compact .role-block { margin: 0; }
  .side.compact .label { display: none; }
  .side.compact { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .side.compact .grid { display: flex; gap: 4px; }
  .side.compact .tile { width: 54px; flex: 0 0 auto; }
  /* 패치 목록도 가로로 넘기기 */
  .patch-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .patch-list a { display: flex; flex-direction: column; gap: 0; min-width: 104px; padding: 8px 10px; border: 1px solid var(--line); border-left-width: 1px; }
  .patch-list a[aria-current="page"] { border-color: var(--accent); }
  .patch-list .c { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .season-cd { flex-basis: 100%; min-width: 0; }
  .timeline::before, .entry::before { display: none; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .when { text-align: left; padding-top: 0; display: flex; align-items: baseline; gap: 10px; }
  .when a { display: flex; align-items: baseline; gap: 8px; }
  .when .kind { margin-top: 0; }
  .card { padding: 14px 15px; }
  .links { margin-left: 0; width: 100%; }
  .hero-head > img { width: 84px; height: 84px; }
  .stats { grid-column: 1 / -1; }
  html { scroll-padding-top: 12px; }
  .entry { scroll-margin-top: 12px; }
}
@media (max-width: 520px) {
  .pill button { padding: 5px 9px; }
  .recent a { grid-template-columns: 96px 1fr; }
  .recent .c { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* ── 관리자 모드: 판정 고치기 ── */
.main.admin { grid-column: 1 / -1; max-width: 560px; }
.admin h1 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: 1.6rem; }
.admin p { color: var(--ink-2); }
.admin form { display: grid; gap: 12px; margin-top: 14px; }
.admin label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
.admin input { padding: 10px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); font: inherit; }
.admin input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.admin .msg { margin: 0; color: var(--nerf); font-size: 13px; min-height: 1.2em; }
.btn { justify-self: start; padding: 9px 18px; background: var(--accent); color: #000; border: 1px solid var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line-2); }
.ov { display: inline-flex; gap: 4px; margin-top: 6px; }
.ov button { width: 26px; height: 22px; padding: 0; background: none; border: 1px solid var(--line-2); color: var(--ink-3); font: 700 12px/20px var(--mono); cursor: pointer; }
.ov button:hover { color: var(--ink); border-color: var(--ink-3); }
.ov button.buff[aria-pressed="true"] { background: var(--buff-tint); color: var(--buff); border-color: var(--buff); }
.ov button.nerf[aria-pressed="true"] { background: var(--nerf-tint); color: var(--nerf); border-color: var(--nerf); }
.ov button.adjust[aria-pressed="true"] { background: var(--adjust-tint); color: var(--adjust); border-color: var(--adjust); }
.ln.saving { opacity: .5; pointer-events: none; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); padding: 10px 16px; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-left: 3px solid var(--buff); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-left-color: var(--nerf); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
.ov .ai-tag { display: inline-grid; place-items: center; height: 22px; padding: 0 6px; margin-right: 2px; border: 1px dashed var(--accent); color: var(--accent); font: 700 10px/1 var(--mono); letter-spacing: .06em; }

/* 게시판으로 가는 링크 (패치 화면) */
.patch-head .talk { margin: 10px 0 0; font-size: 14px; }
.patch-head .talk a { color: var(--accent); text-decoration: none; }
.patch-head .talk a:hover { text-decoration: underline; }
