/* 링사이드 공통 스타일 — 토큰 · 리셋 · 리그 바/헤더/푸터 · 여러 페이지가 같이 쓰는 컴포넌트(대진 줄·파이터 카드·벨트·배지·탭·표·모달).
   페이지 전용 레이아웃은 home.css / fight.css / fighters.css / rank.css / game.css / news.css / info.css 에 있다. */

@font-face { font-family: 'Anton'; src: url('../fonts/anton-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Black Han Sans'; src: url('../fonts/BlackHanSans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('../fonts/Pretendard-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('../fonts/Pretendard-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('../fonts/Pretendard-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --bg: #0b0b0d;
  --bg2: #131317;
  --bg3: #1b1b21;
  --line: #2a2a31;
  --line2: #3b3b45;
  --text: #ece7dc;
  --mute: #a19d92;
  --dim: #76736b;
  --red: #d0301f;
  --red-dark: #9f2217;
  --blue: #4a7db8;
  --gold: #c8a24b;
  --gold-light: #e6ca83;
  --display: 'Anton', 'Black Han Sans', 'Pretendard', sans-serif;
  --display-ko: 'Black Han Sans', 'Pretendard', sans-serif;
  --body: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 리그 바 */
.league-bar { background: #000; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.league-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.league-season { color: var(--gold-light); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.league-season::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; }
.league-next b { color: var(--text); font-weight: 700; }
.league-next:hover { color: var(--text); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; border-radius: 3px; background:
  linear-gradient(var(--red), var(--red)) 4px 6px / 18px 3px no-repeat,
  linear-gradient(var(--text), var(--text)) 4px 12px / 18px 3px no-repeat,
  linear-gradient(var(--red), var(--red)) 4px 18px / 18px 3px no-repeat, #1a1a1f; box-shadow: inset 3px 0 0 var(--gold); }
.logo-word { font-family: var(--display); font-size: 25px; letter-spacing: .08em; line-height: 1; }
.logo-ko { font-family: var(--display-ko); font-size: 12px; color: var(--mute); letter-spacing: .04em; padding-top: 4px; }
.site-nav { margin-right: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a { display: block; padding: 22px 14px 19px; font-weight: 700; font-size: 15px; color: var(--mute); border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current] { color: var(--text); border-bottom-color: var(--red); }
.menu-btn { display: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font-weight: 900; font-size: 15px; border: 2px solid transparent; border-radius: 3px; letter-spacing: .01em; transition: background .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #e03c29; }
.btn-line { border-color: var(--line2); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-gold { background: var(--gold); color: #17130a; }
.btn-gold:hover { background: var(--gold-light); }
.header-install { padding: 9px 18px; font-size: 14px; }

/* 스토어 배지(공식 로고 대신 텍스트 배지) */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid var(--line2); border-radius: 6px; background: #000; min-width: 150px; }
.store-badge:hover { border-color: var(--text); }
.store-badge i { width: 22px; height: 22px; border-radius: 5px; background: var(--text); flex: none; }
.store-ios i { background: linear-gradient(135deg, #e8e4da, #8f8b82); }
.store-android i { background: linear-gradient(135deg, #7dc08a, #2f8a52); clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 0; }
.store-one i { background: linear-gradient(135deg, #e6ca83, #b5862c); border-radius: 50%; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 15px; }
.store-badge small { font-size: 10.5px; font-weight: 400; color: var(--mute); letter-spacing: .02em; }

/* 섹션 머리말 */
.section { padding: 64px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-kicker { display: block; font-family: var(--display); font-size: 14px; letter-spacing: .16em; color: var(--red); margin-bottom: 4px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.sec-head h2 .ko { font-family: var(--display-ko); text-transform: none; letter-spacing: 0; }
.sec-more { font-size: 14px; font-weight: 700; color: var(--gold-light); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.sec-more:hover { color: var(--text); }
.page-title { padding: 52px 0 28px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 120% at 80% 0, #2a1610 0, transparent 60%), var(--bg); }
.page-title h1 { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.page-title h1 .ko { font-family: var(--display-ko); text-transform: none; letter-spacing: 0; }
.page-title p { color: var(--mute); margin-top: 10px; max-width: 640px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; }

/* 체급 탭 */
.div-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.div-tabs a { padding: 8px 18px; border: 1px solid var(--line2); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--mute); }
.div-tabs a:hover { color: var(--text); border-color: var(--text); }
.div-tabs a[aria-current] { background: var(--text); color: #101012; border-color: var(--text); }

/* 카운트다운(홈 히어로 · 이벤트 상세) */
.countdown { margin: 18px auto 20px; }
.countdown-state { font-size: 12.5px; letter-spacing: .06em; color: var(--mute); margin-bottom: 8px; }
.countdown-cells { display: flex; justify-content: center; gap: 8px; }
.countdown-cells span { min-width: 72px; padding: 8px 6px 6px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line2); border-radius: 4px; font-size: 12px; color: var(--mute); }
.countdown-cells b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.countdown.is-over .countdown-cells b { color: var(--dim); }

/* 승리 방식 배지 */
.method { display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 10px; border-radius: 3px; font-size: 12.5px; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.method b { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .06em; }
.method-ko { background: var(--red); border-color: var(--red); color: #fff; }
.method-tko { background: #5a1b14; border-color: #8c2d21; color: #ffd9d2; }
.method-dec { border-color: var(--line2); color: var(--text); }
.method-draw { border-style: dashed; }
.method-up { border-color: var(--gold); color: var(--gold-light); }

/* 벨트 배지 */
.belt-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold-light); }
.belt-badge svg { width: 40px; height: 24px; flex: none; }
.belt-strap { fill: #3a1b15; }
.belt-plate { fill: var(--gold); stroke: #7b5d1b; stroke-width: 1.5; }
.belt-gem { fill: #8b1d12; }
.belt-light .belt-strap { fill: #1f3556; }
.belt-welter .belt-strap { fill: #5b1a14; }
.belt-middle .belt-strap { fill: #1d4430; }
.belt-heavy .belt-strap { fill: #222; }
.belt-sm svg { width: 30px; height: 18px; }
.belt-sm { font-size: 12.5px; }

/* 포트레이트 · 실루엣 */
.photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg3); }
.photo-thumb { width: 54px; height: 54px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 16%; flex: none; border: 2px solid var(--line2); }
.silhouette { display: grid; place-items: end center; overflow: hidden; background: linear-gradient(160deg, #2a2a31, #15151a); }
.silhouette svg { width: 72%; height: auto; fill: #3d3d47; }
.photo-thumb.silhouette svg { width: 90%; }

/* 파이터 카드 */
.fighter-card { position: relative; display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: transform .15s, border-color .15s; }
.fighter-card:hover { border-color: var(--line2); transform: translateY(-3px); }
.fighter-card .photo { aspect-ratio: 4 / 5; object-position: 50% 15%; }
.fighter-card-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 60px 14px 14px; background: linear-gradient(transparent, rgba(8, 8, 10, .94) 70%); }
.fighter-card-div { font-size: 12px; color: var(--gold-light); font-weight: 700; letter-spacing: .02em; }
.fighter-card-name { font-family: var(--display-ko); font-weight: 400; font-size: 24px; line-height: 1.2; }
.fighter-card-ring { font-size: 13px; color: var(--mute); }
.fighter-card-rec { font-size: 13px; margin-top: 4px; }
.fighter-card.is-champ { border-color: var(--gold); }
.champ-flag { position: absolute; top: 10px; left: 10px; font-family: var(--display); letter-spacing: .1em; font-size: 12px; background: var(--gold); color: #17130a; padding: 2px 9px; border-radius: 2px; }

/* 대진 줄 (홈·대진표·파이터 프로필 공통) */
.bout { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px 16px; }
.bout-title { border-color: #6b5420; background: linear-gradient(180deg, #1d1810, var(--bg2) 60%); }
.bout-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.bout-meta .method { margin-left: auto; }
.bout-div { font-weight: 700; color: var(--text); }
.bout-sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.vs { font-family: var(--display); font-size: 20px; color: var(--dim); letter-spacing: .08em; }
.corner { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 3px; min-width: 0; }
.corner-red { border-left: 3px solid var(--red); }
.corner-blue { border-right: 3px solid var(--blue); flex-direction: row-reverse; text-align: right; }
.corner:hover { background: var(--bg3); }
.corner-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.corner-text strong { font-family: var(--display-ko); font-weight: 400; font-size: 21px; }
.corner-text small { font-size: 12.5px; color: var(--mute); }
.corner.is-loss { opacity: .55; }
.win-tag { font-style: normal; font-family: var(--display); font-size: 12px; letter-spacing: .1em; background: var(--gold); color: #17130a; padding: 1px 8px; border-radius: 2px; flex: none; }
.bout-compact .corner-text strong { font-size: 18px; }
.bout-compact .photo-thumb { width: 44px; height: 44px; }

/* 최근 5경기 표시 */
.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form i { width: 9px; height: 16px; border-radius: 2px; background: var(--line2); }
.form-w { background: var(--gold) !important; }
.form-l { background: #6a2018 !important; }
.form-d { background: var(--dim) !important; }

/* 표 */
.data-table { font-size: 15px; }
.data-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--bg2); }
.data-table .r { text-align: right; }
.data-table .c { text-align: center; }
@media (max-width: 860px) { .hide-sm { display: none; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 설치 안내 밴드(홈·게임 소개 공통) */
.install { background: linear-gradient(120deg, #2b100b, #0b0b0d 62%); border-top: 1px solid var(--line); padding: 64px 0; }
.install-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.install-copy { max-width: 600px; }
.install-copy h2 { font-family: var(--display-ko); font-weight: 400; font-size: 44px; line-height: 1.15; margin: 4px 0 12px; }
.install-copy p { color: var(--mute); }
.install-stores { margin: 22px 0 14px; }
.install-note { font-size: 12.5px; color: var(--dim) !important; }
.install-qr { display: flex; gap: 16px; }
.install-qr figure { margin: 0; text-align: center; font-size: 12.5px; color: var(--mute); }
.install-qr img { display: block; width: 132px; height: 132px; background: var(--text); padding: 8px; border-radius: 6px; margin-bottom: 8px; }


/* 푸터 */
.site-footer { background: #070708; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
.footer-brand p { color: var(--mute); font-size: 14.5px; margin: 14px 0 18px; }
.footer-col h2 { font-size: 13px; letter-spacing: .12em; color: var(--dim); margin-bottom: 14px; font-weight: 700; }
.footer-col li { margin-bottom: 8px; font-size: 14.5px; color: var(--mute); }
.footer-col a:hover { color: var(--text); }
.footer-company { display: flex; gap: 22px; padding-top: 26px; padding-bottom: 44px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.company-text p { margin-bottom: 3px; }
.company-text a { text-decoration: underline; text-underline-offset: 2px; }
.company-notice { margin-top: 8px; color: var(--mute); }
.copyright { margin-top: 8px; }
.rating-mark { flex: none; width: 54px; height: 62px; border: 2px solid var(--mute); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); line-height: 1; }
.rating-mark b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.rating-mark span { font-size: 9px; margin-top: 3px; color: var(--mute); }

/* 약관 모달 */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--bg2); border: 1px solid var(--line2); border-radius: 6px; width: 100%; max-width: 680px; max-height: 84vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.modal-close { background: none; border: 1px solid var(--line2); border-radius: 3px; padding: 5px 12px; font-size: 13px; }
.modal-body { padding: 8px 22px 26px; overflow-y: auto; font-size: 14.5px; color: var(--mute); }
.modal-body h3 { color: var(--text); font-size: 15px; margin: 22px 0 6px; }
.legal-date { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* 모바일 */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header-row { flex-wrap: wrap; gap: 0 10px; min-height: 0; padding-top: 10px; }
  .logo { margin-right: auto; padding-bottom: 8px; }
  .header-install { margin-bottom: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); overflow-x: auto; border-top: 1px solid var(--line); }
  .site-nav ul { padding: 0 8px; width: max-content; min-width: 100%; }
  .site-nav a { padding: 12px 14px 10px; white-space: nowrap; }
  .menu-ready .menu-btn { display: inline-block; order: 2; background: none; border: 1px solid var(--line2); border-radius: 3px; padding: 7px 12px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
  .menu-ready .site-nav { display: none; overflow: visible; }
  .menu-ready.open .site-nav { display: block; }
  .menu-ready .site-nav ul { flex-direction: column; width: auto; padding: 6px var(--gutter) 10px; }
  .menu-ready .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-ready .site-nav a[aria-current] { border-bottom-color: var(--red); }
  .section { padding: 44px 0; }
  .sec-head h2 { font-size: 32px; }
  .page-title { padding: 36px 0 22px; }
  .page-title h1 { font-size: 40px; }
  .league-bar-row { font-size: 12px; }
  .logo-ko { display: none; }
  .league-next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-company { flex-direction: column; }
  .install-row { flex-direction: column; align-items: flex-start; }
  .install-copy h2 { font-size: 34px; }
  .bout-sides { grid-template-columns: 1fr; gap: 4px; }
  .vs { text-align: center; font-size: 16px; }
  .corner-blue { flex-direction: row; text-align: left; border-right: 0; border-left: 3px solid var(--blue); }
  .corner-blue .win-tag { order: 3; }
  .corner-text strong { font-size: 19px; }
  .photo-thumb { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
