/* ───────── 기본 토큰 ───────── */
:root {
  --navy: #0d2340;
  --navy-2: #16355e;
  --navy-3: #234a7d;
  --accent: #e4572e;
  --accent-2: #c94420;
  --field: #1d6b45;
  --field-2: #2f8a57;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #e1e6ed;
  --line-2: #eef1f5;
  --text: #1a2431;
  --muted: #6a7687;
  --win: #1f6fd1;
  --lose: #d64545;
  --draw: #8a94a3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 35, 64, .06), 0 4px 14px rgba(13, 35, 64, .05);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.left { text-align: left !important; }

/* ───────── 헤더 ───────── */
/* 헤더: 위 얇은 줄(로그인)은 진한 남색, 아래 줄(로고·메뉴)은 흰 바탕에 검정 계열 글자 */
.site-header { background: #fff; color: var(--text); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(13,35,64,.12); border-bottom: 1px solid var(--line); }
.topbar { background: #081a31; font-size: 12px; color: #9fb0c8; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 30px; letter-spacing: .04em; }
.topbar-links { display: flex; gap: 14px; }
.topbar-links a:hover, .linklike:hover { color: #fff; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: inherit; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { color: var(--navy); }
.logo:hover { color: var(--navy); }
/* 로고 이미지 안 KCBA 글자가 74.6% 높이에 있으므로 위로 올려 옆 영문 리그명과 같은 높이에 맞춤 (글자 모양 보정 포함 .72) */
.logo-mark {
  --s: 56px; --kcba: .72;
  width: var(--s); height: var(--s); flex: none; position: relative; z-index: 1;
  transform: translateY(calc(var(--s) * (.5 - var(--kcba))));
  filter: drop-shadow(0 0 6px rgba(255, 140, 40, .35));
}
.logo span { display: flex; flex-direction: column; min-width: 0; }
.logo strong { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo strong.logo-en { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.logo small { font-size: 12px; color: #9fb0c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnb > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a { display: block; padding: 22px 18px; font-weight: 700; font-size: 16px; position: relative; }
.gnb > ul > li > a { color: #1a2431; }
.gnb > ul > li > a:hover, .gnb > ul > li.on > a { color: var(--accent); }
.gnb > ul > li.on > a::after, .gnb > ul > li:hover > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 12px; height: 3px; border-radius: 2px; background: var(--accent);
}
.drop {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  min-width: 160px; background: #fff; color: var(--text); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.gnb > ul > li:last-child > .drop { left: auto; right: 0; transform: none; }
.gnb li:hover > .drop, .gnb li:focus-within > .drop { opacity: 1; visibility: visible; }
.drop a { display: block; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.drop a:hover { background: var(--bg); color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: transform .2s; }

/* ───────── 공용 요소 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--navy-3); color: var(--navy); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.danger { background: var(--lose); border-color: var(--lose); color: #fff; }
.btn.danger-ghost { color: var(--lose); }
.btn.danger-ghost:hover { border-color: var(--lose); color: var(--lose); }
.btn.ghost { background: transparent; }
.btn.ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }
.btn.ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: #fde8e8; color: var(--lose); }

.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e7eef8; color: var(--navy-2); vertical-align: middle; white-space: nowrap; }
.tag.accent { background: #fde6df; color: var(--accent-2); }
.tag.primary { background: var(--navy-2); color: #fff; }
.tag.gray { background: #eceff3; color: var(--muted); }

.badge {
  --tc: #1f3a5f;
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tc); color: #fff; font-weight: 800; font-size: 12px; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.badge.xs { width: 20px; height: 20px; font-size: 10px; }
.badge.lg { width: 48px; height: 48px; font-size: 20px; }
.badge.xl { width: 84px; height: 84px; font-size: 36px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
/* 로고가 있는 팀: 흰 바탕 원 안에 로고 그림 */
.badge.logo { background: #fff; box-shadow: 0 0 0 1px rgba(15, 30, 60, .14); overflow: hidden; }
.badge.logo img { width: 86%; height: 86%; object-fit: contain; display: block; }
.badge.logo.xl { box-shadow: 0 0 0 4px rgba(255,255,255,.55), 0 6px 18px rgba(0,0,0,.25); }
.team-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; }
.card-foot { margin: 12px 0 0; text-align: right; font-size: 14px; }
.card-foot a { color: var(--navy-3); font-weight: 600; }
.more { font-size: 13px; color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 14px; }
.section-head h2, .section-title { font-size: 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-gap { margin-top: 28px; }
.sub-title { font-size: 16px; margin: 18px 0 10px; }
.sub-title:first-child { margin-top: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0; }
.warn { background: #fff4e5; border: 1px solid #ffd8a8; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.empty-state { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.card .empty-state { border: 0; padding: 24px 8px; background: transparent; }
.empty-state.error strong { color: var(--lose); }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.site-main { min-height: 60vh; transition: opacity .15s; }
.site-main.busy { opacity: .55; }

.seg { display: inline-flex; background: var(--line-2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg a, .seg button { border: 0; background: none; padding: 5px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg .on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.select-wrap select, .field input, .field select, .field textarea, .search-box input, .edit-table input, .edit-table select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0;
}
.select-wrap select { padding-right: 28px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; flex: 1; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field textarea { resize: vertical; line-height: 1.6; }
.field input[type=color] { padding: 2px; height: 40px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-box { display: flex; gap: 8px; max-width: 520px; margin-bottom: 16px; }
.search-box input { flex: 1; padding: 10px 14px; }
.search-box.sm { margin: 0; max-width: 360px; flex: 1; }

/* ───────── 페이지 머리 / 하위 메뉴 ───────── */
.page-head {
  background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%);
  color: #fff; padding: 30px 0 26px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 26px solid rgba(255,255,255,.05);
}
.page-head .crumb { margin: 0 0 4px; font-size: 13px; color: #9fb0c8; font-weight: 600; }
.page-head h1 { font-size: 28px; letter-spacing: -.02em; }
.page-sub { margin: 6px 0 0; color: #c3d0e2; font-size: 14px; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 98px; z-index: 30; }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 14px 14px 12px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a.on { color: var(--navy); border-bottom-color: var(--accent); }
.page-body { padding-top: 24px; padding-bottom: 48px; }
.page-body.narrow { max-width: 440px; }

/* ───────── 홈 ───────── */
.hero {
  color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: #050d1f; min-height: 380px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 68% 50%;
  animation: hero-zoom 18s ease-out both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(4,11,26,.94) 0%, rgba(4,11,26,.82) 28%, rgba(4,11,26,.35) 52%, rgba(4,11,26,0) 70%),
    linear-gradient(0deg, rgba(4,11,26,.85) 0%, rgba(4,11,26,0) 30%);
}
/* 사진 배경: 밝게 (어둡게 덮는 층을 옅게 + 사진 자체 밝기 올림) */
.hero.photo::before {
  background:
    linear-gradient(270deg, rgba(4,11,26,.55) 0%, rgba(4,11,26,.35) 35%, rgba(4,11,26,.08) 65%, rgba(4,11,26,0) 100%),
    linear-gradient(0deg, rgba(4,11,26,.45) 0%, rgba(4,11,26,0) 30%);
}
.hero.photo .hero-bg { object-position: 50% 60%; filter: brightness(1.18) saturate(1.08); }
.hero-credit { position: absolute; left: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.55); z-index: 1; }
/* 메인: 오른쪽에 [엠블럼 + 리그명] 묶음 */
.hero-inner {
  position: relative; padding-top: 40px; padding-bottom: 40px;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.hero-text {
  --tw: clamp(240px, 55vw, 780px);        /* 리그명 그림 너비 */
  --eh: clamp(80px, 10vw, 150px);         /* 엠블럼 높이 (리그명 위 가운데) */
  min-width: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; animation: rise .8s .1s ease-out both;
}
/* 시즌 표시와 리그명 사이를 좁혀 시즌 표시를 아래로 */
/* 엠블럼은 리그명 위 가운데(상단)에 세로로 쌓음 */
.hero-brand { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.hero-emblem {
  width: auto; height: var(--eh); flex: none; filter: drop-shadow(0 8px 22px rgba(0,0,0,.6));
  margin-bottom: clamp(0px, .4vw, 6px);
}
/* 리그명 그림 + 그 위 슬로건 (십자가와 공 궤적 사이 빈 곳에 배치) */
.hero-titlebox { position: relative; padding-top: var(--slogan-room, 0px); }
.hero-text:has(.hero-titlebox .hero-slogan) { --slogan-room: calc(var(--tw) * .045); }
.hero .hero-titlebox .hero-slogan {
  /* 글자 테두리 위끝(그림 높이 29.8%) 바로 위, 궤적 시작점(너비 79%) 전에서 끝나도록 */
  position: absolute; left: 28.5%; bottom: calc(var(--tw) * 171 / 845 * (1 - .29)); margin: 0;
  font-size: calc(var(--tw) * .066); white-space: nowrap; text-align: left;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.season-chip { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .12em; padding: 5px 12px; border-radius: 4px; box-shadow: 0 6px 18px rgba(228,87,46,.45); }
/* 위 문구: 붓글씨 */
.hero .hero-slogan {
  margin: 16px 0 0; color: #fff; font-family: "Nanum Brush Script", var(--font);
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.1; letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.75);
}
/* 아래 리그명: 스포츠 레터링 (기울임 + 남색 바깥 테두리 + 흰 테두리 + 주황 그라디언트) */
.hero-title {
  position: relative; display: inline-block; margin: .12em .5em 0 0; padding: 0 .08em;
  font-family: "Black Han Sans", "Do Hyeon", var(--font); font-weight: 400;
  font-size: clamp(36px, 7vw, 92px); line-height: 1.08; letter-spacing: -.01em; white-space: nowrap;
  transform: skewX(-9deg); transform-origin: left bottom;
  filter: drop-shadow(0 7px 0 rgba(4, 12, 30, .85)) drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
}
.hero-title::before, .hero-title::after { content: attr(data-text); position: absolute; left: .08em; top: 0; }
.hero-title::before { z-index: -2; color: #10295a; -webkit-text-stroke: .34em #10295a; }
.hero-title::after { z-index: -1; color: #fff; -webkit-text-stroke: .17em #fff; }
.hero-title span {
  position: relative;
  background-image: linear-gradient(180deg, #fff27a 0%, #ffc233 34%, #ff8a1e 62%, #f2541b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 시안에서 오려낸 리그명 레터링 이미지 (리그명이 "경부크리스찬리그"일 때) */
.hero-title-img { margin: 0; line-height: 0; }
.hero-title-img img { display: block; width: var(--tw); height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
/* "경" 위 십자가, "그" 위로 날아가는 공 (글자로 표시할 때) */
.hero-title .t-cross { position: absolute; left: .3em; top: -.5em; width: .52em; height: .7em; overflow: visible; }
.hero-title .t-ball { position: absolute; right: -.5em; top: -.18em; width: 1.5em; height: .75em; overflow: visible; }
.hero .hero-slogan { margin-bottom: .12em; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-text { animation: none; }
}

.strip-game { flex: none; width: 190px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
.strip-game:hover { border-color: var(--navy-3); color: inherit; }
.sg-head { font-size: 11.5px; color: var(--muted); }
.sg-head em { color: var(--accent); font-style: normal; font-weight: 700; }
.sg-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.sg-row span:not(.badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-row b { font-variant-numeric: tabular-nums; }
.sg-row.win { color: var(--text); font-weight: 700; }

/* 맨 위 한 줄: 공지사항(왼쪽) + 바로가기 4개(오른쪽), 아래 칸과 같은 폭·높이 맞춤 */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding-top: 24px; align-items: stretch; }
.home-top > .card, .home-top > .quick { margin-bottom: 0; }
.home-top .quick { grid-auto-rows: 1fr; }
/* 버튼 높이 줄임: 아이콘과 글자를 한 줄로 */
.home-top .quick { gap: 8px; }
.home-top .quick a { justify-content: center; flex-direction: row; gap: 8px; padding: 10px 8px; min-height: 44px; line-height: 1.25; text-align: center; }
.home-top .quick .qi { font-size: 18px; line-height: 1; }
/* 버튼 수가 홀수면 첫 버튼(참가신청)이 한 줄 전체 */
.home-top .quick a:first-child:nth-last-child(odd) { grid-column: 1 / -1; font-size: 15px; }
/* 공지 칸 여백 줄임 */
.home-top .notice-card { padding: 14px 18px; }
.home-top .notice-card .card-head { margin-bottom: 6px; }
.home-top .notice-card .empty-state { padding: 16px 8px; }
.home-top .notice-card .post-list li { padding: 7px 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 48px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.two-col > .card { margin-bottom: 20px; }

.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.leader-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.leader-card header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 0; }
.leader-card h3 { font-size: 14px; color: var(--muted); }
.leader-top { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num name" "num team" "val val"; column-gap: 10px; padding: 8px 16px 12px; }
.leader-top:hover { color: inherit; }
.leader-num { grid-area: num; font-size: 30px; font-weight: 900; color: var(--line); align-self: center; font-style: italic; }
.leader-top strong { grid-area: name; font-size: 18px; }
.leader-top small { grid-area: team; color: var(--muted); font-size: 12.5px; }
.leader-val { grid-area: val; font-size: 30px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 4px; }
.leader-rest { list-style: none; margin: 0; padding: 6px 16px 12px; border-top: 1px solid var(--line-2); }
.leader-rest li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: baseline; font-size: 13.5px; padding: 3px 0; }
.leader-rest li small { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 11.5px; margin-top: -3px; }
.leader-rest .r { color: var(--muted); font-weight: 700; }
.leader-rest b { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.post-list li:last-child { border-bottom: 0; }
.post-list a { display: flex; align-items: center; gap: 6px; min-width: 0; }
.post-list .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list time { color: var(--muted); font-size: 12px; flex: none; }
.cmt { color: var(--accent); font-size: 12px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.quick a { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; transition: transform .15s, background .15s; }
.quick a:hover { background: var(--navy-3); color: #fff; transform: translateY(-2px); }
.qi { font-size: 22px; }

/* ───────── 경기 목록 ───────── */
.day-group { margin-bottom: 22px; }
.day-title { font-size: 15px; color: var(--navy); margin-bottom: 8px; padding-left: 10px; border-left: 4px solid var(--accent); }
.games { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .games { border: 0; border-radius: 0; }
.game { display: grid; grid-template-columns: 210px 1fr 120px; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.game:last-child { border-bottom: 0; }
.game.cancelled { opacity: .6; }
.g-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; color: var(--muted); }
.g-date { font-weight: 700; color: var(--text); }
.g-time { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.g-div { color: var(--navy-3); font-weight: 600; }
.g-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.g-team { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.g-team.away { justify-content: flex-end; text-align: right; }
.g-team .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-team.win .nm { font-weight: 800; }
.g-score { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; position: relative; min-width: 76px; justify-content: center; }
.g-score b { font-size: 22px; font-weight: 800; color: var(--muted); min-width: 24px; text-align: center; }
.g-score b.w { color: var(--navy); }
.g-score i { color: var(--muted); font-style: normal; }
.g-score .vs { font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.g-score .note { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--accent); font-style: normal; font-weight: 700; white-space: nowrap; }
.g-act { text-align: right; }
.games.mini .game { grid-template-columns: 1fr; gap: 6px; padding: 10px 4px; }
.games.mini .g-act { display: none; }
.games.mini .g-score b { font-size: 18px; }
.games.mini .g-ground { display: none; }

/* ───────── 표 ───────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.data thead th { background: #f6f8fb; color: var(--muted); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--line); position: relative; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--navy); }
table.data th.sorted { color: var(--accent); }
table.data th.sorted.desc::after { content: " ▼"; font-size: 9px; }
table.data th.sorted.asc::after { content: " ▲"; font-size: 9px; }
table.data td.sorted { background: #fff8f5; font-weight: 700; }
table.data td.rank, table.data th.rank { width: 44px; font-weight: 800; color: var(--navy); }
table.data tbody tr:hover td { background: #f8fafc; }
table.data tbody tr:hover td.sorted { background: #fff1eb; }
table.data tr.total td { font-weight: 700; background: #f6f8fb; }
table.data td.empty { padding: 30px; color: var(--muted); }
table.data td.strong { font-weight: 800; color: var(--navy); }
table.data.compact th, table.data.compact td { padding: 7px 6px; }
table.data.wide td:nth-child(2) a { font-weight: 700; }

.dots { display: inline-flex; gap: 3px; }
.dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; font-style: normal; }
.dot.W { background: var(--win); }
.dot.L { background: var(--lose); }
.dot.D { background: var(--draw); }

.matrix td { font-size: 13px; }
.matrix td.self { background: repeating-linear-gradient(45deg, #f0f2f5 0 6px, #fafbfc 6px 12px); }
.matrix td.adv { color: var(--win); font-weight: 700; }
.matrix td.dis { color: var(--lose); }
.matrix th.left { background: #fff; }
.legend { display: inline-block; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.legend.adv { color: var(--win); background: #e8f1fd; }
.legend.dis { color: var(--lose); background: #fdeaea; }

/* ───────── 박스스코어 ───────── */
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #12304f 60%, #144034 100%); color: #fff;
  border-radius: var(--radius); padding: 26px 20px; margin-bottom: 18px;
}
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; opacity: .75; }
.sb-team.win { opacity: 1; }
.sb-team a { font-size: 19px; font-weight: 800; }
.sb-team a:hover { color: #fff; text-decoration: underline; }
.sb-res { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.12); }
.sb-team.win .sb-res { background: var(--accent); }
.sb-center { text-align: center; }
.sb-meta { margin: 0 0 6px; font-size: 13px; color: #b8c6da; }
.sb-score { margin: 0 0 6px; font-size: 52px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; display: flex; gap: 14px; justify-content: center; align-items: center; }
.sb-score b { color: #8fa3c0; }
.sb-score b.w { color: #fff; }
.sb-score i { font-style: normal; font-size: 34px; color: #8fa3c0; }
.sb-score.pending { font-size: 34px; letter-spacing: .1em; color: #b8c6da; }
.admin-bar { text-align: right; margin: -6px 0 12px; }
.linescore { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.linescore th.left { min-width: 150px; }
.linescore:not(.edit) td:nth-last-child(-n+4), .linescore:not(.edit) th:nth-last-child(-n+4) { background: #f6f8fb; }
.box-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.box-team { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }
.box-team small { font-size: 12px; color: var(--muted); font-weight: 600; }
.highlights { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 6px; font-size: 13.5px; }
.highlights div { display: flex; gap: 6px; }
.highlights dt { font-weight: 700; color: var(--accent); }
.highlights dd { margin: 0; }
.dec { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; color: #fff; background: var(--draw); }
.dec.W { background: var(--win); }
.dec.L { background: var(--lose); }
.dec.S { background: var(--field); }
.memo h3 { font-size: 15px; margin-bottom: 6px; }

/* ───────── 기록실 TOP5 ───────── */
.top5-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.top5 h3 { font-size: 15px; margin-bottom: 8px; color: var(--navy); }
.top5 ol { list-style: none; margin: 0; padding: 0; }
.top5 li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.top5 li:last-child { border-bottom: 0; }
.top5 .r { font-weight: 800; color: var(--muted); text-align: center; }
.top5 .who { display: flex; flex-direction: column; line-height: 1.3; }
.top5 .who small { color: var(--muted); font-size: 12px; }
.top5 b { font-size: 16px; font-variant-numeric: tabular-nums; }
.top5 li.first .r { background: var(--accent); color: #fff; border-radius: 50%; width: 24px; height: 24px; line-height: 24px; }
.top5 li.first .who a { font-weight: 800; }
.top5 li.first b { color: var(--accent); font-size: 18px; }

/* ───────── 소개 ───────── */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.prose p { margin: 0 0 12px; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.info-list h2 { font-size: 16px; margin-bottom: 10px; }
.info-list dl { display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px; margin: 0; font-size: 14px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }
.div-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.div-teams h3 { font-size: 16px; margin-bottom: 10px; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { --tc: #1f3a5f; display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); border-left: 4px solid var(--tc); font-size: 14px; font-weight: 600; }
.rule-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rule-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list strong { color: var(--navy); }
.ground-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.ground { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.ground h3 { font-size: 17px; margin-bottom: 6px; }
.ground p { margin: 4px 0; font-size: 14px; }
.ground .addr { color: var(--muted); }
.ground-art { background: #e8f3ec; border-radius: 10px; padding: 8px; }

/* ───────── 플레이오프 ───────── */
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.po-card h2 { font-size: 17px; margin-bottom: 12px; }
.po-card .game { grid-template-columns: 1fr; }
.champion { margin: 14px 0 0; padding: 12px; background: #fff7e0; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* ───────── 팀 / 선수 ───────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.team-card {
  --tc: #1f3a5f;
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--tc); border-radius: var(--radius);
  padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,35,64,.12); color: inherit; }
.team-card strong { font-size: 17px; margin-top: 4px; }
.team-card span { font-size: 13px; color: var(--muted); }
.team-card small { font-size: 12px; color: var(--muted); }
.team-hero, .player-hero {
  --tc: #1f3a5f;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000));
  color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.th-info { flex: 1; min-width: 200px; }
.th-info .muted { color: rgba(255,255,255,.75); margin: 0; }
.th-info h2 { font-size: 28px; }
.th-meta { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: rgba(255,255,255,.85); }
.th-record, .ph-stats { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.th-record div, .ph-stats div { background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px 14px; text-align: center; min-width: 76px; }
.th-record dt, .ph-stats dt { font-size: 12px; color: rgba(255,255,255,.8); }
.th-record dd, .ph-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* 선수 기본 프로필: 실루엣(player-default.svg)을 마스크로 써서 팀 색상으로 칠함 */
.ph-avatar { position: relative; width: 104px; height: 104px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.ph-avatar::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--tc);
  -webkit-mask: url(/img/player-default.svg) center bottom / 100% no-repeat; mask: url(/img/player-default.svg) center bottom / 100% no-repeat;
}
.ph-num {
  position: absolute; right: -8px; bottom: -6px; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 21px;
  display: grid; place-items: center; background: var(--navy); border: 3px solid #fff;
  font-size: 20px; font-weight: 900; font-style: italic; line-height: 1; font-variant-numeric: tabular-nums;
}
.ph-info { flex: 1; min-width: 200px; }
.ph-info h2 { font-size: 30px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-info p { margin: 6px 0 0; color: rgba(255,255,255,.85); }
.ph-info a:hover, .th-info a:hover { color: #fff; text-decoration: underline; }
.res { font-weight: 800; }
.res.W { color: var(--win); }
.res.L { color: var(--lose); }
.res.D { color: var(--draw); }

/* ───────── 게시판 ───────── */
.board-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.board-table th { background: #f6f8fb; color: var(--muted); font-size: 13px; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.board-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); text-align: center; }
.board-table .num { width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-table .author { width: 160px; }
.board-table .date { width: 110px; color: var(--muted); font-size: 13px; }
.board-table .title a { font-weight: 600; }
.board-table tr.pinned td { background: #fffaf7; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.pager a { min-width: 36px; padding: 6px 10px; text-align: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.post-head h2 { font-size: 22px; margin-bottom: 6px; }
.post-head p { margin: 0; font-size: 13.5px; }
.post-body { min-height: 120px; }
.post-actions { display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.comments h3 { font-size: 16px; margin-bottom: 10px; }
.comments ul { list-style: none; margin: 0 0 16px; padding: 0; }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.c-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.c-head time { color: var(--muted); font-size: 12px; }
.c-head .linklike { margin-left: auto; color: var(--muted); font-size: 12px; }
.c-head .linklike:hover { color: var(--lose); }
.c-body p { margin: 4px 0 0; font-size: 14.5px; }
.comment-form { background: var(--bg); border-radius: 10px; padding: 14px; }
.post-nav { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-nav a { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; gap: 14px; font-size: 14px; }
.post-nav a:last-child { border-bottom: 0; }
.post-nav span { color: var(--muted); font-weight: 600; flex: none; }

/* ───────── 오더지 ───────── */
.order-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: #000; }
.order-sheet h2 { text-align: center; font-size: 24px; margin-bottom: 14px; }
.os-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; font-size: 14px; }
.os-team { font-size: 16px; margin: 16px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.os-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.os-lineup, .os-roster { width: 100%; border-collapse: collapse; font-size: 14px; }
.os-lineup th, .os-lineup td, .os-roster th, .os-roster td { border: 1px solid #555; padding: 6px; text-align: center; }
.os-lineup td { height: 38px; }
.os-lineup th, .os-roster th { background: #eee; }
.os-sign { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 26px; font-size: 14px; }

/* ───────── 관리자 ───────── */
.admin-head { background: linear-gradient(120deg, #3a2a1a, #1f1a14 70%); }
.login { padding: 30px; }
.login h1 { font-size: 22px; margin-bottom: 18px; text-align: center; }
.admin-games .actions { display: flex; gap: 4px; justify-content: center; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status.final { background: #e3f4e9; color: var(--field); }
.status.scheduled { background: #e7eef8; color: var(--navy-3); }
.status.cancelled { background: #eceff3; color: var(--muted); }
.edit-table input, .edit-table select { padding: 5px 6px; border-radius: 6px; font-size: 13.5px; }
.edit-table input[type=number] { width: 52px; text-align: center; }
.edit-table input.n2 { width: 46px; }
.edit-table input.n3 { width: 58px; text-align: center; }
.edit-table input.ip { width: 58px; text-align: center; }
.edit-table select[name=player_id] { min-width: 170px; }
.edit-table td { padding: 4px 3px; }
.edit-table td.actions { display: flex; gap: 4px; justify-content: center; }
.edit-table td.stack { display: flex; flex-direction: column; gap: 4px; }
.edit-table td.stack input { width: 100%; }
.linescore.edit input.inn { width: 42px; text-align: center; padding: 6px 2px; border: 1px solid var(--line); border-radius: 6px; }
.box-edit { overflow: hidden; }
.box-edit > .btn { margin-top: 8px; }
.sticky-save { position: sticky; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 12px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 0; border-radius: var(--radius) var(--radius) 0 0; z-index: 5; backdrop-filter: blur(6px); }
.sticky-save [data-check] { color: var(--accent-2); font-size: 13px; }
.admin-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.team-pick { padding: 12px; position: sticky; top: 160px; }
.team-pick ul { list-style: none; margin: 10px 0 0; padding: 0; }
.team-pick .grp { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 8px 4px; }
.team-pick a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.team-pick a small { margin-left: auto; color: var(--muted); }
.team-pick a.on { background: var(--bg); font-weight: 700; color: var(--navy); }
.roster-edit input[name=name] { width: 110px; }
.narrow-card { max-width: 460px; }

/* ───────── 모달 / 토스트 ───────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 38, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 22px; width: min(640px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { font-size: 18px; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--lose); }

/* ───────── 푸터 ───────── */
.site-footer { background: #0a1b31; color: #8fa3c0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.footer-inner strong { color: #fff; font-size: 15px; }
.footer-inner p { margin: 6px 0 0; }
.footer-inner .copy { font-size: 12px; color: #6d819d; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a:hover { color: #fff; }

/* ───────── 반응형 ───────── */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  /* 태블릿·좁은 PC: 공지 옆 2×2 버튼은 유지하고 버튼 칸만 좁힘 */
  .home-top { grid-template-columns: minmax(0, 1fr) clamp(220px, 34vw, 340px); gap: 14px; }
  .leader-grid, .top5-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .gnb > ul > li > a { padding: 22px 11px; font-size: 15px; }
  .gnb > ul > li.on > a::after, .gnb > ul > li:hover > a::after { left: 11px; right: 11px; }
}
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .menu-toggle { display: block; }
  .gnb {
    position: fixed; top: 90px; left: 0; right: 0; bottom: 0; background: var(--navy); overflow-y: auto;
    transform: translateX(100%); transition: transform .2s; padding: 8px 16px 40px;
  }
  .menu-open .gnb { transform: none; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .gnb > ul { flex-direction: column; gap: 0; }
  .gnb > ul > li > a { padding: 14px 4px 6px; font-size: 17px; color: #fff; }
  .gnb > ul > li > a::after { display: none; }
  .drop { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; box-shadow: none; display: flex; flex-wrap: wrap; padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .drop a { color: #c3d0e2; padding: 6px 14px 6px 0; }
  .drop a:hover { background: none; color: #fff; }
  .logo small { display: none; }
  .logo-mark { --s: 46px; }
  .logo strong { font-size: 17px; }
  .logo strong.logo-en { font-size: 15px; letter-spacing: .03em; white-space: normal; line-height: 1.2; }
  .subnav { top: 90px; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero-bg { object-position: 80% 30%; }
  .hero::before, .hero.photo::before {
    background: linear-gradient(0deg, rgba(4,11,26,.72) 0%, rgba(4,11,26,.5) 45%, rgba(4,11,26,.08) 75%, rgba(4,11,26,0) 100%);
  }
  .hero-inner { padding-top: 110px; padding-bottom: 24px; }
  .hero.photo .hero-bg { object-position: 78% 62%; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .game { grid-template-columns: 1fr; gap: 8px; }
  .g-act { text-align: center; }
  .scoreboard { padding: 20px 12px; gap: 8px; }
  .sb-score { font-size: 40px; }
  .sb-team a { font-size: 15px; }
  .admin-split { grid-template-columns: minmax(0, 1fr); }
  .team-pick { position: static; }
  .os-grid { grid-template-columns: 1fr; }
  .rule-list li { grid-template-columns: 1fr; gap: 2px; }
  .board-table .author, .board-table .date { display: none; }
  .page-head h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .leader-grid, .top5-grid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .ground { grid-template-columns: 1fr; }
  .ground-art { max-width: 160px; }
  .po-grid { grid-template-columns: 1fr; }
  .g-team .nm { font-size: 14px; }
  .board-table .num:last-child { display: none; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: flex-end; }
}

/* ───────── 인쇄 (오더지) ───────── */
/* ───────── 기록지 ───────── */
.score-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: #000; margin-bottom: 20px; overflow-x: auto; }
.ss-head h2 { text-align: center; font-size: 20px; margin-bottom: 8px; }
.ss-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; font-size: 13px; }
.ss-team { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; margin: 12px 0 8px; }
.ss-team b { background: #000; color: #fff; padding: 0 8px; border-radius: 3px; }
.score-sheet table { border-collapse: collapse; font-size: 12px; }
.score-sheet th, .score-sheet td { border: 1px solid #444; padding: 0; text-align: center; }
.score-sheet th { background: #eee; padding: 4px 2px; font-weight: 700; }
.ss-bat { width: 100%; min-width: 900px; table-layout: fixed; }
.ss-bat .no { width: 34px; } .ss-bat .num { width: 40px; } .ss-bat .name { width: 96px; } .ss-bat .pos { width: 40px; }
.ss-bat .sum { width: 36px; }
.ss-bat td { height: 44px; }
.ss-bat tr.sub-start td { border-top: 2px solid #000; }
.ss-bat td.inn { position: relative; }
.dia { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; border: 1px solid #999; transform: translate(-50%, -50%) rotate(45deg); }
.ss-bat tfoot td.inn-sum { height: 26px; color: #999; }
.ss-head h2 small { font-size: 12px; font-weight: 600; color: #555; }
.kbo-info, .kbo-line { width: 100%; min-width: 900px; margin-bottom: 8px; }
.kbo-info th { width: 70px; }
.kbo-info td { padding: 5px 8px; text-align: left; height: 26px; }
.kbo-line { table-layout: fixed; }
.kbo-line th, .kbo-line td { height: 24px; }
.kbo-line .team { width: 130px; text-align: left; padding-left: 8px; }
.kbo-line .rheb { background: #ddd; width: 34px; }
.ss-bat .sum { width: 32px; font-size: 11px; }
.ss-bat tfoot th.left { text-align: left; padding-left: 8px; }
.ss-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; margin-top: 10px; align-items: start; }
.ss-pit th { font-size: 11px; }
.ss-sum { width: 100%; }
.ss-sum th { width: 64px; font-size: 11px; padding: 2px; }
.ss-sum td { height: 19px; }
.ss-roster-line { font-size: 11px; margin: 8px 0 0; line-height: 1.6; }
.ss-pit { width: 100%; }
.ss-pit td { height: 28px; } .ss-pit .name { width: 110px; }
.ss-roster { width: 100%; } .ss-roster td { padding: 2px 4px; height: 18px; }
.ss-note { border: 1px solid #444; padding: 8px 10px; font-size: 12px; line-height: 1.7; }

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .page-head, .subnav, .toolbar, .toast, .no-print, .notice-banner { display: none !important; }
  .page-body { padding: 0; }
  .order-sheet { border: 0; padding: 0; }
  .os-grid { grid-template-columns: 1.6fr 1fr; }
  .score-sheet { border: 0; padding: 0; margin: 0; overflow: visible; break-after: page; }
  .score-sheet:last-child { break-after: auto; }
  .ss-bat, .kbo-info, .kbo-line { min-width: 0; }
  .score-sheet.kbo { font-size: 11px; }
  .ss-bat td { height: 34px; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ───────── 상단 띠 배너 / 로그인 링크 ───────── */
.notice-banner { background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 700; padding: 7px 16px; }
.notice-banner a:hover { color: #fff; text-decoration: underline; }
.topbar-links { align-items: center; }
.topbar-links .who { color: #fff; font-weight: 700; }
.topbar-links .signup-link { color: #fff; background: rgba(255,255,255,.12); padding: 2px 10px; border-radius: 999px; }
.topbar-links .admin-link { color: #ffcf9e; font-weight: 700; }

/* ───────── 로그인 · 회원가입 · 내 정보 · 참가신청 ───────── */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 36px 16px 56px; }
.auth-wrap.wide { max-width: 600px; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card > .muted { margin: 0 0 18px; font-size: 14px; }
.auth-logo { display: block; margin: 0 auto 10px; }
.auth-card:has(.auth-logo) h1, .auth-card:has(.auth-logo) > .muted { text-align: center; }
.auth-links { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--accent); font-weight: 700; margin-left: 4px; }
.auth-admin { text-align: center; margin: 14px 0 0; font-size: 13px; }
.auth-admin a { color: var(--muted); }
.form-sec { font-size: 15px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.req { color: var(--accent); }
.inline-input { display: flex; gap: 8px; }
/* 이메일: 아이디 @ 도메인(선택·직접입력) */
.email-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.email-row input, .email-row select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0; }
.email-row [data-elocal] { flex: 1 1 140px; }
.email-row [data-edomain] { flex: 1 1 130px; }
.email-row [data-ecustom] { flex: 1 1 100%; }
.email-row .at { color: var(--muted); font-weight: 700; }
/* 생년월일: 년 · 월 · 일 칸 */
.birth-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.birth-part { display: flex; align-items: center; gap: 6px; min-width: 0; }
.birth-part select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; background: #fff; }
.birth-part span { font-size: 14px; color: var(--muted); flex: none; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 2px; }
.radio-row .check { font-weight: 600; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.inline-input input { flex: 1; min-width: 0; }
.field-msg { font-size: 12.5px; min-height: 1em; }
.field-msg.ok { color: var(--field); }
.field-msg.bad { color: var(--lose); }
.privacy-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-bottom: 10px; }
.privacy-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.check.agree { margin-bottom: 18px; }
.danger-text { color: var(--lose) !important; }
.writer-as { background: var(--bg); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.apply-form > .muted { margin-top: 0; }
.done-card { text-align: center; padding: 40px 20px; }
.done-card h2 { margin-bottom: 8px; }

/* ───────── 관리자 화면 (왼쪽 메뉴 + 본문) ───────── */
.adm { max-width: 1280px; margin: 0 auto; padding: 16px 16px 48px; }
.adm-top { background: #161b2e; border-radius: 10px; margin-bottom: 16px; overflow-x: auto; }
.adm-top-inner { display: flex; justify-content: space-around; min-width: max-content; }
.adm-top a { color: #fff; font-weight: 800; font-size: 15px; padding: 15px 18px; white-space: nowrap; }
.adm-top a:hover, .adm-top a.on { color: #ffbf47; }
.adm-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-side { position: sticky; top: 108px; }
.adm-profile { background: linear-gradient(180deg, #3a4357, #2b3243); color: #fff; border-radius: 10px 10px 0 0; padding: 16px; text-align: center; }
.adm-profile img { background: #eef1f8; border-radius: 6px; padding: 6px; width: 84px; height: 84px; }
.adm-profile strong { display: block; color: #8de08a; font-size: 16px; margin: 10px 0 8px; text-decoration: underline; }
.adm-profile dl { margin: 0 0 8px; font-size: 13px; }
.adm-profile dl div { display: flex; justify-content: space-between; padding: 2px 0; }
.adm-profile dt { color: #cfd6e4; }
.adm-profile dd { margin: 0; font-weight: 700; color: #7fd4ff; }
.adm-me { font-size: 12px; color: #ffcf9e; margin: 0 0 10px; }
.adm-menu { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.adm-menu > summary { display: none; }
.adm-menu section h3 { background: #e9ebef; font-size: 13px; padding: 10px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adm-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.adm-menu li a { display: block; padding: 5px 14px 5px 24px; font-size: 13.5px; color: #4a5568; position: relative; }
.adm-menu li a::before { content: "·"; position: absolute; left: 14px; }
.adm-menu li a:hover { color: var(--accent); }
.adm-menu li a.on { color: var(--accent); font-weight: 800; background: #fff6f2; }
.adm-main { min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.adm-head h1 { font-size: 22px; }
.adm-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.adm-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #dff1ea; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.adm-notice p { margin: 0 0 4px; }
.adm-notice small { color: var(--muted); }
.adm-notice .hl { color: var(--field); }
.adm-notice .btn { border-color: var(--field); color: var(--field); }
.adm-strip { display: flex; flex-wrap: wrap; gap: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 6px; margin-bottom: 10px; font-size: 14px; }
.adm-strip span { padding: 0 16px; border-right: 1px solid var(--line); }
.adm-strip span:last-child { border-right: 0; }
.adm-strip .em { color: var(--lose); font-weight: 800; }
.adm-strip.sub { font-size: 13px; color: var(--muted); }
.adm-strip.sub b { color: var(--text); }
.adm-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 16px 0 20px; }
.adm-quick a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 8px; text-align: center; font-weight: 700; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; align-items: center; box-shadow: var(--shadow); }
.adm-quick a:hover { border-color: var(--accent); }
.adm-quick b { font-size: 22px; }
.adm-quick em { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adm-panel header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--text); padding-bottom: 8px; margin-bottom: 4px; }
.adm-panel h2 { font-size: 16px; }
.adm-panel .plus { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; font-size: 18px; color: var(--muted); background: #fff; }
.adm-panel .empty-state { border: 0; background: transparent; padding: 30px 8px; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list li { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.adm-list li > a:first-child, .adm-list li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-list time { color: var(--muted); font-size: 12.5px; flex: none; }
.tool-input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 160px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.menu-grid fieldset, .team-checks { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.menu-grid legend, .team-checks legend { font-weight: 800; padding: 0 6px; }
.menu-grid .check { padding: 4px 0; }
.team-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 8px; }
.code-hint { background: #0d2340; color: #d7e3f4; border-radius: 8px; padding: 10px 14px; font-size: 13px; overflow-x: auto; }
.app-list { display: grid; gap: 14px; }
.app-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.app-card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.app-card time { color: var(--muted); font-size: 13px; }
.app-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; margin: 0 0 10px; font-size: 14px; }
.app-info dt { color: var(--muted); font-size: 12px; }
.app-info dd { margin: 0; font-weight: 600; }
.app-msg { background: var(--bg); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
table.data tr.todo td { background: #fff8ef; }

@media (max-width: 1024px) {
  .adm-quick { grid-template-columns: repeat(3, 1fr); }
  .adm-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .adm-body { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: static; }
  .adm-profile { display: none; }
  .adm-menu { border-radius: 10px; border-top: 1px solid var(--line); }
  .adm-menu > summary { display: block; padding: 12px 14px; font-weight: 800; cursor: pointer; }
  .adm-top a { padding: 12px 12px; font-size: 14px; }
  .adm-strip span { border-right: 0; padding: 2px 12px; }
}
@media (max-width: 560px) {
  .adm-quick { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 20px; }
  /* 휴대폰: 엠블럼과 리그명이 한 줄에 들어가도록 줄임 */
  .hero-text { --tw: min(262px, calc(100vw - 112px)); --eh: 74px; }
  .hero-words .hero-slogan { font-size: 22px; }
  .hero-title { font-size: 29px; }
}
td.nowrap { white-space: nowrap; }

/* 자동일정매치: 팀당 경기수 요약 + 미리보기 팀별 경기수 */
.bulk-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 6px; }
.bulk-summary .bs-item { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fb; font-size: 13px; }
.bulk-summary .bs-item em { font-style: normal; color: var(--muted); font-weight: 600; }
.bulk-summary .bs-item b { font-size: 17px; color: var(--navy-2); }
.bulk-summary .bs-item.main { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.bulk-summary .bs-item.main em, .bulk-summary .bs-item.main b { color: #fff; }
.bulk-summary .bs-note { font-size: 12.5px; color: var(--accent-2); font-weight: 600; }
.mini-title { font-size: 14px; font-weight: 800; margin: 14px 0 6px; }
table.team-count { max-width: 520px; }
table.team-count tr.short td { background: #fff4e5; }

/* ───────── 리그규정 문서 + 편집기 ───────── */
.rules-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 38px; }
.rules-doc { line-height: 1.85; font-size: 15px; color: #1d2433; overflow-wrap: anywhere; }
.rules-doc > :first-child { margin-top: 0; }
.rules-doc p { margin: 0 0 6px; }
.rules-doc h2 { font-size: 22px; margin: 18px 0 10px; }
.rules-doc h3 { font-size: 18px; margin: 16px 0 8px; }
.rules-doc h4 { font-size: 16px; margin: 14px 0 6px; }
.rules-doc img { max-width: 100%; height: auto; border-radius: 6px; vertical-align: middle; }
.rules-doc blockquote { margin: 10px 0; padding: 10px 16px; border-left: 4px solid var(--accent); background: #fff6f1; border-radius: 0 8px 8px 0; }
.rules-doc hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.rules-doc ul, .rules-doc ol { padding-left: 1.6em; margin: 6px 0; }
.rules-doc table { border-collapse: collapse; margin: 10px 0; max-width: 100%; }
.rules-doc th, .rules-doc td { border: 1px solid #c9d1de; padding: 6px 10px; min-width: 40px; vertical-align: top; }
.rules-doc th { background: #eef2f8; font-weight: 700; }
.rules-doc a { color: #1d5fd1; text-decoration: underline; }
.form-actions.center { justify-content: center; }

.rte { border: 1px solid #c9d1de; border-radius: 10px; background: #fff; overflow: hidden; }
.rte-toolbar { background: #f5f7fa; border-bottom: 1px solid #dfe4ec; padding: 6px 8px; display: grid; gap: 6px; }
.rte-toolbar.disabled { opacity: .45; pointer-events: none; }
.rte-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rte-toolbar select { height: 30px; padding: 0 6px; border: 1px solid #c9d1de; border-radius: 5px; background: #fff; font-size: 13px; max-width: 130px; }
.rte-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 30px; height: 30px; padding: 0 7px;
  border: 1px solid #c9d1de; border-radius: 5px; background: #fff; color: #222; font-size: 14px; cursor: pointer; line-height: 1; }
.rte-btn:hover { background: #eaf0fb; border-color: #9fb3d6; }
.rte-btn.on { background: #dbe6fa; border-color: #6d8fcf; }
.rte-btn.photo { font-size: 13px; font-weight: 700; }
.rte-sep { width: 1px; height: 22px; background: #d3d9e3; margin: 0 3px; }
.rte-color { position: relative; overflow: hidden; }
.rte-color input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.rte-color .hl { background: var(--c, #fff200); padding: 0 3px; font-weight: 700; }
.rte-color .fc { color: var(--c, #e60012); font-weight: 800; border-bottom: 3px solid var(--c, #e60012); line-height: 1.1; }
.rte-area { min-height: 420px; max-height: 70vh; overflow: auto; padding: 18px 22px; outline: none; }
.rte-area:focus { box-shadow: inset 0 0 0 2px #9fb3d6; }
.rte-area img { cursor: default; }
.rte-source { display: block; width: 100%; min-height: 420px; border: 0; padding: 14px; font: 13px/1.6 Consolas, "D2Coding", monospace; resize: vertical; }
.rte-source[hidden], .rte-area[hidden] { display: none; }
.rte-foot { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-top: 1px solid #dfe4ec; background: #f5f7fa; }
.rte-mode { border: 1px solid #c9d1de; background: #fff; border-radius: 4px; font-size: 12px; padding: 3px 8px; cursor: pointer; }
.rte-mode.on { background: #0b1f44; color: #fff; border-color: #0b1f44; }
.rte-hint { margin-left: auto; font-size: 12px; }
@media (max-width: 640px) {
  .rte-area { padding: 12px; min-height: 320px; }
  .rte-hint { display: none; }
}
[hidden] { display: none !important; }

/* 참가신청: 팀 로고 고르기 */
.logo-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-preview { width: 88px; height: 88px; flex: none; border: 2px dashed #c9d1de; border-radius: 12px; display: grid; place-items: center;
  background: repeating-conic-gradient(#f1f4f8 0% 25%, #fff 0% 50%) 50% / 14px 14px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.3; overflow: hidden; }
.logo-preview.has { border-style: solid; border-color: #9fb3d6; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 240px; }
.logo-actions small { flex-basis: 100%; }
.app-card header { gap: 10px; }
.app-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
.app-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chip-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 5px; border-radius: 50%; background: #fff; }

/* 운영설정: 순위 방식 고르기 */
.rank-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rank-method { display: flex; gap: 8px; align-items: center; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.rank-method:has(input:checked) { border-color: var(--navy-2); background: #eef3fb; box-shadow: inset 0 0 0 1px var(--navy-2); }
.rank-method input { margin: 0; }
.rank-method span { display: grid; gap: 3px; }
.rank-method b { font-size: 15px; }
.rank-method small { font-size: 12.5px; line-height: 1.45; }

/* 선수 등록 규정 */
.joined-cell { white-space: nowrap; }
.joined-cell input[type=date] { width: 132px; }
.joined-cell .inelig { display: block; color: var(--accent-2); font-size: 11px; font-weight: 700; margin-top: 2px; }

/* 팀 감독 계정 · 우리팀 관리 */
.manager-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.manager-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.manager-list li .btn, .manager-list li .tag { margin-left: auto; }
.manager-add { max-width: 420px; margin-top: 6px; }
.myteam-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 4px solid var(--tc); }
.myteam-head > div { flex: 1 1 240px; min-width: 0; }
.myteam-head h2 { margin: 2px 0 4px; font-size: 24px; }
.topbar-links .myteam-link { color: #ffd166; font-weight: 700; }

/* 부관리자 관리 (권한 체크 표) — 가로 스크롤 없이 한 화면에 다 보이도록 칸 너비 고정 */
.perm-table { width: 100%; table-layout: fixed; }
.perm-table col.c-user { width: 13%; }
.perm-table col.c-nick { width: 10%; }
.perm-table col.c-perm { width: 6.4%; }
.perm-table col.c-act { width: 13%; }
table.data.perm-table th { font-size: 12px; line-height: 1.3; padding: 8px 2px; white-space: nowrap; background: #eef2f8; vertical-align: middle; }
table.data.perm-table td { padding: 7px 4px; }
.perm-table td.perm { text-align: center; }
.perm-table td.perm input { width: 19px; height: 19px; accent-color: #1d5fd1; cursor: pointer; }
.perm-table td.user b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-table td.user small { display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-table input[data-nick] { width: 100%; min-width: 0; box-sizing: border-box; }
.perm-table td.act { text-align: center; }
.perm-table td.act .btn { padding: 4px 8px; margin: 1px; line-height: 1.2; }
.perm-table tr.perm-add td { background: #f6f8fb; vertical-align: top; }
.pick-user { display: flex; gap: 3px; }
.pick-user input { flex: 1 1 auto; width: 0; min-width: 0; }
.pick-user .btn { flex: none; padding: 4px 6px; }
.pick-result { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pick-item { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 6px; font-size: 12px; cursor: pointer; text-align: left; }
.pick-item:hover { background: #eaf0fb; }
.picked { color: #1d5fd1; font-weight: 700; font-size: 12.5px; }
.muted.pad { padding: 12px 16px; margin: 0; }
@media (max-width: 1150px) {
  table.data.perm-table th { font-size: 11px; letter-spacing: -.5px; padding: 6px 0; }
  .perm-table col.c-user { width: 12%; }
  .perm-table col.c-nick { width: 8.5%; }
  .perm-table col.c-perm { width: 6.8%; }
  .perm-table col.c-act { width: 11.5%; }
  table.data.perm-table td { padding: 6px 2px; }
  .perm-table td.act .btn { padding: 3px 5px; font-size: 11.5px; }
}

/* ───────── 메인 화면 팀 순위표: 눈에 잘 띄는 색 ───────── */
.standings-card, .home-grid .two-col > .card { border-top: 4px solid var(--accent); }
.standings-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.standings-card .card-head h2::before { content: "🏆"; font-size: .95em; }
.standings-card .seg a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.standings-card > .card-head, .home-grid .two-col > .card > .card-head { padding-bottom: 12px; border-bottom: 2px solid #d5dce6; }
table.data.standings-home thead th { background: linear-gradient(180deg, #16326a, #0b1f44); color: #fff; border-bottom: 0; letter-spacing: .02em; }
table.data.standings-home thead th.strong { color: #ffd166; }
table.data.standings-home tbody td { border-bottom: 1px solid #e6ebf3; }
table.data.standings-home tbody tr:nth-child(even) td { background: #f8fafd; }
/* 1~3위 줄 바탕 */
table.data.standings-home tbody tr:nth-child(1) td { background: #fff7dd; }
table.data.standings-home tbody tr:nth-child(2) td { background: #f3f6fa; }
table.data.standings-home tbody tr:nth-child(3) td { background: #fdf1e7; }
table.data.standings-home tbody tr:hover td { background: #eaf2ff; }
/* 순위 숫자: 동그라미 배지 (1위 금 · 2위 은 · 3위 동) */
table.data.standings-home .rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e3e9f3; color: var(--navy); font-size: 13px; font-weight: 900; }
table.data.standings-home .rk1 { background: linear-gradient(135deg, #ffd54a, #e6a400); color: #4a3200; box-shadow: 0 2px 6px rgba(230, 164, 0, .45); }
table.data.standings-home .rk2 { background: linear-gradient(135deg, #e4e9f0, #9aa7b8); color: #2b3442; }
table.data.standings-home .rk3 { background: linear-gradient(135deg, #f2b98a, #c4743c); color: #fff; }
/* 승·패 색 */
table.data.standings-home tbody td:nth-child(4) { color: #1d5fd1; font-weight: 700; }
table.data.standings-home tbody td:nth-child(5) { color: #d64545; font-weight: 700; }
/* 기준 칸(승점·승률·승) 강조 */
table.data.standings-home td.strong { color: var(--accent-2); font-size: 15px; font-weight: 900; }
/* 아직 경기가 없으면(모두 동률) 1~3위 색은 쓰지 않음 */
table.data.standings-home.no-games tbody tr td { background: #fff; }
table.data.standings-home.no-games tbody tr:nth-child(even) td { background: #f8fafd; }
table.data.standings-home.no-games .rk1, table.data.standings-home.no-games .rk2, table.data.standings-home.no-games .rk3 { background: #e3e9f3; color: var(--navy); box-shadow: none; }

/* ───────── 기록실 표 공통 색 (팀공격·팀수비·타자·투수) — 팀순위와 같은 색 ───────── */
.rec-card { border-top: 4px solid var(--accent); }
table.data.rec-table thead th { background: linear-gradient(180deg, #16326a, #0b1f44); color: #fff; border-bottom: 0; }
table.data.rec-table thead th.sortable:hover { color: #ffd166; }
table.data.rec-table thead th.sorted { color: #ffd166; }
table.data.rec-table tbody td { border-bottom: 1px solid #e6ebf3; }
table.data.rec-table tbody tr:nth-child(even) td { background: #f8fafd; }
table.data.rec-table tbody tr:has(.rk1) td { background: #fff7dd; }
table.data.rec-table tbody tr:has(.rk2) td { background: #f3f6fa; }
table.data.rec-table tbody tr:has(.rk3) td { background: #fdf1e7; }
table.data.rec-table tbody tr:hover td { background: #eaf2ff; }
table.data.rec-table td.sorted { color: var(--accent-2); font-weight: 900; background-color: rgba(255, 138, 0, .08); }
table.data.rec-table td.strong { color: var(--accent-2); }
table.data.rec-table .rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e3e9f3; color: var(--navy); font-size: 13px; font-weight: 900; }
table.data.rec-table .rk1 { background: linear-gradient(135deg, #ffd54a, #e6a400); color: #4a3200; box-shadow: 0 2px 6px rgba(230, 164, 0, .45); }
table.data.rec-table .rk2 { background: linear-gradient(135deg, #e4e9f0, #9aa7b8); color: #2b3442; }
table.data.rec-table .rk3 { background: linear-gradient(135deg, #f2b98a, #c4743c); color: #fff; }
table.data.rec-table.no-games tbody tr td { background: #fff; }
table.data.rec-table.no-games tbody tr:nth-child(even) td { background: #f8fafd; }
table.data.rec-table.no-games .rk1, table.data.rec-table.no-games .rk2, table.data.rec-table.no-games .rk3 { background: #e3e9f3; color: var(--navy); box-shadow: none; }

/* 부문별 TOP5 카드 — 남색 제목 띠 + 금·은·동 */
.top5 { border-top: 4px solid var(--accent); padding-top: 0; overflow: hidden; }
.top5 h3 { margin: 0 -20px 8px; padding: 10px 20px; background: linear-gradient(180deg, #16326a, #0b1f44); color: #fff; font-size: 14.5px; }
.top5 .r { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3e9f3; color: var(--navy); font-size: 12.5px; }
.top5 li.r1 .r { background: linear-gradient(135deg, #ffd54a, #e6a400); color: #4a3200; box-shadow: 0 2px 6px rgba(230, 164, 0, .45); }
.top5 li.r2 .r { background: linear-gradient(135deg, #e4e9f0, #9aa7b8); color: #2b3442; }
.top5 li.r3 .r { background: linear-gradient(135deg, #f2b98a, #c4743c); color: #fff; }
.top5 li.r1 { background: #fff7dd; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.top5 li.first b { color: var(--accent-2); font-size: 18px; font-weight: 900; }
.top5 li b { color: var(--navy); }

/* ───────── 오더지 작성 (게임원 양식 참고) ───────── */
.os2 { background: #fff; border: 1px solid #c9d1de; color: #111; max-width: 1220px; margin: 0 auto; }
.os2-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid #d7dde6; background: #fafbfd; }
.os2-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 8px 0 0; color: #333; }
.os2-ico { font-size: 22px; }
.os2-bar select { height: 32px; min-width: 150px; border: 1px solid #c9d1de; border-radius: 3px; padding: 0 8px; background: #fff; font-size: 13.5px; }
.os2-print { margin-left: auto; border: 0; background: none; font-size: 14px; font-weight: 700; color: #333; text-decoration: underline; cursor: pointer; }
.os2-print:hover { color: var(--accent-2); }
.os2-print-title { display: none; }
.os2-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 84px; padding: 18px 22px 22px; align-items: start; }
/* 칸과 칸 사이 접지선(자르는 선): 가운데 점선 + 가위 표시 */
.os2-col { position: relative; min-width: 0; }
.os2-col + .os2-col::before { content: ""; position: absolute; top: -6px; bottom: -6px; left: -42px; border-left: 2px dashed #8a94a6; }
.os2-col + .os2-col::after { content: "✂"; position: absolute; top: -14px; left: -42px; transform: translateX(-50%) rotate(-90deg); background: #fff; color: #6b7686; font-size: 15px; line-height: 1; padding: 2px 0; }
.os2-ro td { font-size: 13px; }
.os2-ro td.nm { font-weight: 700; }
.os2-info.os2-ro dd { min-height: 24px; display: flex; align-items: center; font-weight: 700; font-size: 13px; padding: 0 6px; border: 1px solid transparent; }
.os2-kind.os2-ro { font-weight: 700; white-space: pre; }
.os2-team-name { font-weight: 800; font-size: 13.5px; padding: 0 6px; }
.os2-sub { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; margin: 0 0 6px; color: #222; }
.os2-sub small { font-weight: 600; color: var(--muted); font-size: 12px; }
.os2-lineup, .os2-roster { width: 100%; border-collapse: collapse; border: 3px solid #111; font-size: 13px; }
.os2-lineup th, .os2-lineup td, .os2-roster th, .os2-roster td { border: 1px solid #111; padding: 0; height: 26px; text-align: center; }
.os2-lineup thead th, .os2-roster thead th { background: #fff; font-weight: 800; height: 22px; border-bottom: 2px solid #111; }
.os2-lineup tbody th, .os2-roster tbody th { font-weight: 800; width: 30px; }
.os2-lineup td { padding: 1px 2px; }
.os2-lineup select, .os2-lineup input { width: 100%; height: 22px; border: 1px solid #b5bcc7; font-size: 12.5px; padding: 0 3px; background: #fff; box-sizing: border-box; }
.os2-lineup td:nth-child(2) { width: 78px; }
.os2-lineup td:nth-child(4) { width: 38px; }
.os2-lineup input.no { text-align: center; }
.os2-info { margin: 10px 0 0; }
.os2-info div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 2px solid #111; }
.os2-info dt { font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.os2-info dd { margin: 0; }
.os2-info input { width: 100%; height: 24px; border: 1px solid #b5bcc7; padding: 0 6px; font-size: 13px; box-sizing: border-box; }
.os2-kind { display: flex; justify-content: center; gap: 14px; padding: 10px 0; border-bottom: 2px solid #111; font-size: 13px; font-weight: 700; }
.os2-kind label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.os2-note { color: #2e9e5b; font-size: 12.5px; margin: 14px 0 0; }
.os2-rosters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.os2-roster td { font-size: 12.5px; }
.os2-roster td.nm { text-align: left; padding-left: 6px; }
.os2-roster thead th:nth-child(2) { width: auto; }
.os2-roster thead th:nth-child(3), .os2-roster thead th:nth-child(4) { width: 40px; }
.os2-hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; text-align: center; }
@media (max-width: 900px) {
  .os2-body { grid-template-columns: 1fr; row-gap: 40px; }
  .os2-col + .os2-col::before { top: -20px; bottom: auto; left: -6px; right: -6px; border-left: 0; border-top: 2px dashed #8a94a6; }
  .os2-col + .os2-col::after { top: -28px; left: 50%; transform: translateX(-50%); }
}
/* 인쇄: A4 세로 한 장, 입력칸 테두리·화살표 없이 글자만 */
@page order { size: A4 landscape; margin: 7mm; }
@media print {
  .os2 { page: order; border: 0; max-width: none; }
  .os2-bar, .os2-hint { display: none !important; }
  .os2-print-title { display: block; text-align: center; font-size: 16px; font-weight: 800; margin: 0 0 6px; }
  .os2-body { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22mm; padding: 0; }
  .os2-col + .os2-col::before { left: -11mm; }
  .os2-col + .os2-col::after { left: -11mm; }
  .os2-info div { padding: 4px 0; }
  .os2-kind { padding: 6px 0; }
  .os2-lineup th, .os2-lineup td, .os2-roster th, .os2-roster td { height: 20px; }
  .os2-sub { margin-bottom: 3px; }
  .os2 .os2-sub-gap { margin-top: 6px; }
  .os2-lineup select, .os2-lineup input, .os2-info input { border: 0; appearance: none; -webkit-appearance: none; background: none; padding: 0 2px; }
  .os2-lineup select::-ms-expand { display: none; }
  .os2-info input[type=date]::-webkit-calendar-picker-indicator { display: none; }
  .os2-note { color: #000; }
}
.os2-sub-gap { margin-top: 12px; }

/* ───────── 오더지 인쇄 미리보기 (A4 가로 종이) ───────── */
body.os2-previewing { overflow: hidden; }
.os2-preview { position: fixed; inset: 0; z-index: 200; background: rgba(20, 26, 38, .82); display: flex; flex-direction: column; }
.os2-preview-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #0b1f44; color: #fff; }
.os2-preview-bar strong { font-size: 15px; }
.os2-preview-bar small { font-weight: 600; opacity: .75; margin-left: 4px; }
.os2-preview-hint { font-size: 12.5px; opacity: .8; margin-right: auto; }
.os2-preview-stage { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
.os2-paper-box { position: relative; flex: none; }
/* 실제 A4 가로 크기(297×210mm, 여백 7mm) 종이를 화면에 맞게 축소 */
.os2-paper { position: absolute; top: 0; left: 0; width: 297mm; height: 210mm; padding: 7mm; box-sizing: border-box; background: #fff; color: #111;
  transform-origin: top left; box-shadow: 0 10px 40px rgba(0,0,0,.45); overflow: hidden; }
.os2-paper-title { text-align: center; font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.os2-paper .os2-body { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22mm; padding: 0; }
.os2-paper .os2-col + .os2-col::before { left: -11mm; }
.os2-paper .os2-col + .os2-col::after { left: -11mm; }
.os2-paper .os2-lineup th, .os2-paper .os2-lineup td { height: 20px; }
.os2-paper .os2-lineup td span { display: block; font-size: 12.5px; }
.os2-paper .os2-left .os2-lineup td:nth-child(3) span { font-weight: 700; }
.os2-paper .os2-sub { margin-bottom: 3px; }
.os2-paper .os2-sub-gap { margin-top: 6px; }
.os2-paper .os2-info div { padding: 4px 0; }
.os2-paper .os2-info dd span, .os2-paper .os2-info dd { font-weight: 700; font-size: 13px; padding: 0 6px; }
.os2-paper .os2-kind { padding: 6px 0; font-weight: 700; white-space: pre; }
@media print { .os2-preview { display: none !important; } }
.os2-paper .os2-lineup th, .os2-paper .os2-lineup td { height: 20px; line-height: 18px; font-size: 12.5px; padding: 0 2px; }
.os2-paper .os2-lineup td span { line-height: 18px; }
.os2-paper .os2-lineup thead th { white-space: nowrap; font-size: 12px; }
.os2-paper .os2-lineup tbody th { width: 32px; }
.os2-paper .os2-info dd { min-height: 24px; display: flex; align-items: center; border: 1px solid transparent; }
.os2-lineup input[data-name] { text-align: center; }

/* ───────── 오더지 인쇄 창 (새 창: 왼쪽 인쇄 설정 / 오른쪽 미리보기) ───────── */
body.pw-body { margin: 0; background: #525a66; height: 100vh; overflow: hidden; }
.pw { display: grid; grid-template-columns: 300px 1fr; height: 100vh; }
.pw-left { background: #fff; padding: 20px 20px 24px; overflow: auto; border-right: 1px solid #c9d1de; display: flex; flex-direction: column; gap: 14px; }
.pw-left h1 { font-size: 20px; margin: 0; color: #0b1f44; }
.pw-doc { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.pw-left section { border-top: 1px solid #e3e8ef; padding-top: 12px; display: grid; gap: 7px; }
.pw-left h2 { font-size: 13px; margin: 0 0 2px; color: #333; }
.pw-left label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pw-left input[type=checkbox] { width: 17px; height: 17px; accent-color: #1d5fd1; }
.pw-fixed { margin: 0; font-weight: 700; font-size: 14px; }
.pw-tip { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.pw-actions { display: grid; gap: 8px; margin-top: 4px; }
.pw-btn { height: 42px; border-radius: 8px; border: 1px solid #c9d1de; background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.pw-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pw-btn:hover { filter: brightness(.96); }
.pw-right { overflow: auto; }
.pw-stage { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
/* 설정 반영 */
.os2-paper .os2-col.pw-off { visibility: hidden; }
.os2-paper.pw-no-title .os2-paper-title { visibility: hidden; }
.os2-paper.pw-no-cut .os2-col + .os2-col::before, .os2-paper.pw-no-cut .os2-col + .os2-col::after { display: none; }
.os2-paper.pw-blank td span, .os2-paper.pw-blank td[data-c], .os2-paper.pw-blank dd { color: transparent; }
@media print {
  body.pw-body { background: #fff; height: auto; overflow: visible; }
  .pw { display: block; height: auto; }
  .pw-left { display: none !important; }
  .pw-right, .pw-stage { overflow: visible; padding: 0; height: auto; display: block; }
  .pw .os2-paper-box { width: auto !important; height: auto !important; }
  .pw .os2-paper { position: static; transform: none !important; box-shadow: none; }
}

/* 오더지: 장소·상대팀 ▼ 목록 칸 */
.os2-combo { position: relative; display: flex; }
.os2-combo input { flex: 1 1 auto; min-width: 0; padding-right: 30px !important; }
.os2-combo-btn { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 26px; border: 0; border-left: 1px solid #b5bcc7; background: #eef2f8; color: #333; font-size: 10px; cursor: pointer; }
.os2-combo-btn:hover, .os2-combo.open .os2-combo-btn { background: #dbe6fa; color: #1d5fd1; }
.os2-combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; max-height: 260px; overflow: auto; background: #fff;
  border: 1px solid #8a94a6; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.os2-combo-group { position: sticky; top: 0; background: #0b1f44; color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; letter-spacing: .02em; }
.os2-combo-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #e1e6ee; background: #fff; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.os2-combo-item:last-child { border-bottom: 0; }
.os2-combo-item:hover, .os2-combo-item:focus { background: #eaf2ff; color: #1d5fd1; outline: none; }
.os2-combo-group + .os2-combo-item { border-top: 0; }
.os2-combo-empty { margin: 0; padding: 10px; font-size: 12.5px; color: var(--muted); }
@media print { .os2-combo-btn, .os2-combo-list { display: none !important; } .os2-combo input { padding-right: 2px !important; } }
.os2-info .os2-combo { display: flex; grid-template-columns: none; padding: 0; border-bottom: 0; gap: 0; }
.os2-info .os2-combo-list { display: block; grid-template-columns: none; padding: 0; border: 1px solid #8a94a6; gap: 0; }
.os2-info .os2-combo-group { display: block; padding: 5px 10px; border-bottom: 0; }

/* 오더지: 칸마다 제목(리그명 시즌 오더지) — 화면에서는 숨기고 미리보기·인쇄에서만 */
.os2-col-title { display: none; }
.os2-paper .os2-col-title { display: block; text-align: center; font-size: 15px; font-weight: 900; margin: 0 0 8px; padding-bottom: 5px; border-bottom: 2px solid #111; letter-spacing: -.01em; }
.os2-paper.pw-no-title .os2-col-title { visibility: hidden; }
/* 미리보기·인쇄: 위아래 줄 높이를 늘려 A4 가로 한 장을 채움 */
.os2-paper .os2-lineup th, .os2-paper .os2-lineup td { height: var(--os2-row, 23px); line-height: calc(var(--os2-row, 23px) - 2px); }
.os2-paper .os2-lineup td span { line-height: calc(var(--os2-row, 23px) - 2px); }
.os2-paper .os2-info div { padding: 6px 0; }
.os2-paper .os2-kind { padding: 8px 0; }
.os2-paper .os2-sub-gap { margin-top: 10px; }
@media print {
  .os2-col-title { display: block; text-align: center; font-size: 15px; font-weight: 900; margin: 0 0 8px; padding-bottom: 5px; border-bottom: 2px solid #111; }
  .os2-print-title { display: none !important; }
}

/* 오더지: 성명 칸 ▼ 등록 선수 목록 */
.os2-name-combo input[data-name] { padding-right: 20px !important; text-align: center; }
.os2-name-combo .os2-combo-btn { width: 18px; font-size: 8px; }
.os2-name-combo .os2-combo-list { right: auto; min-width: 220px; max-height: 300px; text-align: left; }
.os2-name-combo .os2-combo-item { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 6px; padding: 7px 10px; }
.os2-name-combo .pn { display: inline-grid; place-items: center; height: 22px; border-radius: 5px; background: #0b1f44; color: #fff; font-weight: 800; font-size: 12px; }
.os2-name-combo .pnm { font-weight: 700; font-size: 13.5px; }
.os2-name-combo .pel { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 5px; }
.os2-name-combo .ppos { font-size: 11.5px; color: var(--muted); }
.os2-name-combo .os2-combo-item.used { opacity: .45; }
.os2-name-combo .os2-combo-item.used .pnm::after { content: " ✔ 선택됨"; font-size: 11px; color: #2e9e5b; font-weight: 700; }

/* ───────── 경기일정 표 (게임원 일정표 스타일) ───────── */
.sched-card { overflow: hidden; }
.sched-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.sched-table thead th { background: #eef1f5; color: #333; font-weight: 700; font-size: 14px; padding: 10px 8px; border-bottom: 1px solid #cfd6df; border-right: 1px solid #dde3ea; text-align: center; }
.sched-table thead th:last-child { border-right: 0; }
.sched-table td { padding: 12px 8px; border-bottom: 1px solid #e3e8ee; border-right: 1px solid #edf0f4; text-align: center; vertical-align: middle; color: #333; }
.sched-table td:last-child { border-right: 0; }
.sched-table tbody tr:hover td { background: #f8fafd; }
.sched-table .c-date { width: 170px; white-space: nowrap; }
.sched-table .c-date b { font-weight: 800; color: #222; }
.sched-table .c-div { width: 90px; }
.sched-table .c-gr { width: 130px; }
.sched-table .c-seq { width: 70px; white-space: nowrap; }
.sched-table .c-res { width: 120px; }
.sg { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.sg-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; color: #222; }
.sg-team span:not(.badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-team.away { justify-content: flex-start; }
.sg-team.home { justify-content: flex-end; text-align: right; }
.sg-team.win span:not(.badge) { font-weight: 900; color: var(--navy); }
.sg-team .badge.lg { width: 38px; height: 38px; font-size: 16px; }
.sg-vs { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #555c66; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; }
.sg-score { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 900; color: #8a94a6; font-variant-numeric: tabular-nums; }
.sg-score b.w { color: var(--accent-2); }
.sg-score i { font-style: normal; color: #b5bcc7; font-size: 16px; }
.sg-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; height: 34px; padding: 0 12px; border-radius: 3px; font-size: 13.5px; font-weight: 700; line-height: 1.1; }
.sg-btn.wait { background: #b9bec5; color: #fff; }
.sg-btn.done { background: var(--navy-2); color: #fff; }
.sg-btn.done:hover { background: var(--accent); color: #fff; }
.sg-btn.done small { font-size: 10.5px; font-weight: 600; opacity: .85; }
.sg-btn.cancel { background: #f1d6d6; color: #b33; }
.sched-table tr.cancelled td { color: #9aa2ad; }
/* 경기일정 표 — 휴대폰: 한 경기씩 카드 모양 (일시·결과 / 분류·구장·순서 / 대진) */
@media (max-width: 700px) {
  .sched-card .table-wrap { overflow: visible; }
  .sched-table { min-width: 0; font-size: 13px; }
  .sched-table thead { display: none; }
  .sched-table, .sched-table tbody { display: block; }
  .sched-table tbody tr { display: grid; grid-template-columns: auto auto auto 1fr; grid-template-areas: "date date date res" "div gr seq ." "game game game game";
    gap: 4px 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #e3e8ee; }
  .sched-table tbody tr:nth-child(even) { background: #fafbfd; }
  .sched-table td { display: block; border: 0; padding: 0; text-align: left; width: auto !important; background: none !important; }
  .sched-table td.c-date { grid-area: date; font-size: 13.5px; }
  .sched-table td.c-div { grid-area: div; }
  .sched-table td.c-gr { grid-area: gr; }
  .sched-table td.c-seq { grid-area: seq; }
  .sched-table td.c-div, .sched-table td.c-gr, .sched-table td.c-seq { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .sched-table td.c-gr::before, .sched-table td.c-seq::before { content: "·"; margin-right: 8px; color: #c3c9d2; }
  .sched-table td.c-res { grid-area: res; justify-self: end; }
  .sched-table td.c-game { grid-area: game; margin-top: 6px; }
  .sg { gap: 8px; }
  .sg-team { gap: 6px; font-size: 13.5px; }
  .sg-team .badge.lg { width: 30px; height: 30px; font-size: 13px; }
  .sg-score { font-size: 18px; }
  .sg-btn { min-width: 0; height: 28px; padding: 0 10px; font-size: 12px; }
}
@media (max-width: 700px) {
  .sg-team span:not(.badge) { white-space: normal; overflow: visible; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.25; }
}

/* 경기일정 표: 눈에 띄는 색 (제목 줄 · 일시 · 분류 · 결과) */
.sched-table thead th { background: linear-gradient(180deg, #16326a, #0b1f44); color: #fff; border-bottom: 0; border-right-color: rgba(255,255,255,.12); }
.sched-table .c-date b { color: #0b1f44; font-weight: 900; }
.sched-table .c-date .tm { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 4px; background: #fff1e6; color: #d9480f; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.div-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--dc, #5f6b7a); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.sg-btn.wait { background: #fff4e5; color: #c2410c; border: 1.5px solid #fb923c; }
.sg-btn.done { background: #0b1f44; color: #fff; border: 1.5px solid #0b1f44; }
.sg-btn.done:hover { background: #e4572e; border-color: #e4572e; }
.sg-btn.cancel { background: #fde8e8; color: #c62828; border: 1.5px solid #f19999; }
@media (max-width: 700px) {
  .sched-table td.c-div { color: inherit; }
  .sched-table td.c-gr, .sched-table td.c-seq { color: #4a5565; font-weight: 600; }
  .div-pill { font-size: 11.5px; padding: 2px 8px; }
  .sched-table .c-date .tm { font-size: 12px; }
}
@media (max-width: 700px) {
  .sg-team { font-size: 12.5px; letter-spacing: -.3px; gap: 5px; }
  .sg-team span:not(.badge) { overflow-wrap: normal; word-break: keep-all; }
  .sg-team .badge.lg { width: 28px; height: 28px; }
  .sg { gap: 6px; }
}

/* 경기일정·결과 표: 날짜별 구분 줄 */
.sched-table tr.date-row th { background: #e9eef7; color: #0b1f44; text-align: left; padding: 9px 14px; border-top: 2px solid #0b1f44; border-bottom: 1px solid #c9d3e3; font-size: 14.5px; font-weight: 900; }
.sched-table tbody tr.date-row:first-child th { border-top: 0; }
.sched-table tr.date-row:hover th { background: #e9eef7; }
.dr-count { margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: #0b1f44; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.sched-table .c-date { width: 110px; }
.sched-table .c-date .tm { margin-left: 0; font-size: 14px; }
@media (max-width: 700px) {
  .sched-table tbody tr.date-row { display: block; padding: 0; background: none !important; }
  .sched-table tbody tr.date-row th { display: flex; align-items: center; padding: 10px 14px; font-size: 14px; border-top: 2px solid #0b1f44; }
  .sched-table tbody tr.date-row:first-child th { border-top: 0; }
  .sched-table tbody tr:not(.date-row):nth-child(even) { background: none; }
  .sched-table .c-date .tm { font-size: 13px; }
}

/* 경기일정·결과: 날짜마다 따로 떨어진 카드 (사이 간격) */
.sched-days { display: grid; gap: 26px; }
.sched-day { margin-bottom: 0; }
.sched-day .sched-table tbody tr.date-row th { border-top: 0; }
@media (max-width: 700px) {
  .sched-days { gap: 18px; }
  /* 휴대폰: 제목 줄을 카드 위에 작은 띠로 (시간 · 분류 · 구장 · 순서 / 게임 / 결과) */
  .sched-day .sched-table thead { display: block; }
  .sched-day .sched-table thead tr { display: flex; justify-content: space-between; padding: 7px 14px; background: linear-gradient(180deg, #16326a, #0b1f44); }
  .sched-day .sched-table thead th { display: block; padding: 0; border: 0; background: none; font-size: 11.5px; width: auto !important; }
  .sched-day .sched-table thead th.c-gr, .sched-day .sched-table thead th.c-seq { display: none; }
}
/* 날짜 줄을 제목 줄 위로 */
.sched-day-date { display: flex; align-items: center; padding: 11px 16px; background: #e9eef7; color: #0b1f44; font-size: 15px; font-weight: 900; border-bottom: 1px solid #c9d3e3; }
@media (max-width: 700px) {
  .sched-day-date { padding: 10px 14px; font-size: 14px; }
}

/* 경기일정·결과: 시간·분류 블럭색 없이 깔끔하게 (글자만) */
.sched-table .c-date .tm { background: none; padding: 0; margin: 0; border-radius: 0; color: #1f2733; font-weight: 700; font-size: 14px; }
.div-pill { background: none !important; color: #3b4452; padding: 0; border-radius: 0; box-shadow: none; font-size: 13.5px; font-weight: 600; }
@media (max-width: 700px) {
  .sched-table .c-date .tm { font-size: 13.5px; }
  .div-pill { font-size: 12.5px; }
  .sched-table td.c-div { font-size: 12.5px; }
}

/* 경기일정·결과: 날짜 칸 외곽선과 날짜 줄 윤곽을 또렷하게 */
.sched-day { border: 2px solid #6b7c98; border-radius: 10px; box-shadow: 0 3px 10px rgba(11, 31, 68, .10); overflow: hidden; }
.sched-day-date { background: #dde5f2; border-bottom: 2px solid #0b1f44; border-left: 6px solid var(--accent); padding-left: 14px; font-size: 15.5px; }
.sched-day-date .dr-date { color: #0b1f44; }
.sched-day .sched-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .sched-day { border-radius: 8px; }
  .sched-day-date { font-size: 14.5px; padding-left: 12px; border-left-width: 5px; }
  .sched-day .sched-table tbody tr:last-child { border-bottom: 0; }
}
.top5-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .top5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .top5-grid { grid-template-columns: 1fr; } }
.roster-edit .birth-in { width: 128px; } .roster-edit .school-in { width: 120px; }

/* ───────── 팀 페이지: 팀 정보 머리말 (게임원 양식 참고, 밝은 바탕) ───────── */
.team-hero.tm-head { background: #fff; color: #222; border: 1px solid #c9d1de; border-top: 4px solid var(--tc); box-shadow: var(--shadow); align-items: center; gap: 20px; }
.tm-head .badge.xl { width: 96px; height: 96px; }
.tm-info { flex: 1 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; margin: 0; font-size: 14px; }
.tm-info div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.tm-info div.full { grid-column: 1 / -1; }
.tm-info dt { flex: none; width: 76px; color: #6b7686; font-weight: 600; white-space: nowrap; }
.tm-info dt::after { content: " :"; }
.tm-info dd { margin: 0; color: #222; font-weight: 600; overflow-wrap: anywhere; }
.tm-name { font-size: 18px; color: #1d4fa8; text-decoration: underline; text-underline-offset: 3px; }
.tm-div { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid #8a94a6; border-radius: 3px; font-size: 11.5px; font-weight: 800; color: #333; background: #f1f4f8; vertical-align: 2px; }
.tm-head .th-record div { background: #f3f6fa; border: 1px solid #dfe5ee; }
.tm-head .th-record dt { color: #6b7686; }
.tm-head .th-record dd { color: #0b1f44; }
.tm-rec-btn { align-self: flex-start; margin-left: auto; border: 1px solid #2f5fb3; background: linear-gradient(180deg, #5b8de0, #3466c2); color: #fff; font-weight: 800; font-size: 13.5px; padding: 8px 16px; border-radius: 3px; cursor: pointer; }
.tm-rec-btn:hover { filter: brightness(1.08); }

/* ───────── 팀 선수명단: 포지션별 표 ───────── */
.rs-group { margin-bottom: 26px; }
.rs-group:last-child { margin-bottom: 0; }
.rs-cap { display: flex; align-items: flex-end; gap: 6px; margin: 0 0 0 46px; font-size: 14px; font-weight: 700; color: #4a5565; }
.rs-cap b { color: #1d4fa8; }
.rs-cap-ico svg { width: 26px; height: 30px; display: block; }
.rs-cap-ico svg path:first-child { fill: transparent; }
.rs-box { border: 5px solid #c5ccd8; background: #c5ccd8; }
.rs-table { width: 100%; border-collapse: collapse; background: #f4f5f8; font-size: 13.5px; }
.rs-table thead th { background: #dfe3ea; color: #333; font-weight: 700; padding: 10px 6px; border: 1px solid #c5ccd8; text-align: center; white-space: nowrap; }
.rs-table td { border: 1px solid #c5ccd8; padding: 6px 8px; text-align: center; vertical-align: middle; color: #333; }
.rs-table td.rs-who { text-align: left; min-width: 230px; }
.rs-table tbody tr:hover td { background: #fff; }
.rs-who-in { display: flex; align-items: center; gap: 14px; }
.rs-photo svg { width: 64px; height: 72px; display: block; }
.rs-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-name a { color: #222; }
.rs-name a b { font-size: 14.5px; }
.rs-no { color: #444; font-weight: 700; }
.rs-name small { color: #555; font-size: 12.5px; }
.rs-tag { display: inline-block; width: fit-content; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.rs-tag.master { background: #2f74c0; color: #fff; }
.rs-tag.wait { background: #fff1e6; color: #c2410c; border: 1px solid #fdba74; }
.rs-games b { color: #d62828; font-size: 15px; }
.rs-elite { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; }
.rs-rec-btn { color: #3a5ba8; display: inline-flex; }
.rs-rec-btn:hover { color: var(--accent); }
.rs-lbl { display: none; }
tr.dim td { color: #8a94a6; }
@media (max-width: 760px) {
  .tm-info { grid-template-columns: 1fr; }
  .tm-rec-btn { margin-left: 0; }
  .rs-cap { margin-left: 4px; }
  .rs-box { border-width: 3px; }
  .rs-table, .rs-table tbody { display: block; }
  .rs-table thead { display: none; }
  .rs-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px; border-bottom: 3px solid #c5ccd8; background: #f4f5f8; }
  .rs-table td, .rs-table td.rs-who { border: 0; padding: 0; text-align: left; }
  .rs-table td.rs-who { grid-column: 1 / -1; }
  .rs-table td.rs-rec { position: absolute; }
  .rs-table tbody tr { position: relative; }
  .rs-table td.rs-rec { top: 12px; right: 12px; }
  .rs-lbl { display: block; font-size: 11px; color: #6b7686; font-weight: 600; }
  .rs-photo svg { width: 48px; height: 54px; }
}

/* ───────── 선수 개인 기록 (시즌별 · 팀·리그별 · 게임별) ───────── */
.ph-more { margin: 4px 0 0; font-size: 13px; opacity: .9; }
.pr-card { padding: 22px 24px; }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #e3e8ef; margin-bottom: 18px; }
.pr-head h2 { margin: 0; font-size: 24px; font-weight: 900; }
.pr-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-tabs button { border: 1px solid #c9d1de; background: #fff; color: #333; border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.pr-tabs button.on { background: #0b1f44; border-color: #0b1f44; color: #fff; }
.pr-filter { display: flex; gap: 12px; align-items: stretch; margin-bottom: 18px; }
.pr-filter select { height: 44px; border: 1px solid #c9d1de; border-radius: 8px; padding: 0 12px; font-size: 14px; background: #fff; min-width: 120px; }
.pr-seg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; background: #eef1f6; border-radius: 10px; padding: 4px; gap: 4px; }
.pr-seg button { border: 0; border-radius: 7px; background: none; font-size: 14px; font-weight: 700; color: #6b7686; cursor: pointer; }
.pr-seg button.on { background: #fff; color: #0b1f44; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pr-summary { font-size: 18px; font-weight: 800; margin: 0 0 18px; color: #1f2733; }
.pr-summary em { font-style: normal; color: var(--accent-2); }
.pr-kind { display: flex; gap: 22px; border-bottom: 1px solid #e3e8ef; margin-bottom: 18px; }
.pr-kind button { border: 0; background: none; padding: 8px 2px 10px; font-size: 15px; font-weight: 700; color: #8a94a6; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pr-kind button.on { color: #0b1f44; border-bottom-color: #0b1f44; }
.pr-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: center; }
.pr-radar { text-align: center; }
.pr-radar-note { margin: 0; font-size: 11.5px; color: var(--muted); }
.radar { width: 100%; max-width: 330px; height: auto; }
.rd-ring { fill: #f6f8fb; stroke: #dfe4ec; stroke-width: 1; }
.rd-ring:nth-of-type(odd) { fill: #fbfcfd; }
.rd-axis { stroke: #e3e8ef; stroke-width: 1; }
.rd-area { fill: rgba(228, 87, 46, .28); stroke: #c2410c; stroke-width: 2; }
.rd-dot { fill: #fff; stroke: #1f5f4a; stroke-width: 2; }
.rd-dot.top { fill: #e11d48; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 3px rgba(225, 29, 72, .6)); }
.rd-lbl { font-size: 13px; font-weight: 700; fill: #333; text-anchor: middle; }
.rd-val { font-size: 14px; font-weight: 900; fill: #111; text-anchor: middle; }
.rd-val.top { fill: #e11d48; }
.ps-grid { display: grid; gap: 14px; }
.ps-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-radius: 8px; overflow: hidden; }
.ps-cell { display: grid; grid-template-rows: auto auto; text-align: center; }
.ps-lbl { background: #eef1f6; color: #6b7686; font-size: 12.5px; font-weight: 600; padding: 9px 2px; white-space: nowrap; }
.ps-val { padding: 12px 2px 6px; font-size: 16px; font-weight: 800; color: #1f2733; font-variant-numeric: tabular-nums; }
.ps-cell.hi .ps-lbl { color: #0b1f44; font-weight: 800; }
.ps-cell.hi .ps-val { color: var(--accent-2); }
@media (max-width: 900px) {
  .pr-body { grid-template-columns: 1fr; }
  .ps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pr-card { padding: 16px 14px; }
  .pr-head h2 { font-size: 20px; }
  .pr-tabs { width: 100%; }
  .pr-tabs button { flex: 1; padding: 7px 6px; font-size: 12.5px; }
  .pr-filter { flex-direction: column; }
  .pr-filter select { height: 40px; }
  .pr-seg { min-height: 40px; }
  .pr-summary { font-size: 15.5px; }
  .ps-lbl { font-size: 11.5px; }
  .ps-val { font-size: 15px; }
}

/* ═════════ 팀 페이지 (자체 디자인): 머리말 타일 + 포지션별 선수 카드 ═════════ */
.tm2 { --tc: #1f3a5f; background: #fff; border: 1px solid #d5dce6; border-radius: 16px; overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.tm2-top { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: linear-gradient(110deg, color-mix(in srgb, var(--tc) 14%, #fff), #fff 70%); border-bottom: 1px solid #e6ebf2; }
.tm2-top .badge.xl { width: 84px; height: 84px; }
.tm2-title { min-width: 0; }
.tm2-div { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--tc); border-radius: 999px; padding: 2px 10px; }
.tm2-title h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 900; color: #111827; }
.tm2-rec { margin: 0; font-size: 13.5px; color: #4b5563; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tm2-rec b { color: var(--accent-2); }
.tm2-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tm2-tiles li { padding: 14px 18px; border-right: 1px solid #edf0f5; display: grid; gap: 2px; min-width: 0; }
.tm2-tiles li:last-child { border-right: 0; }
.tm2-tiles span { font-size: 12px; font-weight: 700; color: #6b7280; }
.tm2-tiles b { font-size: 24px; font-weight: 900; color: #111827; line-height: 1.15; overflow-wrap: anywhere; }
.tm2-tiles b.txt { font-size: 16px; padding-top: 4px; }
.tm2-tiles b em { font-style: normal; font-size: 13px; font-weight: 700; margin-left: 2px; color: #6b7280; }
.tm2-tiles small { font-size: 11.5px; color: #9ca3af; min-height: 1em; }

.pc-groups { display: grid; gap: 24px; }
.pc-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 900; color: #111827; }
.pc-cap small { font-size: 13px; color: #6b7280; font-weight: 700; }
.pc-code { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; background: #111827; color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .02em; }
.pc-group.dim .pc-code { background: #9ca3af; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pc { --tc: #1f3a5f; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #e3e8ef; border-left: 4px solid var(--tc); border-radius: 12px; background: #fff; color: inherit; transition: box-shadow .15s, transform .15s; }
.pc:hover { box-shadow: 0 6px 18px rgba(17, 24, 39, .10); transform: translateY(-1px); color: inherit; }
.pc.dim { opacity: .55; }
.pc-no { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tc); color: #fff; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pc-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pc-name { font-size: 15.5px; font-weight: 900; color: #111827; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pc-badge { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.pc-badge.elite { background: #fff1e6; color: #c2410c; }
.pc-badge.master { background: #e0ecff; color: #1d4fa8; }
.pc-pos { font-size: 12.5px; color: #6b7280; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-chips span { font-size: 11px; color: #4b5563; background: #f3f4f6; border-radius: 4px; padding: 1px 6px; }
.pc-chips span.warn { background: #fff1e6; color: #c2410c; }
.pc-play { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pc-bar { flex: 1; height: 6px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.pc-bar span { display: block; height: 100%; background: var(--tc); border-radius: 999px; }
.pc-play-txt { font-size: 11.5px; color: #6b7280; white-space: nowrap; }
.pc-play-txt b { color: #111827; }
@media (max-width: 760px) {
  .tm2-top { padding: 16px; gap: 12px; }
  .tm2-top .badge.xl { width: 60px; height: 60px; font-size: 24px; }
  .tm2-title h2 { font-size: 20px; }
  .tm2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm2-tiles li { border-bottom: 1px solid #edf0f5; padding: 12px 14px; }
  .tm2-tiles li:nth-child(2n) { border-right: 0; }
  .tm2-tiles li:last-child { grid-column: 1 / -1; }
  .tm2-tiles b { font-size: 20px; }
  .pc-grid { grid-template-columns: 1fr; }
}

/* ═════════ 선수 개인 기록 (자체 디자인): 밑줄 탭 · 핵심 타일 · 분류별 목록 · 능력치 막대 ═════════ */
.pr2 { --tc: #1f3a5f; padding: 0; overflow: hidden; }
.pr2 > *:not(.pr2-tabs) { margin-left: 22px; margin-right: 22px; }
.pr2-tabs { display: flex; gap: 0; border-bottom: 1px solid #e3e8ef; background: #fafbfc; padding: 0 12px; }
.pr2-tabs button { border: 0; background: none; padding: 14px 16px 12px; font-size: 15px; font-weight: 800; color: #9ca3af; cursor: pointer; border-bottom: 3px solid transparent; }
.pr2-tabs button.on { color: #111827; border-bottom-color: var(--tc); }
.pr2 .sub-title { margin-top: 18px; }
.pr2 > .table-wrap, .pr2 > .empty-state { margin-bottom: 20px; }
.pr2-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pr2-field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #6b7280; }
.pr2-field select { height: 38px; min-width: 120px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; font-size: 14px; background: #fff; color: #111827; }
.pr2-switch { margin-left: auto; display: inline-flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.pr2-switch button { border: 0; background: #fff; padding: 9px 18px; font-size: 14px; font-weight: 800; color: #6b7280; cursor: pointer; }
.pr2-switch button + button { border-left: 1px solid #d1d5db; }
.pr2-switch button.on { background: var(--tc); color: #fff; }
.pr2-chips { list-style: none; padding: 0; margin-top: 14px; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pr2-chips li { font-size: 12.5px; color: #374151; background: #f3f4f6; border-radius: 999px; padding: 4px 11px; }
.pr2-chips li:first-child { background: #111827; color: #fff; font-weight: 700; }
.pr2-chips b { color: var(--accent-2); }
.pr2-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-top: 16px; margin-bottom: 22px; align-items: start; }
.kt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kt-tile { border-radius: 12px; padding: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 10%, #fff), #fff); border: 1px solid #e5e9f0; display: grid; gap: 2px; }
.kt-tile span { font-size: 12px; font-weight: 700; color: #6b7280; }
.kt-tile b { font-size: 26px; font-weight: 900; color: #111827; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kt-tile small { font-size: 11.5px; color: #6b7280; }
.dg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dg-box { border: 1px solid #e5e9f0; border-radius: 12px; padding: 12px 14px; }
.dg-box h4 { margin: 0 0 6px; font-size: 13px; font-weight: 900; color: #111827; }
.dg-box dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dg-box dl div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #edf0f4; font-size: 13px; }
.dg-box dt { color: #6b7280; }
.dg-box dd { margin: 0; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
.pr2-side { border: 1px solid #e5e9f0; border-radius: 12px; padding: 14px 16px; background: #fbfcfd; }
.pr2-side h4 { margin: 0 0 10px; font-size: 13px; font-weight: 900; color: #111827; }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ab-list li { display: grid; grid-template-columns: 58px 1fr 22px; align-items: center; gap: 8px; }
.ab-lbl { font-size: 12.5px; font-weight: 700; color: #374151; }
.ab-track { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.ab-track i { height: 10px; border-radius: 2px; background: #e5e7eb; }
.ab-track i.on { background: var(--tc); }
.ab-val { font-size: 14px; font-weight: 900; color: #111827; text-align: right; }
.pr2-note { margin: 12px 0 0; font-size: 11px; color: #9ca3af; }
@media (max-width: 900px) {
  .pr2-body { grid-template-columns: 1fr; }
  .kt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pr2 > *:not(.pr2-tabs) { margin-left: 14px; margin-right: 14px; }
  .pr2-tabs { padding: 0 4px; }
  .pr2-tabs button { flex: 1; padding: 12px 4px 10px; font-size: 14px; }
  .pr2-switch { margin-left: 0; width: 100%; }
  .pr2-switch button { flex: 1; }
  .pr2-field { flex: 1; }
  .pr2-field select { width: 100%; min-width: 0; }
  .dg { grid-template-columns: 1fr; }
  .kt-tile b { font-size: 22px; }
}

/* ═════════ 오더지(라인업 카드) 자체 디자인 — 화면 ═════════ */
.os2 { border: 1px solid #d5dce6; border-radius: 16px; overflow: visible; box-shadow: var(--shadow); }
.os2-bar { background: #111827; border-bottom: 0; border-radius: 15px 15px 0 0; padding: 14px 18px; gap: 10px; }
.os2-title { color: #fff; font-size: 18px; font-weight: 900; display: grid; gap: 1px; margin-right: 10px; }
.os2-title small { font-size: 11.5px; font-weight: 600; color: #9ca3af; }
.os2-bar select { height: 36px; border: 0; border-radius: 8px; background: #fff; font-weight: 700; color: #111827; }
.os2-print { margin-left: auto; text-decoration: none; background: var(--accent); color: #fff; border-radius: 8px; padding: 9px 16px; font-weight: 800; }
.os2-print:hover { color: #fff; filter: brightness(1.06); }
.os2-sub { display: inline-flex; align-items: center; gap: 6px; background: #f1f3f6; color: #111827; border-radius: 999px; padding: 4px 12px 4px 8px; font-size: 13px; }
.os2-col.os2-left > .os2-sub:first-of-type { background: #111827; color: #fff; }
.os2-copy[data-copy=opp] > .os2-sub:first-of-type { background: #1d4fa8; color: #fff; }
.os2-copy[data-copy=rec] > .os2-sub:first-of-type { background: #15803d; color: #fff; }
.os2-lineup, .os2-roster { border: 1.5px solid #374151; border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.os2-lineup th, .os2-lineup td { border: 0; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #eef0f3; }
.os2-lineup tr > *:last-child { border-right: 0; }
.os2-lineup tbody tr:last-child > * { border-bottom: 0; }
.os2-lineup thead th { background: #374151; color: #fff; border-bottom: 0; font-size: 12px; }
.os2-lineup tbody th { background: #f7f8fa; color: #111827; }
.os2-lineup select, .os2-lineup input { border: 1px solid #e5e7eb; border-radius: 4px; }
.os2-lineup select:focus, .os2-lineup input:focus { outline: 2px solid #93c5fd; border-color: #60a5fa; }
.os2-info { display: grid; gap: 6px; margin-top: 12px; }
.os2-info div { grid-template-columns: 58px 1fr; padding: 0; border-bottom: 0; }
.os2-info dt { background: #f1f3f6; border-radius: 6px; padding: 6px 0; text-align: center; font-size: 12px; letter-spacing: 0; color: #374151; }
.os2-info dd { min-height: 30px; display: flex; align-items: center; }
.os2-info input { height: 30px; border-radius: 6px; border: 1px solid #d1d5db; }
.os2-info.os2-ro dd { border-bottom: 1px solid #e5e7eb; border-radius: 0; }
.os2-kind { border-bottom: 0; gap: 6px; padding: 10px 0 0; }
.os2-kind label { flex: 1; justify-content: center; border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 4px; font-size: 13px; }
.os2-kind label:has(input:checked) { background: #111827; border-color: #111827; color: #fff; }
.os2-kind label input { accent-color: #fff; }
.os2-kind.os2-ro { justify-content: center; border: 1px solid #e5e7eb; border-radius: 8px; padding: 7px 4px; margin-top: 10px; }
.os2-note { color: #1d4fa8; }
.os2-col + .os2-col::before { border-left-color: #9ca3af; }
@media (max-width: 760px) {
  .os2-bar { flex-direction: column; align-items: stretch; }
  .os2-bar select { width: 100%; }
  .os2-print { margin-left: 0; text-align: center; }
}
/* 미리보기·인쇄: 잉크 절약 — 제목 줄은 흰 바탕 + 검은 선 */
.os2-paper .os2-lineup, .os2-paper .os2-roster { border: 1.5px solid #111; border-radius: 0; }
.os2-paper .os2-lineup th, .os2-paper .os2-lineup td { border-right: 1px solid #999; border-bottom: 1px solid #999; }
.os2-paper .os2-lineup thead th { background: #fff; color: #111; border-bottom: 1.5px solid #111; }
.os2-paper .os2-lineup tbody th { background: #fff; }
.os2-paper .os2-sub { background: none !important; color: #111 !important; padding: 0; }
.os2-paper .os2-info dt { background: none; text-align: left; padding: 0; }
.os2-paper .os2-info div { border-bottom: 1px solid #999; padding: 4px 0; }
.os2-paper .os2-info.os2-ro dd { border-bottom: 0; }
.os2-paper .os2-kind, .os2-paper .os2-kind.os2-ro { border: 0; border-bottom: 1.5px solid #111; border-radius: 0; margin-top: 0; }
@media print {
  .os2-lineup, .os2-roster { border: 1.5px solid #111; border-radius: 0; }
  .os2-lineup thead th { background: #fff !important; color: #111 !important; border-bottom: 1.5px solid #111; }
  .os2-lineup th, .os2-lineup td { border-right: 1px solid #999; border-bottom: 1px solid #999; }
  .os2-sub { background: none !important; color: #111 !important; }
  .os2-kind label { border: 0; }
}

/* ═════════ 부관리자 관리: 추가 카드 + 부관리자 카드 + 권한 칩 (자체 디자인) ═════════ */
.sa-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.sa-step { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.sa-step.wide { grid-column: 1 / -1; }
.sa-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #111827; color: #fff; font-size: 13px; font-weight: 900; }
.sa-step-body { display: grid; gap: 6px; flex: 1; min-width: 0; }
.sa-step-body > b { font-size: 14px; color: #111827; }
.sa-step-body > input { height: 36px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; }
.sa-add .pick-user input { flex: 1; height: 36px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; width: auto; }
.sa-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.pg { display: grid; gap: 8px; }
.pg-row { display: flex; gap: 10px; align-items: flex-start; }
.pg-title { flex: none; width: 64px; padding-top: 6px; font-size: 12px; font-weight: 800; color: #6b7280; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { position: relative; cursor: pointer; }
.pchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pchip span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff; font-size: 13px; font-weight: 700; color: #4b5563; transition: background .12s; }
.pchip input:checked + span { background: #111827; border-color: #111827; color: #fff; }
.pchip input:checked + span::before { content: "✓"; font-size: 11px; }
.pchip input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: 2px; }
.pg-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.pg-presets > span { font-weight: 700; margin-right: 2px; }
.sa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 10px; }
.sa-card { display: grid; gap: 12px; margin-bottom: 0; }
.sa-head { display: flex; align-items: center; gap: 12px; }
.sa-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #1d4fa8, #111827); color: #fff; font-weight: 900; font-size: 17px; }
.sa-who { flex: 1; min-width: 0; display: grid; }
.sa-who b { font-size: 16px; color: #111827; }
.sa-who small { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-count { flex: none; font-size: 12px; font-weight: 800; color: #1d4fa8; background: #e8f0ff; border-radius: 999px; padding: 3px 10px; }
.sa-nick { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #6b7280; }
.sa-nick input { height: 34px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; min-width: 0; }
.sa-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #eef0f3; }
@media (max-width: 900px) {
  .sa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sa-steps { grid-template-columns: 1fr; }
  .pg-row { flex-direction: column; gap: 4px; }
  .pg-title { width: auto; padding-top: 0; }
  .sa-actions .btn { width: 100%; }
}

/* ═════════ 경기 카드 (메인 경기결과 창) ═════════ */
.strip-game { width: auto; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.strip-game:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(13,35,64,.08); }
.strip-game .sg-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
@media (max-width: 560px) {
  .strip-game { padding: 6px 10px; gap: 2px; }
  .sg-row { font-size: 13px; gap: 6px; }
}

/* ═════════ 관리자 팀관리 목록 (자체 디자인) ═════════ */
.tl-top { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: center; }
.tl-count { display: flex; align-items: baseline; gap: 6px; padding-right: 20px; border-right: 1px solid var(--line); }
.tl-count b { font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.tl-count span { font-size: 14px; font-weight: 700; color: var(--muted); }
.tl-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tabs button { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 700; color: #374151; cursor: pointer; }
.tl-tabs button i { font-style: normal; margin-left: 2px; color: #9ca3af; font-weight: 800; }
.tl-tabs button.on { background: #111827; border-color: #111827; color: #fff; }
.tl-tabs button.on i { color: #fbbf24; }
.tl-tools { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.tl-tools select, .tl-tools input { height: 38px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; background: #fff; }
.tl-tools input { flex: 1; min-width: 160px; }
.tl-tools .btn { margin-left: auto; }
.tl-wrap { overflow: hidden; }
.tl-table { width: 100%; border-collapse: collapse; }
.tl-table thead th { background: #f7f8fa; color: #6b7280; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 10px 12px; border-bottom: 2px solid #e5e7eb; text-align: center; white-space: nowrap; }
.tl-table th.left { text-align: left; }
.tl-table td { padding: 12px; border-bottom: 1px solid #eef0f3; text-align: center; vertical-align: middle; font-size: 14px; }
.tl-table tbody tr:hover { background: #fafbff; }
.tl-table tbody tr:last-child td { border-bottom: 0; }
.tl-team { text-align: left !important; }
.tl-name { display: flex; align-items: center; gap: 12px; color: #111827; }
.tl-name .badge.lg { width: 42px; height: 42px; font-size: 17px; flex: none; }
.tl-name span { display: grid; min-width: 0; }
.tl-name b { font-size: 15px; font-weight: 800; }
.tl-name small { font-size: 12px; color: #9ca3af; }
.tl-name:hover b { color: var(--accent); }
.tl-open { display: inline-block; margin: 4px 0 0 54px; font-size: 11.5px; font-weight: 700; color: #1d4fa8; }
.tl-div { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #e8f0ff; color: #1d4fa8; font-size: 12.5px; font-weight: 800; }
.tl-div.none { background: #f3f4f6; color: #9ca3af; }
.tl-num { font-size: 16px; font-weight: 900; color: #111827; font-variant-numeric: tabular-nums; }
.tl-num + small { font-size: 12px; color: #9ca3af; margin-left: 1px; }
.tl-person { text-align: left !important; }
.tl-person b { display: block; font-size: 14px; color: #111827; }
.tl-tel { display: block; font-size: 12.5px; color: #4b5563; font-variant-numeric: tabular-nums; }
.tl-tel:hover { color: var(--accent); }
.tl-empty { font-size: 12.5px; color: #c0c6cf; }
.tl-acc { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800; color: #15803d; background: #ecfdf3; border-radius: 4px; padding: 1px 6px; }
.tl-season { display: inline-block; min-width: 54px; padding: 4px 10px; border-radius: 999px; background: #fff4e5; color: #c2410c; font-size: 12.5px; font-weight: 900; }
.tl-season.new { background: #ecfdf3; color: #15803d; }
.tl-date { color: #6b7280; font-size: 13px !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-none { margin: 0; padding: 28px; text-align: center; color: var(--muted); }
.tl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tl-bar select { height: 38px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; min-width: 180px; font-weight: 700; }
.tl-bar .tl-open { margin: 0 0 0 auto; font-size: 13px; }
@media (max-width: 760px) {
  .tl-top { grid-template-columns: 1fr; }
  .tl-count { border-right: 0; padding-right: 0; }
  .tl-tools .btn { margin-left: 0; width: 100%; }
  .tl-tools select { flex: 1; }
  .tl-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tl-table thead { display: none; }
  .tl-table, .tl-table tbody { display: block; }
  .tl-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; background: #fff; border: 1px solid #dde3ec; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  .tl-table tbody tr[hidden] { display: none; }
  .tl-table td { display: block; padding: 0; border: 0; text-align: left; }
  .tl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; color: #9ca3af; margin-bottom: 2px; }
  .tl-team { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px !important; border-bottom: 1px solid #eef0f3 !important; }
  .tl-open { margin: 0; white-space: nowrap; }
  .tl-act { grid-column: 1 / -1; }
  .tl-act .btn { width: 100%; justify-content: center; }
  .tl-bar select { flex: 1; min-width: 0; }
  .tl-bar .tl-open { margin-left: 0; }
}

/* 관리자 상단 바로가기 4개: 휴대폰에서도 옆으로 밀지 않고 한 줄에 */
@media (max-width: 560px) {
  .adm-top-inner { min-width: 0; justify-content: space-between; padding: 0 4px; }
  .adm-top a { padding: 12px 7px; font-size: 13.5px; }
}

/* ═════════ 홈페이지 가입회원 (로그인 계정) ═════════ */
.mb-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #f1f5ff; color: #1e3a8a; font-size: 13.5px; }
.mb-note a { font-weight: 800; text-decoration: underline; }
.mb-top { grid-template-columns: auto 1fr; }
.mb-tools { grid-column: auto; padding-top: 0; border-top: 0; }
.mb-tools .btn { margin-left: 0; }
.mb-who { display: grid; gap: 1px; }
.mb-who b { font-size: 14.5px; color: #111827; }
.mb-who small { font-size: 12px; color: #9ca3af; overflow-wrap: anywhere; }
.mb-ok { font-size: 12.5px; font-weight: 800; color: #15803d; }
.mb-stop { display: inline-block; font-size: 12px; font-weight: 800; color: #b91c1c; background: #fee2e2; border-radius: 999px; padding: 2px 9px; }
.mb-table tr.off td { background: #fffafa; }
.mb-act { white-space: nowrap; }
.mb-act .btn + .btn { margin-left: 4px; }
@media (max-width: 760px) {
  .mb-top { grid-template-columns: 1fr; }
  .mb-tools input { min-width: 0; }
  .mb-tools .btn { width: auto; }
  .mb-table .mb-who { display: grid !important; justify-content: start; }
  .mb-act { display: flex !important; gap: 6px; }
  .mb-act .btn { flex: 1; justify-content: center; }
  .mb-act .btn + .btn { margin-left: 0; }
}
@media (max-width: 760px) {
  .mb-table tr.off { background: #fff7f7; border-color: #fecaca; }
  .mb-table tr.off td { background: transparent; }
}

/* 경기일정·결과 쪽 번호 (5주씩) */
.sched-pager { margin-top: 22px; }
.sched-pager a { min-width: 40px; font-weight: 800; }
@media (max-width: 560px) { .sched-pager a { min-width: 36px; padding: 7px 8px; } }

/* ═════════ 기록 입력: 간편기록 (이닝별 타석 결과) ═════════ */
.bx-score .bx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.bx-meta b { font-size: 16px; color: #111827; }
.bx-meta > span { color: var(--muted); font-size: 13.5px; }
.bx-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #4b5563; }
.bx-sel select { height: 34px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 8px; }
.bx-meta .bx-sel:first-of-type { margin-left: auto; }
.bx-line th.left { white-space: nowrap; }
.bx-line .bx-r input { font-weight: 900; color: var(--accent); }
.bx-h { font-weight: 900; color: #111827; background: #f7f8fa; }
.bx-tabs { display: flex; gap: 8px; margin: 4px 0 -1px; position: relative; z-index: 1; }
.bx-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #eef1f5; color: #6b7280; font-weight: 800; font-size: 15px; cursor: pointer; }
.bx-tabs button small { font-size: 11.5px; font-weight: 700; color: #9ca3af; }
.bx-tabs button.on { background: #fff; color: #111827; box-shadow: inset 0 3px 0 var(--accent); }
.bx-team { border-top-left-radius: 0; border-top-right-radius: 0; }
.bx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bx-head .sub-title small { font-weight: 600; font-size: 12px; }
.bx-legend { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: 12px; color: #6b7280; }
.bx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.bx-legend i.hit, .bx-chip.hit { background: #dcfce7; color: #166534; }
.bx-legend i.on, .bx-chip.on { background: #dbeafe; color: #1e40af; }
.bx-legend i.out, .bx-chip.out { background: #f3f4f6; color: #374151; }
.bx-legend i.sac, .bx-chip.sac { background: #f3e8ff; color: #6b21a8; }
.bx-legend i.hit { background: #22c55e; } .bx-legend i.on { background: #3b82f6; } .bx-legend i.out { background: #9ca3af; } .bx-legend i.sac { background: #a855f7; }
.bx-wrap { border: 1px solid #dde3ec; border-radius: 10px; }
.bx-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.bx-grid th, .bx-grid td { border-bottom: 1px solid #eef0f3; padding: 4px; text-align: center; white-space: nowrap; }
.bx-grid thead th { background: #1f2937; color: #fff; font-size: 12px; font-weight: 800; padding: 8px 4px; position: sticky; top: 0; }
.bx-grid thead th.bx-ah { background: #374151; }
.bx-grid thead th.bx-hh { background: #9a3412; }
.bx-grid tfoot th, .bx-grid tfoot td { background: #f7f8fa; font-weight: 900; border-bottom: 0; padding: 8px 4px; }
.bx-grid select { height: 32px; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 4px; font-size: 13px; background: #fff; }
.bx-ord select { width: 62px; }
.bx-player { position: sticky; left: 0; background: #fff; z-index: 1; }
.bx-player select { width: 150px; }
.bx-pos select { width: 64px; }
.bx-cell { min-width: 74px; }
.bx-pa { width: 100%; min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; border: 1px dashed #cbd5e1; border-radius: 7px; background: #fff; padding: 2px; cursor: pointer; }
.bx-pa:hover, .bx-pa:focus-visible { border-color: var(--accent); border-style: solid; outline: none; }
.bx-pa.on { border: 2px solid var(--accent); background: #fff7ed; }
.bx-plus { color: #cbd5e1; font-size: 16px; font-weight: 700; }
.bx-chip { display: inline-block; padding: 2px 6px; border-radius: 5px; font-size: 12px; font-weight: 800; line-height: 1.3; border: 0; }
.bx-auto { background: #f3f4f6; font-weight: 900; color: #374151; min-width: 40px; }
.bx-hand input { width: 46px; height: 32px; text-align: center; border: 1px solid #fdba74; border-radius: 6px; font-weight: 800; }
.bx-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.bx-pick { position: absolute; z-index: 60; width: 430px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #d5dce6; border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .22); padding: 12px; display: grid; gap: 8px; }
.bx-pick[hidden] { display: none; }
.bx-pick-head { display: flex; align-items: center; justify-content: space-between; }
.bx-pick-head b { font-size: 14.5px; color: #111827; }
.bx-pick-now { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; align-items: center; font-size: 12.5px; }
.bx-pick-now .bx-chip { cursor: pointer; }
.bx-pick-dir, .bx-pick-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.bx-pick-dir > span, .bx-pick-grp > span { width: 34px; font-size: 11.5px; font-weight: 800; color: #6b7280; }
.bx-pick-dir button { width: 34px; height: 32px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-weight: 800; cursor: pointer; }
.bx-pick-dir button.on { background: #111827; color: #fff; border-color: #111827; }
.bx-pick-grp button { padding: 7px 10px; border-radius: 8px; border: 0; font-size: 13px; font-weight: 800; cursor: pointer; }
.bx-pick-grp.hit button { background: #dcfce7; color: #166534; }
.bx-pick-grp.on button { background: #dbeafe; color: #1e40af; }
.bx-pick-grp.out button { background: #f3f4f6; color: #374151; }
.bx-pick-grp.sac button { background: #f3e8ff; color: #6b21a8; }
.bx-pick-grp button:hover { filter: brightness(.95); box-shadow: inset 0 0 0 2px currentColor; }
.bx-pick-tip { margin: 0; font-size: 11.5px; color: #9ca3af; }
@media (max-width: 760px) {
  .bx-meta .bx-sel:first-of-type { margin-left: 0; }
  .bx-tabs button { font-size: 14px; padding: 10px 6px; }
  .bx-tabs button small { display: none; }
  .bx-player select { width: 112px; }
  .bx-cell { min-width: 62px; }
  .bx-pick { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 16px 16px 0 0; max-height: 70vh; overflow-y: auto; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); }
  .bx-pick-grp button { padding: 9px 10px; }
  .bx-pick-dir button { width: 32px; height: 36px; }
}
/* 간편기록 표: PC에서 7이닝이 옆으로 밀리지 않게 폭 줄이기 */
@media (min-width: 761px) {
  .bx-cell { min-width: 54px; }
  .bx-player select { width: 122px; }
  .bx-ord select { width: 54px; }
  .bx-pos select { width: 58px; }
  .bx-hand input { width: 40px; }
  .bx-grid th, .bx-grid td { padding: 4px 3px; }
  .bx-auto { min-width: 34px; }
}
.bx-pick-dir button { width: auto; min-width: 34px; padding: 0 6px; }
@media (max-width: 760px) {
  .bx-ord select { width: 52px; padding: 0 2px; }
  .bx-player select { width: 96px; }
  .bx-pos select { width: 54px; padding: 0 2px; }
  .bx-cell { min-width: 56px; }
  .bx-grid th, .bx-grid td { padding: 3px 2px; }
}

/* 박스스코어: 타석별 결과 (이닝마다 결과 칩) */
.pbp-wrap { border: 1px solid #e5e7eb; border-radius: 10px; }
.pbp { width: 100%; border-collapse: collapse; font-size: 13px; }
.pbp th, .pbp td { padding: 6px 5px; border-bottom: 1px solid #eef0f3; text-align: center; white-space: nowrap; }
.pbp thead th { background: #f7f8fa; color: #6b7280; font-size: 12px; font-weight: 800; }
.pbp th.left, .pbp td.left { text-align: left; }
.pbp tbody tr:last-child td { border-bottom: 0; }
.pbp td .bx-chip + .bx-chip { margin-left: 2px; }
.pbp-name { position: sticky; left: 0; background: #fff; font-weight: 700; }
.pbp-name a { color: #111827; }
/* 선수 칸에 이름만 나오므로 폭 줄이기 */
.bx-player select { width: 104px; }
.pit-row select[name=player_id] { width: 110px; }
@media (max-width: 760px) { .bx-player select { width: 86px; } }

/* ═════════ 기록 입력: 맨 위 점수판 (공격 이닝·팀 선택, R·H·E·B, 결과 특이사항) ═════════ */
.bx-board { background: #0f1b33; border-radius: 14px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(11, 31, 68, .18); color: #e5e7eb; }
.bx-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 14px; background: #0b1428; border-bottom: 1px solid #22314f; }
.bx-back { background: #1d4fa8; color: #fff; font-weight: 800; font-size: 13px; border-radius: 6px; padding: 6px 12px; }
.bx-back:hover { background: #2563eb; color: #fff; }
.bx-title { flex: 1; min-width: 0; font-size: 14px; color: #cbd5e1; }
.bx-title b { color: #4ade80; font-weight: 900; margin-right: 2px; }
.bx-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #94a3b8; }
.bx-status select { height: 32px; border-radius: 6px; border: 0; padding: 0 8px; font-weight: 700; }
.bx-board-body { padding: 12px 14px 10px; }
.bx-board .table-wrap { background: transparent; }
.bx-line { width: 100%; border-collapse: separate; border-spacing: 4px; }
.bx-line th, .bx-line td { text-align: center; padding: 0; white-space: nowrap; }
.bx-line thead th { font-size: 12px; color: #94a3b8; font-weight: 800; padding-bottom: 2px; }
.bx-line thead th.left small { font-weight: 600; color: #64748b; }
.bx-line th.left { text-align: left; }
.bx-ip { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; color: #cbd5e1; font-size: 13px; }
.bx-ip input { accent-color: #f97316; width: 14px; height: 14px; margin: 0; }
.bx-ip:has(input:checked) span { color: #fb923c; font-weight: 900; }
.bx-line .bx-r, .bx-line .bx-hh2, .bx-line .bx-eh, .bx-line .bx-bh { color: #f87171; font-size: 13px; }
.bx-ball { width: 22px; }
.bx-ball span { visibility: hidden; font-size: 15px; }
.bx-line tr:has(input[name=cur_team]:checked) .bx-ball span { visibility: visible; }
.bx-tp { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 36px; border-radius: 6px; background: #1b2a47; color: #e5e7eb; font-weight: 800; cursor: pointer; min-width: 150px; }
.bx-tp input { accent-color: #3b82f6; margin: 0; }
.bx-line tr:has(input[name=cur_team]:checked) .bx-tp { background: #1d4fa8; color: #fff; }
.bx-line td input.inn { width: 100%; min-width: 38px; height: 36px; border: 0; border-radius: 6px; background: #f8fafc; color: #0f172a; text-align: center; font-weight: 800; font-size: 15px; }
.bx-line td.bx-r input.inn { color: #dc2626; font-weight: 900; }
.bx-line td.bx-h, .bx-line td.bx-b { min-width: 40px; height: 36px; border-radius: 6px; background: #1b2a47; color: #fca5a5; font-weight: 900; font-size: 15px; }
.bx-line td.bx-e input.inn { color: #dc2626; }
.bx-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bx-results { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.bx-res { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; color: #cbd5e1; }
.bx-res input { accent-color: #ef4444; width: 15px; height: 15px; margin: 0; }
.bx-res small { color: #64748b; margin-left: 2px; font-size: 11.5px; }
.bx-res:has(input:checked) span { color: #fff; font-weight: 800; }
.bx-winner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #fbbf24; }
.bx-winner[hidden] { display: none; }
.bx-winner select { height: 32px; border-radius: 6px; border: 0; padding: 0 8px; font-weight: 700; }
.bx-save-top { background: #f97316; border-color: #f97316; }
.bx-board .hint { color: #94a3b8; margin: 8px 0 0; }
.bx-board .hint b { color: #e5e7eb; }
/* 아래 기록표: 점수판에서 고른 이닝 표시 */
.bx-grid thead th.bx-cur { background: #f97316 !important; }
.bx-grid td.bx-cur { background: #fff7ed; }
@media (max-width: 760px) {
  .bx-bar { padding: 10px 12px; }
  .bx-title { flex-basis: 100%; order: 3; font-size: 13px; }
  .bx-status { margin-left: auto; }
  .bx-board-body { padding: 10px 8px; }
  .bx-tp { min-width: 0; padding: 0 6px; }
  .bx-tp .badge { display: none; }
  .bx-tp span { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
  .bx-line td input.inn { min-width: 30px; height: 34px; font-size: 14px; }
  .bx-ball { width: 16px; }
  .bx-ball span { font-size: 12px; }
  .bx-results { gap: 8px 12px; }
  .bx-save-top { width: 100%; }
}

/* 참가신청: 휴대폰에서는 칸을 한 줄에 하나씩 (희망 부 문구가 잘리지 않게) */
@media (max-width: 560px) {
  .apply-form .row { flex-direction: column; gap: 0; }
  .apply-form .row > .field { width: 100%; }
}

/* ═════════ 참가팀: 팀 고르기 + 팀 정보 + 포지션별 명단 ═════════ */
.tp-pick { background: #fff; border: 1px solid #dde3ec; border-top: 3px solid #111827; border-radius: 0 0 14px 14px; padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.tp-pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed #e5e7eb; margin-bottom: 12px; }
.tp-pick-top select { min-width: 150px; }
.tp-count { margin: 0; font-size: 13.5px; color: #6b7280; font-weight: 700; }
.tp-count b { color: var(--accent); font-size: 16px; font-weight: 900; margin-left: 2px; }
.tp-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tp-chip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 10px; color: #1f2937; font-weight: 700; font-size: 14px; min-width: 0; transition: border-color .12s, background .12s; }
.tp-chip .badge { width: 30px; height: 30px; font-size: 13px; flex: none; }
.tp-chip span:not(.badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-chip small { flex: none; font-size: 11.5px; color: #9ca3af; font-weight: 800; }
.tp-chip:hover { border-color: var(--tc); color: #111827; }
.tp-chip.on { border: 2px solid var(--tc); background: color-mix(in srgb, var(--tc) 8%, #fff); padding: 6px 9px; }
.tp-chip.on small { color: var(--tc); }
.tp-team { background: #fff; border: 1px solid #dde3ec; border-radius: 14px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.tp-id { display: flex; align-items: center; gap: 16px; padding: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 14%, #fff), #fff 70%); border-bottom: 1px solid #eef0f3; }
.tp-id .badge.xl { width: 76px; height: 76px; flex: none; }
.tp-id > div { flex: 1; min-width: 0; }
.tp-div { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--tc); border-radius: 999px; padding: 2px 10px; }
.tp-id h2 { margin: 4px 0 2px; font-size: 24px; font-weight: 900; }
.tp-id h2 a { color: #111827; }
.tp-id h2 a:hover { color: var(--tc); }
.tp-rec { margin: 0; font-size: 13.5px; color: #4b5563; }
.tp-rec b { color: var(--accent); }
.tp-more { flex: none; }
.tp-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.tp-facts div { padding: 12px 14px; border-right: 1px solid #eef0f3; min-width: 0; }
.tp-facts div:last-child { border-right: 0; }
.tp-facts dt { font-size: 11.5px; font-weight: 800; color: #9ca3af; margin-bottom: 3px; }
.tp-facts dd { margin: 0; font-size: 15px; font-weight: 800; color: #111827; overflow-wrap: anywhere; }
.rt-group { margin-bottom: 18px; }
.rt-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 900; color: #111827; }
.rt-cap b { font-size: 13px; color: var(--accent); }
.rt-code { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; background: #111827; color: #fff; font-size: 11.5px; font-weight: 900; }
.rt-wrap { background: #fff; border: 1px solid #dde3ec; border-radius: 12px; overflow: hidden; }
.rt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rt thead th { background: #f3f5f8; color: #4b5563; font-size: 12px; font-weight: 800; padding: 9px 8px; border-bottom: 1px solid #e5e7eb; text-align: center; white-space: nowrap; }
.rt th.left { text-align: left; padding-left: 16px; }
.rt td { padding: 10px 8px; border-bottom: 1px solid #f0f2f5; text-align: center; vertical-align: middle; color: #374151; }
.rt tbody tr:last-child td { border-bottom: 0; }
.rt tbody tr:hover { background: #fafbfd; }
.rt td small { display: block; font-size: 11.5px; color: #9ca3af; }
.rt-who { text-align: left !important; padding-left: 14px !important; }
.rt-who a { display: flex; align-items: center; gap: 12px; color: inherit; }
.rt-ava { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; background: #eef1f5; color: #b6bfcc; display: grid; place-items: center; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--tc) 55%, #fff); }
.rt-ava svg { width: 34px; height: 34px; margin-top: 6px; }
.rt-ava i { position: absolute; right: -4px; bottom: -2px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; background: var(--tc); color: #fff; font-style: normal; font-size: 11px; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; }
.rt-name { display: grid; gap: 1px; min-width: 0; }
.rt-name b { font-size: 15px; color: #111827; }
.rt-who a:hover b { color: var(--accent); }
.rt-name small { text-align: left; }
.rt-tag { display: inline-block; margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.rt-tag.master { background: #e8f0ff; color: #1d4fa8; }
.rt-tag.elite { margin: 0; background: #fff1e6; color: #c2410c; }
.rt-plain { color: #9ca3af; font-size: 12.5px; }
.rt-g { color: var(--accent); font-size: 15px; font-weight: 900; }
.rt-tg { color: #9ca3af; }
.rt-wait { color: #c2410c !important; font-weight: 700; }
.rt-btn { display: inline-block; padding: 5px 10px; border-radius: 8px; border: 1px solid #d1d5db; font-size: 12.5px; font-weight: 800; color: #1f2937; white-space: nowrap; }
.rt-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) {
  .tp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-facts div:nth-child(3) { border-right: 0; }
  .tp-facts div:nth-child(-n+3) { border-bottom: 1px solid #eef0f3; }
}
@media (max-width: 640px) {
  .tp-pick { padding: 12px; }
  .tp-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tp-chip { padding: 6px 8px; font-size: 13px; }
  .tp-chip .badge { width: 26px; height: 26px; }
  .tp-id { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .tp-id .badge.xl { width: 60px; height: 60px; font-size: 26px; }
  .tp-id h2 { font-size: 20px; }
  .tp-more { width: 100%; text-align: center; }
  .tp-facts div { padding: 10px 12px; }
  .tp-facts dd { font-size: 14px; }
  /* 명단 표 → 선수 카드 */
  .rt-wrap { background: transparent; border: 0; overflow: visible; }
  .rt thead { display: none; }
  .rt, .rt tbody { display: block; }
  .rt tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; background: #fff; border: 1px solid #dde3ec; border-radius: 12px; padding: 12px; margin-bottom: 8px; }
  .rt td { display: block; padding: 0; border: 0; text-align: left; }
  .rt td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; color: #9ca3af; margin-bottom: 1px; }
  .rt-who { grid-column: 1 / -1; padding: 0 0 10px !important; border-bottom: 1px solid #f0f2f5 !important; }
  .rt-go { grid-column: 1 / -1; }
  .rt-btn { display: block; text-align: center; }
}

/* ═════════ 선수 사진·팀 사진 ═════════ */
.ph-cell { position: relative; width: 52px; }
.ph-thumb { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed #cbd5e1; background: #f8fafc; display: grid; place-items: center; padding: 0; overflow: hidden; cursor: pointer; font-size: 15px; }
.ph-thumb.has { border: 2px solid #e5e7eb; }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-thumb:hover { border-color: var(--accent); }
.ph-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; font-size: 10px; line-height: 18px; padding: 0; cursor: pointer; }
.tphoto-pick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tphoto-preview { width: 220px; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px dashed #cbd5e1; background: #f8fafc; display: grid; place-items: center; overflow: hidden; color: #9ca3af; font-size: 13px; }
.tphoto-preview img { width: 100%; height: 100%; object-fit: cover; }
.rt-ava.has { background: #fff; overflow: visible; }
.rt-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tp-team.with-photo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "id photo" "facts photo"; }
.tp-team.with-photo .tp-id { grid-area: id; }
.tp-team.with-photo .tp-facts { grid-area: facts; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-team.with-photo .tp-facts div:nth-child(3) { border-right: 0; }
.tp-team.with-photo .tp-facts div:nth-child(-n+3) { border-bottom: 1px solid #eef0f3; }
.tp-photo { grid-area: photo; margin: 0; border-left: 1px solid #eef0f3; background: #f3f5f8; }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 180px; }
.ph-avatar.has { overflow: hidden; }
.ph-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ph-avatar.has .ph-num { position: absolute; right: 2px; bottom: 2px; z-index: 1; font-size: 13px; min-width: 26px; height: 26px; border-radius: 999px; background: var(--tc); color: #fff; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
@media (max-width: 760px) {
  .tp-team.with-photo { grid-template-columns: 1fr; grid-template-areas: "photo" "id" "facts"; }
  .tp-photo { border-left: 0; border-bottom: 1px solid #eef0f3; }
  .tp-photo img { min-height: 0; aspect-ratio: 16 / 9; }
  .tphoto-preview { width: 100%; max-width: 320px; }
}
.ph-avatar.has::before { display: none; }
.ph-avatar img { z-index: 1; }
.ph-avatar.has .ph-num { z-index: 2; }

/* 참가팀 명단: 선수등록일 (팀 / 리그) */
.rt-reg span { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.6; }
.rt-reg em { display: inline-block; width: 30px; margin-right: 4px; font-style: normal; font-size: 11px; font-weight: 800; color: #6b7280; background: #f1f3f6; border-radius: 4px; text-align: center; }
.rt-reg span + span em { color: #1d4fa8; background: #e8f0ff; }

/* 참가팀: 포지션별 묶음 구분선을 또렷하게 */
.rt-group { margin: 0 0 26px; padding: 14px 14px 16px; background: #f7f9fc; border: 1.5px solid #c9d3e1; border-left: 5px solid #111827; border-radius: 12px; }
.rt-cap { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid #111827; font-size: 17px; }
.rt-wrap { border: 1.5px solid #c9d3e1; }
.rt thead th { background: #e9eef5; border-bottom: 1.5px solid #c9d3e1; }
@media (max-width: 640px) {
  .rt-group { padding: 12px 10px 4px; border-left-width: 4px; }
  .rt-wrap { border: 0; }
}
.rt-pos { font-style: normal; font-weight: 800; color: #1d4fa8; }

/* 팀마스터 계정: 현재 팀마스터 강조 + 변경 안내 */
.master-now li { background: #f1f5ff; border-radius: 10px; padding: 10px 12px; }
.sub-label { margin: 12px 0 6px; font-size: 13px; font-weight: 800; color: #374151; }

/* ═════════ 우리팀 관리: 팀원 관리 (등급·포지션·배번) ═════════ */
.mm-wrap { border: 1px solid #dde3ec; border-radius: 10px; }
.mm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mm-table thead th { background: #eef1f5; color: #374151; font-weight: 800; font-size: 12.5px; padding: 10px 8px; border-bottom: 1px solid #d5dce6; text-align: center; white-space: nowrap; }
.mm-table td { padding: 8px; border-bottom: 1px solid #eef0f3; text-align: center; vertical-align: middle; white-space: nowrap; }
.mm-table tbody tr:nth-child(even) { background: #f9fafb; }
.mm-table tr.mm-unset td { color: #6b7280; }
.mm-who b { display: block; color: #111827; font-size: 14px; }
.mm-who small { color: #9ca3af; font-size: 11.5px; }
.mm-table select, .mm-table input { height: 34px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 8px; background: #fff; text-align: center; }
.mm-table input.n3 { width: 64px; }
.mm-sel { min-width: 96px; font-weight: 800; }
.mm-sel.g-미지정 { color: #9ca3af; border-style: dashed; }
.mm-sel.g-선수 { color: #1d4fa8; }
.mm-sel.g-감독, .mm-sel.g-총무 { color: #c2410c; }
.mm-grade.master { display: inline-block; padding: 6px 12px; border-radius: 6px; background: #111827; color: #fff; font-size: 12.5px; font-weight: 800; }
.mm-reg small { display: block; font-size: 11px; }
.mm-ok { color: #15803d; font-weight: 700; }
.mm-pager { margin-top: 12px; }
.mm-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mm-actions .btn.primary { min-width: 140px; }
.rt-tag.role { background: #fff4e5; color: #c2410c; }
@media (max-width: 760px) {
  .mm-wrap { border: 0; }
  .mm-table thead { display: none; }
  .mm-table, .mm-table tbody { display: block; }
  .mm-table tbody tr { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 6px 10px; align-items: center; padding: 12px; border: 1px solid #dde3ec; border-radius: 12px; margin-bottom: 8px; background: #fff !important; }
  .mm-table td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .mm-table td:first-child { grid-row: 1; }
  .mm-who { grid-column: 2 / -1; }
  .mm-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; color: #9ca3af; }
  .mm-table td[data-label] { grid-column: span 1; }
  .mm-table td[data-label]:nth-child(3) { grid-column: 2; }
  .mm-table select, .mm-table input { width: 100%; }
  .mm-actions .btn { flex: 1; }
}
@media (max-width: 760px) {
  /* 팀원 카드: 체크칸은 오른쪽 위, 나머지는 두 칸씩 */
  .mm-table tbody tr { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .mm-table td:first-child { position: absolute; top: 12px; right: 12px; }
  .mm-table td:first-child input { width: 20px; height: 20px; }
  .mm-who { grid-column: 1 / -1; padding-right: 30px !important; }
  .mm-table td[data-label], .mm-table td[data-label]:nth-child(3) { grid-column: auto; }
  .mm-table td[data-label="선수등록일"] { grid-column: 1 / -1; }
  .mm-table input.n3 { width: 100%; }
}

/* ═════════ 팀관리·우리팀 관리 선수 명단: PC 한 화면에 다 보이게 (칸 폭 줄이기) ═════════ */
@media (min-width: 761px) {
  .roster-edit { font-size: 12.5px; }
  .roster-edit th { padding: 8px 3px; font-size: 12px; white-space: nowrap; }
  .roster-edit td { padding: 4px 3px; }
  .roster-edit input, .roster-edit select { height: 32px; font-size: 12.5px; padding: 0 4px; }
  .roster-edit input[name=number] { width: 42px; text-align: center; }
  .roster-edit input[name=name] { width: 84px; }
  .roster-edit select[name=position] { width: 78px; }
  .roster-edit select[name=throws], .roster-edit select[name=bats] { width: 56px; }
  .roster-edit input[type=date] { width: 112px; font-size: 12px; padding: 0 2px; }
  .roster-edit input[name=school] { width: 76px; }
  .roster-edit .ph-cell { width: 40px; }
  .roster-edit .ph-thumb { width: 34px; height: 34px; }
  .roster-edit .actions { white-space: nowrap; }
  .roster-edit .actions .btn.sm { padding: 4px 8px; font-size: 12px; }
  .roster-edit .joined-cell small { font-size: 10.5px; }
}
@media (min-width: 761px) {
  table.data.roster-edit th { padding: 8px 3px; }
  table.data.roster-edit td { padding: 4px 3px; }
  table.data.roster-edit input[type=date] { width: 108px; }
  table.data.roster-edit .actions .btn.sm { padding: 4px 6px; }
  table.data.roster-edit .actions .btn + .btn { margin-left: 2px; }
}

/* 팀 내 등급 표시: 팀마스터(파랑)·감독(빨강)·총무(초록) */
.gb { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; line-height: 1.6; vertical-align: 2px; white-space: nowrap; }
.gb-master { background: #e8f0ff; color: #1d4fa8; box-shadow: inset 0 0 0 1px #bfd3ff; }
.gb-coach { background: #fee2e2; color: #b91c1c; box-shadow: inset 0 0 0 1px #fecaca; }
.gb-staff { background: #dcfce7; color: #15803d; box-shadow: inset 0 0 0 1px #bbf7d0; }
.player-hero h2 .gb { font-size: 13px; vertical-align: 4px; }
.rt-nm { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
.rt-nm .gb { vertical-align: 0; }
.mm-master { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mm-role { min-width: 86px; }

/* ═════════ 관리자 > 선수확인: 팀별 선수 표 ═════════ */
.pv-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; }
.pv-filter .tool-input { flex: 1; min-width: 140px; }
.pv-count { font-size: 13px; color: #6b7280; }
.pv-count b { color: var(--accent); font-size: 15px; }
.pv-xls { margin-left: auto; background: #ecfdf3; border-color: #86efac; color: #166534; font-weight: 800; }
.pv-team { margin: 18px 0 22px; }
.pv-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; font-size: 15px; color: #374151; }
.pv-head > span { color: #6b7280; font-weight: 700; }
.pv-head b { color: #111827; font-weight: 900; }
.pv-head small { color: #c2410c; font-weight: 700; font-size: 12.5px; }
.pv-head em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--tc); border-radius: 999px; padding: 2px 10px; }
.pv-wrap { border: 1px solid #c9d3e1; border-top: 3px solid var(--tc); border-radius: 0 0 10px 10px; background: #fff; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pv-table thead th { background: #eef2f7; color: #374151; font-weight: 800; font-size: 12px; padding: 8px 4px; border-bottom: 1px solid #c9d3e1; text-align: center; white-space: nowrap; }
.pv-table th.left { text-align: left; padding-left: 10px; }
.pv-table td { padding: 5px 4px; border-bottom: 1px solid #eef0f3; text-align: center; vertical-align: middle; color: #374151; white-space: nowrap; }
.pv-table tbody tr:nth-child(even) { background: #f9fafb; }
.pv-table tbody tr:hover { background: #f1f5ff; }
.pv-no { color: #9ca3af; width: 32px; }
.pv-who { text-align: left !important; }
.pv-who a { display: flex; align-items: center; gap: 8px; color: #111827; }
.pv-who a:hover b { color: var(--accent); }
.pv-who small { color: #6b7280; margin-left: 2px; }
.pv-ph { flex: none; width: 30px; height: 30px; border-radius: 6px; background: #e5e7eb; display: grid; place-items: center; overflow: hidden; }
.pv-ph img { width: 100%; height: 100%; object-fit: cover; }
.pv-ph i { font-style: normal; font-size: 15px; opacity: .55; }
.pv-g { color: var(--accent); }
.pv-reg span { display: block; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pv-reg em { font-style: normal; font-weight: 800; color: #6b7280; margin-right: 4px; }
.pv-reg span + span em { color: #1d4fa8; }
.pv-table select { height: 28px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 4px; font-size: 12px; background: #fff; }
.pv-st-ok { color: #15803d; font-weight: 800; }
.pv-st-wait { color: #c2410c; font-weight: 800; }
.pv-st-off { color: #9ca3af; font-weight: 800; }
.pv-table tr.pv-off td { color: #9ca3af; }
@media (max-width: 760px) {
  .pv-xls { margin-left: 0; width: 100%; }
  .pv-wrap { border: 0; background: transparent; }
  .pv-table thead { display: none; }
  .pv-table, .pv-table tbody { display: block; }
  .pv-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; background: #fff !important; border: 1px solid #dde3ec; border-left: 3px solid var(--tc); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
  .pv-table td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .pv-table td.pv-no { display: none; }
  .pv-who { grid-column: 1 / -1; padding-bottom: 6px !important; border-bottom: 1px solid #f0f2f5 !important; }
  .pv-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; color: #9ca3af; }
  .pv-table select { width: 100%; height: 32px; }
}

/* ═════════ 리그연혁: 연도별 타임라인 ═════════ */
.hist-card { padding: 22px 24px; }
.hist { list-style: none; margin: 0; padding: 0; position: relative; }
.hist::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(#e4572e, #0b1f44); opacity: .35; }
.hist-year { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 10px 0 14px; }
.hist-year + .hist-year { border-top: 1px dashed #e5e7eb; }
.hist-y { margin: 0; position: relative; z-index: 1; }
.hist-y span { display: inline-grid; place-items: center; width: 96px; height: 38px; border-radius: 999px; background: #0b1f44; color: #fff; font-size: 17px; font-weight: 900; letter-spacing: .02em; box-shadow: 0 0 0 4px #fff; }
.hist-year:first-child .hist-y span { background: var(--accent); }
.hist-items { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 8px; }
.hist-items li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: baseline; }
.hist-items time { font-size: 13px; font-weight: 800; color: #c2410c; font-variant-numeric: tabular-nums; }
.hist-items p { margin: 0; font-size: 15px; color: #1f2937; line-height: 1.55; }
.hist-edit td:first-child input { width: 120px; text-align: center; }
.hist-edit td:nth-child(2) input { width: 100%; min-width: 240px; }
@media (max-width: 640px) {
  .hist-card { padding: 16px 14px; }
  .hist::before { left: 35px; }
  .hist-year { grid-template-columns: 1fr; gap: 8px; }
  .hist-y span { width: 72px; height: 32px; font-size: 15px; }
  .hist-items { padding-left: 10px; border-left: 3px solid #e5e7eb; margin-left: 34px; }
  .hist::before { display: none; }
  .hist-items li { grid-template-columns: 46px 1fr; }
  .hist-items p { font-size: 14px; }
  .hist-edit td:nth-child(2) input { min-width: 180px; }
}

/* ═════════ 데이터 백업 · 비밀번호 초기화 ═════════ */
.bk-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bk-state { display: grid; gap: 2px; padding-left: 14px; border-left: 5px solid #16a34a; }
.bk-state.none { border-left-color: #f59e0b; }
.bk-state b { font-size: 16px; color: #111827; }
.bk-state span { font-size: 14px; color: #4b5563; font-variant-numeric: tabular-nums; }
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #eef0f3; }
.bk-list li:last-child { border-bottom: 0; }
.bk-name { display: grid; gap: 1px; min-width: 0; }
.bk-name b { font-size: 14.5px; color: #111827; font-variant-numeric: tabular-nums; }
.bk-name small { color: #9ca3af; font-size: 12px; overflow-wrap: anywhere; }
.bk-help ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #374151; line-height: 1.6; }
.bk-help code { background: #f3f4f6; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; overflow-wrap: anywhere; }
.temp-pw { margin: 12px 0; padding: 14px; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; background: #fff7ed; border: 2px dashed #fb923c; border-radius: 12px; color: #9a3412; user-select: all; cursor: copy; }
.auth-forgot { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #f1f5ff; color: #1e3a8a; font-size: 13px; line-height: 1.6; text-align: center; }
.auth-forgot small { color: #4b5563; }
.pw-temp-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 13.5px; line-height: 1.6; }
.pw-temp-banner { background: #c2410c; }
@media (max-width: 640px) {
  .bk-top .btn { width: 100%; }
  .bk-list li { flex-wrap: wrap; }
  .bk-list .btn { width: 100%; text-align: center; }
  .temp-pw { font-size: 24px; }
}

/* 개인정보처리방침 */
.privacy-doc h3 { margin: 22px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); font-size: 16.5px; color: #111827; }
.privacy-doc h3:first-of-type { margin-top: 14px; }
.privacy-doc p, .privacy-doc li { font-size: 14.5px; line-height: 1.75; color: #374151; }
.privacy-doc ul { padding-left: 20px; margin: 6px 0; }
.footer-links a.footer-privacy { font-weight: 800; color: #fff; }

/* 기록 입력: 상대 투수 고르기 + 결과에 투수 순번 */
.bx-vs { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #eef2ff; font-size: 12.5px; font-weight: 800; color: #3730a3; }
.bx-vs select { height: 30px; border: 1px solid #c7d2fe; border-radius: 999px; padding: 0 8px; font-weight: 800; color: #1e1b4b; background: #fff; max-width: 200px; }
.bx-pn { font-size: 9px; font-weight: 900; color: #4338ca; margin-left: 1px; vertical-align: super; }
@media (max-width: 760px) { .bx-vs { width: 100%; justify-content: space-between; } .bx-vs select { flex: 1; max-width: none; } }

/* 회원가입·내 정보: 소속팀 여러 개 */
.team-picker > span:first-child { display: block; margin-bottom: 6px; }
.team-picker .tp-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 30px; align-items: center; }
.tp-chip-sel { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 6px; border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 999px; font-size: 13px; }
.tp-chip-sel b { color: #1e1b4b; }
.tp-chip-sel small { color: #6366f1; font-weight: 700; }
.tp-chip-sel button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #c7d2fe; color: #3730a3; font-size: 11px; cursor: pointer; padding: 0; }
.tp-chip-sel button:hover { background: #ef4444; color: #fff; }
.team-picker .tp-add { display: flex; gap: 6px; margin-bottom: 4px; }
.team-picker .tp-add select { flex: 1; min-width: 0; }
.team-picker > small { display: block; line-height: 1.5; }

/* 머리글 로고: 리그 방패 엠블럼. 크게 두되 아래 끝은 메뉴 줄 밑선에 맞추고, 커진 만큼 위 검은 띠에 걸침 (머리글 높이는 그대로) */
.logo-emblem { height: 82px; width: auto; flex: none; margin: -26px 0 0; position: relative; z-index: 2; filter: drop-shadow(0 2px 4px rgba(15,35,80,.25)); }
@media (max-width: 720px) { .logo-emblem { height: 64px; margin: -12px 0 0; } }
/* 엠블럼을 머리글로 옮긴 뒤에도 메인 배경 높이는 예전 그대로 (엠블럼 자리만큼 위 여백) */
.hero-text { padding-top: calc(var(--eh) + clamp(0px, .4vw, 6px)); }
@media (max-width: 720px) { .logo-emblem + span strong.logo-en { font-size: 14px; letter-spacing: .01em; white-space: nowrap; } .logo { gap: 9px; } }
/* 메인 배경 사진: 그림 전체가 보이게 (사진 비율 16:9 그대로), 글자는 비어 있는 왼쪽 파란 하늘 쪽 */
.hero.photo { aspect-ratio: 16 / 9; min-height: 0; max-height: none; align-items: center; }
.hero.photo .hero-bg { object-position: 50% 50%; filter: none; }
.hero.photo::before {
  background:
    linear-gradient(90deg, rgba(4,14,40,.55) 0%, rgba(4,14,40,.3) 30%, rgba(4,14,40,0) 55%),
    linear-gradient(0deg, rgba(4,11,26,.35) 0%, rgba(4,11,26,0) 22%);
}
.hero.photo .hero-inner { justify-content: flex-start; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.hero.photo .hero-text { align-items: flex-start; text-align: left; padding-top: 0; --tw: clamp(220px, 46vw, 700px); }
@media (max-width: 720px) {
  .hero.photo { min-height: 0; align-items: center; }
  .hero.photo .hero-bg { object-position: 50% 50%; }
  .hero.photo .hero-inner { padding-top: 12px; padding-bottom: 12px; }
  .hero.photo .hero-text { --tw: min(200px, 54vw); }
  .hero.photo .season-chip { font-size: 10px; padding: 3px 8px; }
}
/* 메뉴 줄(리그소개·일정결과…) 높이 줄임: PC 68→56px, 모바일 60→52px */
.header-inner { height: 56px; }
.gnb > ul > li > a { padding-top: 16px; padding-bottom: 16px; }
.gnb > ul > li.on > a::after, .gnb > ul > li:hover > a::after { bottom: 8px; }
.subnav { top: 86px; }
@media (max-width: 860px) {
  .header-inner { height: 52px; }
  .gnb { top: 82px; }
  .gnb > ul > li > a { padding: 14px 4px 6px; }
  .subnav { top: 82px; }
}
/* 메인 글자 묶음(시즌 표시·슬로건·레터링)을 사진 위쪽으로 */
.hero.photo { align-items: stretch; }
.hero.photo .hero-inner { align-items: flex-start; padding-top: clamp(14px, 8vw, 130px); }
@media (max-width: 720px) { .hero.photo .hero-inner { padding-top: 14px; } }
/* 경기결과 창 (공지사항 왼쪽): 가장 최근 경기일의 경기들.
   세 창(경기결과·공지사항·바로가기)은 폭이 같고, 높이는 경기결과 창(경기 1개 높이) 기준으로 고정.
   경기가 2개 이상이면 위로 자동 반복해서 흐름 (마우스를 올리면 멈춤). 태블릿 세로·휴대폰은 모두 펼쳐 보임 */
.home-top.has-result { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-card { padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.result-card .card-head { margin-bottom: 4px; }
.rc-date { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rc-date b { color: var(--text); font-weight: 900; }
.rc-date span { margin-left: 4px; color: var(--accent); font-weight: 800; }
.rc-body { position: relative; }
.rc-view { overflow: hidden; }
.rc-group { display: grid; gap: 8px; padding-bottom: 8px; }   /* 아래 여백 = 반복 흐름의 이음매 간격 */
.rc-group .strip-game { width: auto; min-width: 0; padding: 7px 10px; }
.rc-view.rolling { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(180deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.rc-view.rolling .rc-track { animation: rc-move var(--dur, 20s) linear infinite; }
.rc-view.rolling:hover .rc-track, .rc-view.rolling:focus-within .rc-track { animation-play-state: paused; }
@keyframes rc-move { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (max-width: 1100px) { .home-top.has-result { gap: 14px; } }
@media (min-width: 761px) {
  .home-top.has-result { align-items: stretch; }
  .home-top.has-result > .notice-card, .home-top.has-result > .quick { contain: size; }   /* 높이는 경기결과 창이 정함 */
  .home-top.has-result > .notice-card { display: flex; flex-direction: column; overflow: hidden; }
  .home-top.has-result > .notice-card .post-list { flex: 1; min-height: 0; overflow-y: auto; }
  .home-top.has-result > .quick a { min-height: 0; }
  .result-card .rc-view { height: 83px; }   /* 경기 카드 1개 높이 */
  .result-card .rc-view:not(.rolling) .rc-group { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .home-top.has-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-top.has-result .result-card { grid-column: 1 / -1; }
  .rc-group { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 0; }
}
@media (max-width: 560px) {
  .home-top.has-result { grid-template-columns: minmax(0, 1fr); }
  .rc-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 경기결과·공지사항·바로가기 세 칸을 메인 사진 안 아래쪽에 겹쳐 놓음 (PC·태블릿). 휴대폰은 사진 아래 */
@media (min-width: 761px) {
  .hero-wrap { display: grid; }
  .hero-wrap > .hero, .hero-wrap > .home-top { grid-area: 1 / 1; }
  .hero-wrap > .home-top { align-self: end; position: relative; z-index: 2; padding-top: 0; margin-bottom: clamp(16px, 2.2vw, 32px); color: var(--text); }
  .hero-wrap > .home-top > .card { box-shadow: 0 12px 32px rgba(0, 8, 30, .35); border-color: rgba(255,255,255,.6); }
  .hero-wrap > .home-top .quick a { box-shadow: 0 10px 26px rgba(0, 8, 30, .35); }
}
/* 처음 열었을 때 메인 사진(+안의 세 칸)이 브라우저 한 화면에 다 들어오게: 사진 높이 = 16:9 와 (화면 높이 − 머리글) 중 작은 값 */
@media (min-width: 761px) {
  .hero-wrap > .hero.photo { width: 100%; aspect-ratio: auto; max-height: none; height: min(56.25vw, calc(100vh - 87px)); height: min(56.25vw, calc(100svh - 87px)); min-height: 440px; }
  .hero-wrap > .hero.photo .hero-bg { object-position: 50% 70%; }
  .hero-wrap > .hero.photo .hero-inner { padding-top: clamp(14px, min(8vw, 7vh), 130px); }
}
/* 제목 글씨까지 그려진 메인 그림(hero-text.jpg): 그림 왼쪽 글씨가 잘리지 않게 왼쪽 기준으로 맞추고, 잘라야 하면 오른쪽을 자름 */
.hero.photo.has-text .hero-bg,
.hero-wrap > .hero.photo.has-text .hero-bg { object-position: 0% 50%; filter: none; }
/* 그림 속 글씨가 어두워 보이지 않게: 왼쪽을 어둡게 덮던 층은 빼고, 아래 세 칸 뒤쪽만 옅게 */
.hero.photo.has-text::before { background: linear-gradient(0deg, rgba(4,11,26,.3) 0%, rgba(4,11,26,0) 18%); }
/* 리그명 그림이 없는 리그(예: 그린필드)도 경부크리스찬리그와 같은 비율: 리그명 너비 = 레터링 그림 너비(--tw), 슬로건은 작게 */
.hero.photo .hero-words .hero-title { font-size: calc(var(--tw) / (var(--chars, 8) * .8 + 1.2)); margin-right: .55em; }
.hero.photo .hero-words .hero-slogan { font-size: calc(var(--tw) * .052); margin: 6px 0 .05em .3em; }
/* '2027 SEASON': 리그명 레터링 바로 아래, 왼쪽 시작선 ("경" 글자 아래) — 슬로건 → 리그명 → 시즌 순서 */
.hero.photo .hero-text .season-chip,
.hero.photo .hero-text:has(.hero-words) .season-chip { order: 2; align-self: flex-start; margin: clamp(8px, 1vw, 14px) 0 0 calc(var(--tw) * 8 / 845); }
.hero.photo .hero-text .hero-brand { order: 1; margin-top: 0; }
/* 경부크리스찬리그 메인 문구: KCBA(+영문 이름) → LET'S GO → 리그명 레터링 → 한 줄 소개. 크기는 모두 레터링 너비(--tw) 기준 */
.hero-kcba { display: flex; flex-direction: column; align-items: flex-start; }
.hero-kcba p { margin: 0; }
.hero-kcba .kc-row { display: flex; align-items: flex-end; gap: calc(var(--tw) * .028); }
.hero-kcba .kc-abbr, .hero-kcba .kc-go {
  font-family: "Black Han Sans", "Do Hyeon", var(--font); font-weight: 400; line-height: .92; letter-spacing: .01em;
  display: inline-block; transform: skewX(-10deg); transform-origin: left bottom;
  color: #fff; background: linear-gradient(180deg, #ffffff 30%, #c9dcff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1px #0b2350) drop-shadow(0 3px 0 #0b2350) drop-shadow(0 0 14px rgba(70,140,255,.55));
}
.hero-kcba .kc-abbr { font-size: calc(var(--tw) * .16); }
.hero-kcba .kc-full {
  font-weight: 800; font-size: calc(var(--tw) * .026); line-height: 1.25; letter-spacing: .06em; color: #e3ecff;
  margin-bottom: calc(var(--tw) * .012); text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.hero-kcba .kc-go { font-size: calc(var(--tw) * .11); margin: calc(var(--tw) * .02) 0 calc(var(--tw) * .012); }
.hero-kcba .hero-title-img img { width: calc(var(--tw) * .86); }
.hero-kcba .kc-tag {
  margin-top: calc(var(--tw) * .016); font-weight: 700; font-size: max(12px, calc(var(--tw) * .03)); line-height: 1.45; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6);
}
/* 한 줄 소개는 자리가 좁은 화면에서 숨김: 휴대폰(사진이 낮음), 태블릿 폭(세 칸이 사진 안에서 높아짐) */
@media (max-width: 560px), (min-width: 761px) and (max-width: 900px) { .hero-kcba .kc-tag { display: none; } }
@media (min-width: 761px) and (max-width: 900px) { .hero-wrap > .hero.photo .hero-inner:has(.hero-kcba) { padding-top: 16px; } }
/* 로고 통일: 관리자 화면·로그인 화면도 리그 방패 엠블럼 */
.adm-profile img { width: 96px; height: auto; background: none; padding: 0; border-radius: 0; filter: drop-shadow(0 2px 4px rgba(15,35,80,.2)); }
.auth-logo { width: 110px; height: auto; filter: drop-shadow(0 3px 6px rgba(15,35,80,.2)); }
