/* LIVE 포메이션 메인 사이트 — 상단 경기장 그림 + 메뉴 + 흰 배경 */

/* KBO 다이아고딕 Bold (KBO 무료 배포 서체, 개인·기업 무료 사용·재배포 허용) */
@font-face {
  font-family: "KBO Dia Gothic";
  src: url("/fonts/KBO-Dia-Gothic_bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KBO Dia Gothic";
  src: url("/fonts/KBO-Dia-Gothic_medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  /* 아이보리 매거진: 따뜻한 크림 바탕 + 버건디 포인트 + 가는 선 */
  --bg: #f7f3ec;
  --paper: #fffdf9;
  --line: #d9d0c2;
  --text: #1c1a17;
  --muted: #7a7268;
  --accent: #7a1f2b;
  --accent-soft: rgba(122, 31, 43, 0.07);
  --nav-bg: #f7f3ec;
  --nav-text: #1c1a17;
  --overlay-bg: #0e1116;
}

* {
  box-sizing: border-box;
}

/* 숨긴 메뉴·칸은 어떤 배치(grid·flex) 규칙보다 우선해서 숨김 */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  /* hidden 은 맨유 메뉴 바로가기의 '따라오기(sticky)'를 막아서 clip(잘라내기만) */
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------- 상단 그림 (글자는 LIVE 포메이션만) ---------- */
.hero {
  position: relative;
  cursor: pointer; /* 누르면 처음 화면으로 */
  /* 예전(420~680px)의 2/3 높이 */
  height: clamp(280px, 40vw, 453px);
  overflow: hidden;
  background: #020308;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 55%;
}

/* 아래쪽만 살짝 어둡게: 'LIVE 포메이션' 글자가 잔디 위에서도 보이도록 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* ---------- 메뉴 (4개만) ---------- */
.site-nav {
  /* 지금처럼 위에 고정되지 않고 같이 스크롤 */
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  height: 56px;
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 1px solid #ececf0;
}

.menu {
  --menu-gap: clamp(32px, 8vw, 96px);
  display: flex;
  align-self: stretch; /* 메뉴 바 높이 전체를 차지 → 경계선 높이 계산 기준 */
  gap: var(--menu-gap);
  /* 양 끝 메뉴가 마우스를 올려 커지고 빛나도 잘리지 않게 좌우 여백 */
  padding: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  font-family: "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #4a4a55;
  text-decoration: none;
  white-space: nowrap;
  /* 두 줄 메뉴(맨체스터 / 유나이티드)도 가운데 정렬, 줄 간격 촘촘하게 */
  text-align: center;
  line-height: 1.2;
}

.menu a:hover {
  color: var(--nav-text);
}

/* 마우스를 올리면: 글자만 살짝 커지며 떠오르고(통통), 보랏빛이 한 번 반짝 */
.menu .label,
.odds-toggle .label {
  display: inline-block;
  transition:
    transform 0.22s cubic-bezier(0.3, 0.7, 0.3, 1.5),
    text-shadow 0.22s ease;
}

.menu a:hover .label,
.menu a:focus-visible .label,
.odds-toggle:hover .label,
.odds-toggle:focus-visible .label {
  transform: translateY(-1px) scale(1.1);
  text-shadow: 0 0 8px rgba(122, 31, 43, 0.28);
  animation: menu-glow 0.6s ease-out;
}

@keyframes menu-glow {
  0% {
    text-shadow: 0 0 0 rgba(122, 31, 43, 0);
  }
  35% {
    text-shadow:
      0 0 12px rgba(122, 31, 43, 0.65),
      0 0 2px rgba(255, 255, 255, 0.9);
  }
  100% {
    text-shadow: 0 0 8px rgba(122, 31, 43, 0.28);
  }
}

/* 메뉴 사이 경계선: 간격의 정가운데, 메뉴 바 맨 아래에서 높이의 25%까지 */
.menu a + a::before {
  content: "";
  position: absolute;
  left: calc(var(--menu-gap) / -2 - 1px);
  bottom: 0;
  width: 2px;
  height: 25%;
  background: #d4d4dc;
}

.menu a[aria-current="page"] {
  color: var(--accent);
}

/* 밑줄: 선택된 메뉴는 진한 보라, 마우스를 올린 메뉴(·배당 제목)는 연한 보라가 가운데에서 펼쳐짐 */
.menu a::after,
.odds-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0.35;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after,
.odds-toggle:hover::after,
.odds-toggle:focus-visible::after {
  transform: scaleX(1);
}

.menu a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ---------- 내용 (흰 배경) ---------- */
.content {
  min-height: 60vh;
  padding: 40px 16px 64px;
  background: var(--bg);
}

/* 메뉴 세부 페이지는 전부 KBO 다이아고딕 Medium. 앞으로 넣을 제목·굵은 글씨·버튼·입력칸도 같은 글꼴을 따름 */
.content {
  font-family: "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  font-weight: 500;
}

.content :where(h1, h2, h3, h4, h5, h6, b, strong, th, dt) {
  font-weight: inherit;
}

.content :where(button, input, select, textarea) {
  font: inherit;
}

.content section {
  max-width: 1080px;
  margin: 0 auto;
}

/* 책님 탭: 배경 카드 없이 큰 3D 책만. 제목은 책 영역 왼쪽 끝에 맞춤 */
.content .panel-book > h2 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.book-stage {
  position: relative;
  width: min(600px, 100%);
  margin: 0 auto;
  /* 책 크기: 폭 최대 440px(휴대폰은 화면의 70%), 두께는 책 폭의 22% */
  --bw: min(440px, 70vw);
  --bh: calc(var(--bw) * 1.213);
  --bt: calc(var(--bw) * 0.22);
  height: calc(var(--bh) + 120px);
}

/* 3D 양장책: 표지(초상화)·뒷면(문양)·책등·금박 단면. 누르면 표지가 열리고 3.2초 뒤 문구 */
.book3d {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bw);
  height: var(--bh);
  margin: calc(var(--bh) / -2) 0 0 calc(var(--bw) / -2);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 2600px;
}

.book3d::after {
  /* 바닥 그림자 */
  content: "";
  position: absolute;
  left: 4%;
  right: -8%;
  bottom: -9%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 20, 5, 0.45), transparent);
  filter: blur(4px);
  z-index: -1;
}

/* 메뉴로 처음 상태로 되돌릴 때: 덮는 애니메이션 없이 바로 */
.book3d.instant .book-inner,
.book3d.instant .cover,
.book3d.instant .leaf,
.book3d.instant .fortune,
.book3d.instant .gutter {
  transition: none !important;
}

.book3d:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 10px;
  border-radius: 6px;
}

.book-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(-32deg);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.book3d:not(.open):not(.spinning):hover .book-inner {
  transform: rotateX(8deg) rotateY(-40deg);
}

/* 펼치기 전: 6초에 360도 계속 회전(오른쪽으로 도는 방향) */
.book3d.spinning .book-inner {
  animation: book-spin 6s linear infinite;
}

@keyframes book-spin {
  from {
    transform: rotateX(10deg) rotateY(-32deg);
  }
  to {
    transform: rotateX(10deg) rotateY(328deg);
  }
}

/* 펼치면: 정면으로 돌고, 펼친 두 쪽이 가운데 오도록 오른쪽으로 반 권만큼 이동 */
.book3d.open .book-inner {
  transform: translateX(calc(var(--bw) / 2)) rotateX(4deg) rotateY(0deg);
}

.book3d .face {
  position: absolute;
  backface-visibility: hidden;
}

/* 앞표지: 왼쪽(책등) 축으로 열림. 바깥=초상화, 안쪽=면지 */
.book3d .cover {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: translateZ(calc(var(--bt) / 2));
  /* 덮을 때: 넘긴 종이 50장이 먼저 돌아온 뒤 표지가 덮임 */
  transition: transform 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.75s;
}

.book3d.open .cover {
  transform: translateZ(calc(var(--bt) / 2)) rotateY(-178.5deg);
  /* 펼 때: 빨리 열고 0.8초부터 종이를 넘김 */
  transition: transform 1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.05s;
}

.book3d .cover-front,
.book3d .cover-inside {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.book3d .cover-front,
.book3d .back {
  border-radius: 3px 7px 7px 3px;
  background-size: cover;
  background-position: center;
}

.book3d .cover-front {
  background-image: linear-gradient(105deg, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0) 7%, rgba(255, 255, 255, 0.1) 40%, rgba(0, 0, 0, 0) 60%),
    url("/images/book-front.jpg");
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/*
 * 표지 안쪽: 바깥 세 변(위·아래·바깥쪽)만 가죽이 보이고, 책등 쪽(오른쪽 끝)은 종이가 끝까지 이어짐
 * → 펼쳤을 때 가운데에 가죽 띠가 생기지 않음
 */
.book3d .cover-inside {
  transform: rotateY(180deg);
  border-radius: 7px 3px 3px 7px;
  background:
    linear-gradient(270deg, rgba(70, 45, 15, 0.28), rgba(70, 45, 15, 0) 8%),
    linear-gradient(#f3e9d0, #e8d9b4) 100% 50% / 97% 93.6% no-repeat,
    linear-gradient(#d8b46a, #d8b46a) 100% 50% / 98% 94.8% no-repeat,
    #6b2216;
}

/* 오른쪽 책장 아래 가죽(뒤표지 판): 펼쳤을 때 오른쪽도 위·아래·바깥쪽에 가죽이 보여 왼쪽과 대칭 */
.book3d .board {
  inset: 0;
  transform: translateZ(calc(var(--bt) / 2 - 9px));
  border-radius: 3px 7px 7px 3px;
  background: linear-gradient(90deg, #5a1a10, #6b2216 30%, #6b2216);
}

/* 가운데 접힌 곳 그늘: 펼친 뒤 왼쪽·오른쪽 종이가 책등에서 자연스럽게 이어지게 */
.book3d .gutter {
  top: 3.2%;
  bottom: 3.2%;
  left: calc(var(--bw) * -0.07);
  width: calc(var(--bw) * 0.14);
  transform: translateZ(calc(var(--bt) / 2 + 0.5px));
  background: linear-gradient(
    90deg,
    rgba(70, 45, 15, 0) 0%,
    rgba(70, 45, 15, 0.1) 35%,
    rgba(70, 45, 15, 0.32) 50%,
    rgba(70, 45, 15, 0.1) 65%,
    rgba(70, 45, 15, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.book3d.revealed .gutter {
  opacity: 1;
  transition: opacity 0.6s;
}

.book3d .back {
  inset: 0;
  background-image: linear-gradient(255deg, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0) 7%), url("/images/book-back.jpg");
  transform: rotateY(180deg) translateZ(calc(var(--bt) / 2));
  border-radius: 7px 3px 3px 7px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* 첫 장(문구가 나오는 종이) */
.book3d .page {
  top: 3.2%;
  bottom: 3.2%;
  left: 0;
  right: 3%;
  transform: translateZ(calc(var(--bt) / 2 - 8px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  border-radius: 0 5px 5px 0;
  background:
    linear-gradient(90deg, rgba(90, 60, 20, 0.16), rgba(90, 60, 20, 0) 7%),
    radial-gradient(ellipse at 50% 45%, #fffaf0, #f2e7cc 75%, #e7d7b0);
  color: #3b1f12;
  text-align: center;
}

/* 넘어가는 얇은 종이: 조각(strip)을 중첩해 넘길 때 휘어짐 */
.book3d .leaf {
  position: absolute;
  top: 3.2%;
  bottom: 3.2%;
  left: 0;
  right: 3%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: translateZ(calc(var(--bt) / 2 - 0.4px - var(--i) * 0.12px));
  /* 덮을 때: 나중에 넘긴 장부터 빠르게 되돌아옴 */
  transition: transform 0.45s cubic-bezier(0.45, 0.05, 0.35, 1) calc((49 - var(--i)) * 0.006s);
  pointer-events: none;
}

.book3d.open .leaf {
  /* 펼친 뒤 왼쪽 더미: 나중에 넘긴 장이 위(높은 z)에 쌓이고 아주 조금 더 들림(50장이 얇게 겹침) */
  transform: translateZ(calc(var(--bt) / 2 - 0.4px - (49 - var(--i)) * 0.12px)) rotateY(calc(-177.5deg + var(--i) * 0.06deg));
  /* 한 장 0.75초 — site.js의 LEAF_TURN_S와 같게 */
  transition: transform 0.75s cubic-bezier(0.5, 0.05, 0.3, 1) var(--d);
}

.book3d .strip {
  position: absolute;
  top: 0;
  bottom: 0;
  /* 조각끼리 1px 겹쳐 경계선이 보이지 않게(폭은 그대로 → 전체 길이가 늘지 않음) */
  left: calc(100% - 1px);
  width: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  /* 조각 경계가 보이지 않도록 한 가지 종이색 */
  background: #f8f0dd;
}

.book3d .leaf > .strip {
  left: 0;
  width: 12.6%;
}

/*
 * 왼쪽 페이지 그림(엔틱·흐릿한 경기장): 마지막 장의 조각 8개가 그림을 1/8씩 나눠 가짐.
 * 넘어온 종이는 뒷면이 보여 좌우가 뒤집히므로, 그림 파일은 미리 좌우 반전해 둠.
 */
.book3d .leaf.art .strip {
  background: #f8f0dd url("/images/book-left-art.jpg") no-repeat;
  background-size: 800% 100%;
  background-position: calc((var(--k) - 1) * 100% / 7) 0;
}

/* 첫 조각(책등 쪽)에 그늘 */
.book3d .leaf > .strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(90, 60, 20, 0.25), rgba(90, 60, 20, 0));
}

.book3d.open .strip {
  animation: leaf-curl 0.75s cubic-bezier(0.5, 0.05, 0.3, 1) var(--d) both;
}

/* 넘어가는 동안 종이에 살짝 그늘(3D가 평면으로 바뀌지 않도록 filter 대신 덮개 사용) */
.book3d .strip::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 조각마다 단색, 끝쪽(--k 큼)으로 갈수록 아주 조금씩 진해짐 → 줄무늬 없이 자연스러운 그늘 */
  background: rgba(60, 40, 15, calc(0.012 * var(--k)));
  opacity: 0;
  pointer-events: none;
}

.book3d.open .strip::after {
  animation: leaf-shade 0.75s cubic-bezier(0.5, 0.05, 0.3, 1) var(--d) both;
}

@keyframes leaf-shade {
  0%,
  100% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
}

/*
 * 진짜 종이처럼 휘기: 조각 번호(--k)만큼 각도가 커져 끝으로 갈수록 크게 휨.
 * 들어 올릴 때는 끝이 뒤처지며 휘고(+), 넘어갈 무렵엔 반대로 살짝 휘었다가(-) 펴짐.
 */
@keyframes leaf-curl {
  0% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(calc(var(--k) * 1.6deg));
  }
  55% {
    transform: rotateY(calc(var(--k) * 0.9deg));
  }
  80% {
    transform: rotateY(calc(var(--k) * -0.45deg));
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* 종이 위·아래 금선 장식 */
.book3d .page::before,
.book3d .page::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8892f, transparent);
}

.book3d .page::before {
  top: 12%;
}

.book3d .page::after {
  bottom: 12%;
}

.book3d .fortune {
  font-size: calc(var(--bw) * 0.068);
  line-height: 1.55;
  word-break: keep-all;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 0.9s ease;
}

.book3d.revealed .fortune {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* 문구가 나오기 전: 가운데에서 금빛이 깜빡이며 기다림 */
.book3d.open:not(.revealed) .page {
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 180, 106, 0.55), rgba(216, 180, 106, 0) 22%),
    linear-gradient(90deg, rgba(90, 60, 20, 0.22), rgba(90, 60, 20, 0) 9%),
    radial-gradient(ellipse at 50% 45%, #fffaf0, #f2e7cc 75%, #e7d7b0);
  animation: book-glow 1.1s ease-in-out infinite;
}

@keyframes book-glow {
  50% {
    filter: brightness(1.06);
  }
}

/* 책등(왼쪽): 표지와 같은 적갈색 가죽 + 금박 띠 */
.book3d .spine {
  top: 0;
  left: calc(50% - var(--bt) / 2);
  width: var(--bt);
  height: 100%;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08) 45%, rgba(0, 0, 0, 0.35)),
    linear-gradient(#d8b46a, #d8b46a) center 12% / 70% 2px no-repeat,
    linear-gradient(#d8b46a, #d8b46a) center 14% / 70% 1px no-repeat,
    linear-gradient(#d8b46a, #d8b46a) center 86% / 70% 1px no-repeat,
    linear-gradient(#d8b46a, #d8b46a) center 88% / 70% 2px no-repeat,
    #6b2216;
}

/* 책등 제목: 금박 세로쓰기(글자를 위에서 아래로 쌓음) */
.book3d .spine {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book3d .spine-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: calc(var(--bt) * 0.36);
  letter-spacing: calc(var(--bt) * 0.04);
  line-height: 1;
  color: #e6c77a;
  background: linear-gradient(180deg, #f6e3a3, #c9a24b 45%, #f3dc94 70%, #b8892f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
}

/* 종이 단면(오른쪽·위·아래): 금박 마감(고급 양장본) */
.book3d .fore-edge {
  top: 1.5%;
  left: calc(50% - var(--bt) / 2);
  width: var(--bt);
  height: 97%;
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 2px));
  background:
    repeating-linear-gradient(90deg, rgba(110, 80, 20, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #b8892f, #f3dc94 22%, #c99b3e 45%, #f6e3a3 68%, #a8782a);
}

.book3d .top-edge,
.book3d .bottom-edge {
  left: 1%;
  top: calc(50% - var(--bt) / 2);
  width: 97%;
  height: var(--bt);
  background:
    repeating-linear-gradient(0deg, rgba(110, 80, 20, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #b8892f, #f3dc94 25%, #c99b3e 50%, #f6e3a3 75%, #a8782a);
}

.book3d .top-edge {
  transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 2px));
}

.book3d .bottom-edge {
  transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 2px));
}

/* 휴대폰: 펼친 두 쪽이 화면에 들어오게 줄임 */
@media (max-width: 900px) {
  .book3d.open .book-inner {
    transform: translateX(calc(var(--bw) / 2 * 0.66)) scale(0.66) rotateX(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu a:hover .label,
  .menu a:focus-visible .label,
  .odds-toggle:hover .label,
  .odds-toggle:focus-visible .label {
    transform: none;
    animation: none;
  }

  .book3d.spinning .book-inner {
    animation: none;
  }

  .book-inner,
  .book3d .cover,
  .book3d .leaf,
  .book3d .fortune {
    transition: none;
  }

  .book3d.open .strip,
  .book3d.open .strip::after {
    animation: none;
  }
}

/* 맨유·대한민국 탭: 부제·제목의 왼쪽 끝을 포메이션 화면(656px) 왼쪽 끝과 맞춤 */
.content .panel-manutd > .eyebrow,
.content .panel-manutd > h2 {
  max-width: 656px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--accent);
}

.content h2 {
  margin: 0 0 24px;
  font-size: 26px;
}

.frame-wrap {
  display: flex;
  justify-content: center;
}

/* 포메이션 아래 두 팀 로고(원본 크기, 우클릭 저장용) + 회색 팀 이름. 맨유 포메이션 칸은 세로로 쌓음 */
.panel-manutd > .frame-wrap {
  flex-direction: column;
  align-items: center;
}
.team-logos {
  width: 656px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* 넓은 화면 140px, 휴대폰은 화면 폭에 맞춰 줄임(옆으로 넘치지 않게) */
  gap: min(140px, 10vw);
  margin: 22px 0 8px;
}
.team-logos[hidden] {
  display: none;
}
.team-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.team-logo img {
  display: block;
  height: 150px;
  width: auto;
  max-width: 40vw;
  object-fit: contain;
}
.team-logo-name {
  color: #8a8f98;
  font-size: 13px;
}

/* 투명 오버레이는 흰 글자라서 어두운 판 위에 보여줌 (OBS 화면 느낌) */
.overlay-frame {
  position: relative;
  width: 656px;
  height: 816px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--overlay-bg);
}

.overlay-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 656px;
  height: 816px;
  border: 0;
  background: transparent;
  transform-origin: top left;
}

/* 업체별 배당 (메인 사이트 전용, 방송 오버레이에는 없음) */
.odds {
  max-width: 656px;
  margin: 64px auto 0;
}

/* 배당 제목 = 접기/펴기 버튼 */
.odds-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px; /* 글자가 커져도 화살표와 겹치지 않게 */
  margin: 0 0 12px;
  padding: 6px 4px 6px 12px; /* 커진 글자·빛이 왼쪽에서 잘리지 않게 */
  border: 0;
  background: none;
  font-family: "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.odds-toggle .hint {
  white-space: nowrap;
  margin-left: -8px;
  font-size: 12px;
  color: #9a9aa5;
}

.odds-toggle .chev {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.odds-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.odds-body[hidden] {
  display: none;
}

.odds-note {
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
}

.odds-note {
  margin: 6px 0 0;
  text-align: right;
}

.odds-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid #ececf0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.odds-table {
  overflow-x: auto;
  border: 1px solid #ececf0;
  border-radius: 8px;
}

.odds table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.odds th,
.odds td {
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f4;
}

.odds th {
  background: #f7f7fa;
  color: var(--muted);
  font-size: 13px;
}

.odds th:first-child,
.odds td:first-child {
  text-align: left;
}

/* 확률은 크게, 배당은 그 아래 작게 */
.odds .prob {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.odds .odd {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.odds tbody tr:last-child td {
  border-bottom: 0;
}

/* 순위표 및 일정 */
.content .panel-schedule > .eyebrow,
.content .panel-schedule > h2,
.schedule {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  /* 소제목 3개(순위표·라운드 경기 결과·맨유 다음 경기): 붉은 기가 도는 버건디, 굵게 */
  color: #8a1426;
}

.schedule-title span {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* 라운드 경기 결과 */
.round {
  /* 순위표·라운드·다음 경기 구역 사이: 예전 56px 의 2.5배 */
  margin-top: 140px;
}

.round-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.round-hint {
  font-size: 12px;
  color: #9a9aa5;
  white-space: nowrap;
}

/* 좁은 화면: 제목이 길면 화살표는 다음 줄 오른쪽으로 */
.round-head {
  flex-wrap: wrap;
}

.round-nav {
  margin-left: auto;
}

.round-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.round-nav button {
  width: 30px;
  height: 30px;
  border: 1px solid #d9d9e0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
}

.round-nav button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.round-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.round-name {
  min-width: 72px;
  text-align: center;
}

/* 처음 보는 라운드를 불러오는 동안 살짝 흐리게 */
.round.loading .round-list {
  opacity: 0.45;
  transition: opacity 0.15s;
}

.round-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ececf0;
  border-radius: 8px;
}

/* 라운드 경기 결과 뒤 정가운데 프리미어리그 사자(투명도 5%) */
.panel-schedule .round .round-list {
  position: relative;
}

.panel-schedule .round .round-list::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/premier-league-lion.svg") center / auto 60% no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.panel-schedule .round .round-list > li {
  position: relative;
}

.round-list > li {
  border-bottom: 1px solid #f0f0f4;
}

.round-list > li:last-child {
  border-bottom: 0;
}

.round-list .row {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 120px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: inherit;
  text-align: left;
}

/* 누를 수 있는 경기(득점자 펼치기) */
button.row {
  cursor: pointer;
}

button.row:hover {
  background: rgba(122, 31, 43, 0.05);
}

button.row[aria-expanded="true"] {
  background: rgba(122, 31, 43, 0.07);
}

/* 대한민국 최근 5경기: 배당 아래, 줄 앞에 작은 날짜 */
.recent {
  max-width: 656px;
  margin: 48px auto 40px;
}

.round-list.with-date .row,
.round-list.with-date .goals {
  grid-template-columns: 68px 1fr 56px 1fr 72px;
}

/* 라운드 결과: 줄 앞에 날짜·시간 */
.round-list.with-time .row,
.round-list.with-time .goals {
  grid-template-columns: 96px 1fr 64px 1fr 56px;
}

.round-list.with-time .g-none {
  grid-column: 2 / 5;
}

.round-list .date {
  font-size: 11px;
  color: #9a9aa5;
  font-variant-numeric: tabular-nums;
}

.round-list.with-date .g-none {
  grid-column: 2 / 5;
}

/* 득점자: 홈은 점수 왼쪽, 원정은 점수 오른쪽에 맞춰 정렬 */
.round-list .goals {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 120px;
  gap: 10px;
  padding: 2px 16px 14px;
  font-size: 13px;
  color: #4a4a55;
}

.round-list .goals[hidden] {
  display: none;
}

.round-list .goals ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.7;
}

.round-list .g-home {
  text-align: right;
}

.round-list .g-none {
  grid-column: 1 / 4;
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.round-list li.empty {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.round-list .home {
  text-align: right;
}

.round-list .score {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.round-list .st-ns .score {
  font-size: 13px;
  color: var(--muted);
}

.round-list .st {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.round-list .st-live .st {
  color: #c8102e;
}

/* 맨유 경기 강조 */
.round-list > li.us {
  background: rgba(218, 41, 28, 0.08);
}

.round-list li.us .home,
.round-list li.us .away,
.round-list li.us .score {
  color: #b3121f;
}

@media (max-width: 640px) {
  .round-list.with-time .row,
  .round-list.with-time .goals,
  .round-list.with-date .row,
  .round-list.with-date .goals {
    grid-template-columns: 1fr 56px 1fr;
  }

  .round-list .date {
    grid-column: 1 / -1;
    text-align: center;
  }

  .round-list .g-date {
    display: none;
  }

  .round-list .row,
  .round-list .goals {
    grid-template-columns: 1fr 56px 1fr;
  }

  .round-list .st {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* 순위표 아래 여백을 두고 다음 경기 */
.next-title {
  /* 구역 사이: 예전 56px 의 2.5배 */
  margin-top: 140px;
}

.standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* 순위표 뒤 정가운데 프리미어리그 로고(사자 위·글자 아래, 투명도 5%) */
.standings .odds-table {
  position: relative;
}

.standings .odds-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/premier-league-stacked.svg") center / auto 60% no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.standings .odds-table table {
  position: relative;
}

.standings th,
.standings td {
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f4;
}

.standings th {
  background: #f7f7fa;
  color: var(--muted);
  font-size: 13px;
}

.standings tbody tr:last-child td {
  border-bottom: 0;
}

.standings th:nth-child(2),
.standings td:nth-child(2) {
  text-align: left;
  padding-left: 12px;
}

.standings td:first-child,
.standings th:first-child {
  text-align: center;
  width: 44px;
}

.standings tbody tr {
  box-shadow: inset 4px 0 0 transparent;
}

.standings tbody tr.zone-ucl {
  box-shadow: inset 4px 0 0 #1f4fa3;
}

.standings tbody tr.zone-uel {
  box-shadow: inset 4px 0 0 #e8892b;
}

.standings tbody tr.zone-uecl {
  box-shadow: inset 4px 0 0 #2e9a5a;
}

.standings tbody tr.zone-rel {
  box-shadow: inset 4px 0 0 #c8102e;
}

/* 맨유 줄 강조 */
.standings tbody tr.us td {
  background: rgba(218, 41, 28, 0.08);
  color: #b3121f;
}

.standings td:nth-child(8) {
  font-size: 15px;
}

.standings .form span {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 1px;
  border-radius: 50%;
  line-height: 20px;
  font-size: 11px;
  color: #ffffff;
  text-align: center;
}

.standings .form .f-W {
  background: #2e9a5a;
}

.standings .form .f-D {
  background: #9a9aa5;
}

.standings .form .f-L {
  background: #c8102e;
}

.standings-legend {
  display: flex;
  gap: 14px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.standings-legend .lg::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: -1px;
}

.lg-ucl::before {
  background: #1f4fa3;
}

.lg-uel::before {
  background: #e8892b;
}

.lg-rel::before {
  background: #c8102e;
}

.next-fixtures {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ececf0;
  border-radius: 8px;
}

/* 맨유 다음 경기 뒤 정가운데 맨유 엠블럼(투명도 5%) */
.next-fixtures {
  position: relative;
}

.next-fixtures::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/manutd-crest.png") center / auto 70% no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.next-fixtures > li {
  position: relative;
}

.next-fixtures li {
  display: grid;
  grid-template-columns: 140px 110px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f4;
  font-size: 15px;
}

.next-fixtures li:last-child {
  border-bottom: 0;
}

.next-fixtures .when {
  font-variant-numeric: tabular-nums;
}

.next-fixtures .comp,
.next-fixtures .venue {
  font-size: 13px;
  color: var(--muted);
}

.next-fixtures .side {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #ffffff;
}

.next-fixtures .side.home {
  background: #2e7d32;
}

.next-fixtures .side.away {
  background: #1f4fa3;
}

@media (max-width: 640px) {
  .next-fixtures li {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }

  .next-fixtures .match {
    grid-column: 1 / -1;
  }
}

/* OBS 주소 복사 */
.obs-link {
  max-width: 656px;
  margin: 24px auto 0;
}

.obs-label {
  margin: 0 0 8px;
  font-size: 15px;
}

.obs-label span {
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
}

.obs-row {
  display: flex;
  gap: 8px;
}

.obs-url {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d9d9e0;
  border-radius: 8px;
  background: #f7f7fa;
  color: var(--text);
  font-size: 14px;
}

.obs-copy {
  flex: none;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

.obs-copy:hover {
  filter: brightness(1.1);
}

.soon {
  display: inline-block;
  margin: 24px 0 0;
  padding: 14px 22px;
  border: 1px solid rgba(122, 31, 43, 0.35);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 640px) {
  /* 휴대폰: 메뉴 5개가 한 줄에 다 들어가게 */
  .menu {
    --menu-gap: 11px;
    padding: 0 6px;
  }

  .site-nav {
    padding: 0 6px;
  }

  .menu a {
    font-size: 13px;
  }

  /* 배당 제목: 한 줄에 들어가게 조금 작게 */
  .odds-toggle {
    font-size: 15px;
    gap: 12px;
    padding-left: 6px;
  }

  /* 순위표: 승·무·패 칸을 숨기고 나머지를 촘촘하게(순위·팀·경기·득실·승점·최근 5경기) */
  .standings th:nth-child(4),
  .standings td:nth-child(4),
  .standings th:nth-child(5),
  .standings td:nth-child(5),
  .standings th:nth-child(6),
  .standings td:nth-child(6) {
    display: none;
  }

  .standings th,
  .standings td {
    padding: 9px 3px;
    font-size: 13px;
  }

  .standings td:first-child,
  .standings th:first-child {
    width: 28px;
  }

  .standings th:nth-child(2),
  .standings td:nth-child(2) {
    padding-left: 6px;
  }

  .standings .form span {
    width: 15px;
    height: 15px;
    margin: 0;
    line-height: 15px;
    font-size: 9px;
  }
}

/* ---------- 시뮬레이션 ---------- */
.content .panel-sim > .eyebrow,
.content .panel-sim > h2,
.sim {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.sim {
  --home: #da291c;
  --away: #c8102e;
  --sim-line: #e6e6ee;
}

.sim-pick {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.sim-team {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-away {
  align-items: flex-end;
  text-align: right;
}

.sim-side {
  font-size: 12px;
  color: var(--muted);
}

.sim-team select {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid var(--sim-line);
  border-left: 6px solid var(--home);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.sim-away select {
  border-left: 1px solid var(--sim-line);
  border-right: 6px solid var(--away);
  text-align: right;
}

.sim-team select:disabled {
  cursor: default;
  opacity: 0.7;
}

/* 부상·결장 선수(팀 선택 바로 아래) */
.sim-injuries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-top: 10px;
}

.sim-inj-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5b5b66;
}

.sim-inj-away {
  text-align: right;
}

.sim-inj-list li::before {
  content: "✚ ";
  color: #d0021b;
  font-size: 11px;
}

.sim-inj-list .inj-doubt::before {
  content: "? ";
  color: #e08a00;
  font-weight: 900;
}

.sim-inj-list .inj-none::before {
  content: "";
}

.sim-inj-note {
  grid-column: 1 / -1;
  white-space: pre-line;
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.sim-vs {
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 1px;
}

.sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}

.sim-speed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(120, 120, 135, 0.18);
  border-radius: 999px;
  background: rgba(120, 120, 135, 0.12);
}

.sim-speed-label {
  margin-right: 4px;
  font-size: 13px;
  color: var(--muted);
}

.sim-speed button,
.sim-buttons button {
  padding: 7px 12px;
  border: 1px solid var(--sim-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sim-speed button:hover,
.sim-buttons button:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sim-speed button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.sim-buttons {
  display: flex;
  gap: 8px;
}

.sim-buttons .sim-start {
  padding: 8px 20px;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.sim-buttons .sim-start:not(:disabled):hover {
  color: #ffffff;
  filter: brightness(1.1);
}

.sim-buttons button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* 점수판 */
.sim-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px 14px;
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
  background: #14161c;
  color: #ffffff;
}

.sim-board-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 18px;
}

.sim-board-away {
  justify-content: flex-end;
}

.sim-board-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sim-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: var(--home);
}

.sim-board-away .sim-dot {
  background: var(--away);
}

.sim-board-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sim-score {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.sim-clock {
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.sim-scorers {
  grid-row: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.sim-scorers-home {
  grid-column: 1;
}

.sim-scorers-away {
  grid-column: 3;
  text-align: right;
}

.sim-scorers li::before {
  content: "⚽ ";
  font-size: 10px;
}

.sim-pitch {
  position: relative;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: #2f8a4a;
  line-height: 0;
}

/* 경기장을 눌러 시작 → 멈춤 → 계속 */
.sim-pitch {
  cursor: pointer;
}

.sim-paused .sim-pitch canvas {
  filter: brightness(0.8);
}

.sim-pitch canvas {
  display: block;
  width: 100%;
  aspect-ratio: 105 / 74.8; /* 경기장 68m + 위·아래 광고판 3.4m씩 */
}

.sim-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 10px 26px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.82);
  color: #ffffff;
  font-size: 22px;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: sim-pop 0.35s ease-out;
}

.sim-banner[hidden] {
  display: none;
}

@keyframes sim-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

.sim-title {
  margin: 28px 0 10px;
  font-size: 18px;
}

/* 경기장·능력치 안내 문구와 실시간 중계 사이 넓은 간격 */
.sim-feed-box {
  margin-top: 64px;
}

.sim-feed-box .sim-title {
  margin-top: 0;
}

.sim-title span {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* 실시간 중계: 최근 12줄만, 마우스를 올리면 스크롤로 지난 중계 */
.sim-feed {
  max-height: 336px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sim-line);
  border-radius: 10px;
  list-style: none;
  overscroll-behavior: contain;
}

.sim-feed:hover,
.sim-feed:focus-within {
  overflow-y: auto;
}

@media (hover: none) {
  .sim-feed {
    overflow-y: auto;
  }
}

.sim-feed li {
  display: flex;
  gap: 10px;
  padding: 5px 12px;
  border-left: 4px solid var(--team, transparent);
  border-bottom: 1px solid #f1f1f5;
  font-size: 14px;
  line-height: 1.3;
}

.sim-feed li:first-child {
  animation: sim-in 0.3s ease-out;
}

@keyframes sim-in {
  from {
    background: var(--accent-soft);
  }
}

.feed-min {
  flex: none;
  width: 44px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sim-feed .feed-goal {
  background: #fff6d6;
  font-weight: 700;
}

.sim-feed .feed-red .feed-text {
  color: #c8102e;
}

.sim-feed .feed-whistle {
  background: #f4f4f8;
}

.sim-feed .feed-sub .feed-text {
  color: #1f8a43;
}

/* 경기 기록 */
.sim-stats-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 14px;
}

.sim-stats-head span:first-child {
  color: var(--home);
}

.sim-stats-head span:last-child {
  color: var(--away);
}

.sim-stat {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  padding: 6px 0 8px;
  border-bottom: 1px solid #f1f1f5;
  font-size: 14px;
}

.sim-stat-v {
  font-variant-numeric: tabular-nums;
}

.sim-stat-v:nth-child(3) {
  text-align: right;
}

.sim-stat-v.lead {
  font-weight: 900;
}

.sim-stat-label {
  text-align: center;
  color: var(--muted);
}

.sim-stat-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 3px;
  height: 5px;
  margin-top: 5px;
}

.sim-stat-bar i {
  display: block;
  min-width: 2px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: width 0.3s;
}

.sim-note {
  margin: 10px 0 0;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .sim-pick {
    gap: 8px;
  }

  .sim-team select {
    padding: 8px 4px 8px 8px;
    font-size: 12.5px;
    letter-spacing: -0.3px;
  }

  .sim-away select {
    padding: 8px 8px 8px 4px;
  }

  .sim-vs {
    font-size: 14px;
  }

  .sim-injuries {
    gap: 4px 10px;
  }

  .sim-inj-list {
    font-size: 11.5px;
  }

  .sim-speed button,
  .sim-buttons button {
    padding: 6px 9px;
    font-size: 13px;
  }

  .sim-speed {
    padding: 6px 8px;
    border-radius: 14px;
  }

  .sim-speed-label {
    width: 100%;
    padding-left: 4px;
  }

  .sim-board {
    padding: 10px;
    gap: 2px 8px;
  }

  .sim-board-team {
    font-size: 14px;
  }

  /* 긴 팀 이름(맨체스터 유나이티드 등)은 잘리지 않고 두 줄로 */
  .sim-board-name {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.25;
  }

  .sim-board-away .sim-board-name {
    text-align: right;
  }

  .sim-score {
    font-size: 22px;
  }

  .sim-banner {
    font-size: 16px;
    padding: 6px 16px;
  }

  .sim-feed li {
    font-size: 13px;
    gap: 6px;
    padding: 4px 8px;
  }

  .feed-min {
    width: 38px;
  }

  .sim-stat {
    grid-template-columns: 54px 1fr 54px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-banner,
  .sim-feed li:first-child {
    animation: none;
  }
}

/* ---------- 맨유 메뉴: 다음 경기 시뮬레이션 (배당 아래) ---------- */
.sim.sim-match {
  max-width: 656px;
  margin: 64px auto 0;
}

.sim-match-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.sim-match-title span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.sim-match-status {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(120, 120, 135, 0.1);
  font-size: 13px;
  color: #4a4a55;
}

.sim-match.sim-ready .sim-match-status {
  background: rgba(31, 138, 67, 0.1);
  color: #1f6b3a;
}

/* 명단 발표 전: 경기장은 흐리게, 누를 수 없음 */
.sim-locked .sim-pitch {
  cursor: default;
}

.sim-locked .sim-pitch canvas {
  filter: grayscale(0.6) brightness(0.85);
}

/* 실시간 중계 6줄(정확한 높이는 화면에서 맞춤) */
.sim-match .sim-feed {
  max-height: 168px;
}

.sim-match .sim-feed-box {
  margin-top: 40px;
}

/* 승부예측 */
.sim-predict {
  margin-top: 8px;
}

.sim-predict-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-predict-buttons button {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sim-predict-buttons button:not(:disabled):hover {
  background: var(--accent);
  color: #ffffff;
}

.sim-predict-buttons button:disabled {
  border-color: var(--sim-line);
  color: #a0a0aa;
  cursor: default;
}

.sim-predict-progress {
  position: relative;
  height: 22px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(120, 120, 135, 0.12);
}

.sim-predict-progress[hidden] {
  display: none;
}

.sim-predict-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  opacity: 0.35;
  transition: width 0.15s;
}

.sim-predict-progress span {
  position: relative;
  display: block;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.sim-predict-result:not(:empty) {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--sim-line);
  border-radius: 10px;
}

.pred-bar {
  display: flex;
  height: 26px;
  overflow: hidden;
  border-radius: 6px;
}

.pred-bar i {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2px;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
}

.pred-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 12px;
  font-size: 13px;
}

.pred-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
}

.pred-list dt {
  color: var(--muted);
}

.pred-list dd {
  margin: 0;
}

.pred-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .sim-match-title {
    font-size: 17px;
  }

  .pred-legend {
    font-size: 12px;
  }

  .pred-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .pred-list dd {
    margin-bottom: 6px;
  }
}

/* 맨유 메뉴: 포메이션 / 배당 / 경기 시뮬레이션 / OBS 주소를 넓은 간격 + 회색 점선으로 구분 */
.panel-manutd > .odds,
.panel-manutd > .winprob,
.panel-manutd > .sim-match,
.panel-manutd > .obs-link {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 2px dashed #c9ccd3;
}

@media (max-width: 640px) {
  .panel-manutd > .odds,
  .panel-manutd > .winprob,
  .panel-manutd > .sim-match,
  .panel-manutd > .obs-link {
    margin-top: 36px;
    padding-top: 36px;
  }
}

/* 승부예측: 스코어 칸 */
.pred-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pred-chips li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--sim-line);
  border-radius: 8px;
  background: #fafafc;
}

.pred-chips b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pred-who {
  font-size: 11.5px;
  color: var(--muted);
}

.pred-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* 실시간 중계(왼쪽) + 경기 기록(오른쪽) 나란히, 같은 높이 — 높이는 경기 기록에 맞추고 중계는 그 안에서 스크롤 */
.sim-live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}

.sim-live > .sim-feed-box,
.sim-live > .sim-stats-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
}

.sim-live .sim-title {
  margin-top: 0;
}

/* 넓은 화면: 중계 목록은 칸 높이를 늘리지 않음(경기 기록 높이를 따라가고 그 안에서 스크롤) */
@media (min-width: 641px) {
  .sim-live .sim-feed-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 160px;
  }

  .sim-live .sim-feed {
    position: absolute;
    inset: 0;
    max-height: none !important;
  }
}

.sim.sim-match .sim-live .sim-feed-box {
  margin-top: 0;
}

.sim-live .sim-feed li {
  font-size: 13px;
}

@media (max-width: 640px) {
  /* 휴대폰: 위아래로 쌓고 중계는 최근 몇 줄만(12줄 / 맨유 메뉴 6줄) */
  .sim-live {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

/* 시뮬레이션 메뉴: 경기 기록 14개 항목을 촘촘하게(중계 칸도 같은 높이로 줄어듦) */
.sim[data-sim="tab"] .sim-live .sim-stat {
  padding: 3px 0 5px;
  font-size: 13px;
}

.sim[data-sim="tab"] .sim-live .sim-stat-bar {
  height: 4px;
  margin-top: 3px;
}

.sim[data-sim="tab"] .sim-live .sim-stats-head {
  margin-bottom: 2px;
}

/* 시뮬레이션 메뉴: 경기 화면 / 실시간 중계·경기 기록 / 승부예측을 넓은 간격 + 회색 점선으로 구분(맨유 메뉴 구역 구분과 같은 모양) */
.sim[data-sim="tab"] > .sim-live,
.sim[data-sim="tab"] > .sim-predict {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px dashed #c9ccd3;
}

.sim[data-sim="tab"] > .sim-predict > .sim-title {
  margin-top: 0;
}

@media (max-width: 640px) {
  .sim[data-sim="tab"] > .sim-live,
  .sim[data-sim="tab"] > .sim-predict {
    margin-top: 32px;
    padding-top: 32px;
  }
}

/* ---------- 맨유 메뉴: 넓은 화면 배치(휴대폰·좁은 화면은 그대로 일렬) ----------
   위: 포메이션(왼쪽) | 배당 + OBS 주소(오른쪽)  —  실제 경기 관련
   아래: 경기 시뮬레이션(넓게) */
@media (min-width: 1100px) {
  .content .panel-manutd {
    display: grid;
    grid-template-columns: 656px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto;
    grid-template-areas:
      "eyebrow eyebrow"
      "title title"
      "frame odds"
      "frame obs"
      "wp wp"
      "sim sim";
    column-gap: 40px;
    align-items: start;
  }

  .content .panel-manutd > .eyebrow {
    grid-area: eyebrow;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .content .panel-manutd > h2 {
    grid-area: title;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .panel-manutd > .frame-wrap {
    grid-area: frame;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* 오른쪽 칸: 배당(위) + OBS 주소(아래), 칸 안에서만 점선 구분 */
  .panel-manutd > .odds {
    grid-area: odds;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }

  .panel-manutd > .obs-link {
    grid-area: obs;
    width: 100%;
    max-width: none;
    margin: 32px 0 0;
    padding-top: 32px;
  }

  /* 아래: 실시간 승리확률, 경기 시뮬레이션을 넓게 */
  .panel-manutd > .winprob {
    grid-area: wp;
    width: 100%;
    max-width: none;
    margin: 56px 0 0;
  }

  .panel-manutd > .sim.sim-match {
    grid-area: sim;
    width: 100%;
    max-width: none;
    margin: 56px 0 0;
  }
}

/* ---------- 맨유 메뉴: 실시간 승리확률 그래프 ---------- */
.winprob {
  max-width: 656px;
  margin: 64px auto 0;
}

.winprob-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.winprob-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.winprob-status:empty,
.winprob-chart:empty {
  display: none;
}

.winprob-chart {
  position: relative;
  touch-action: pan-y;
}

.wp-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wp-zero {
  stroke: #b8bcc6;
  stroke-width: 1.5;
}

.wp-q {
  stroke: #c9ccd3;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.wp-edge {
  stroke: #e3e5ea;
  stroke-width: 1;
}

.wp-ht {
  stroke: #c9ccd3;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.wp-area {
  opacity: 0.18;
}

.wp-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.wp-tick {
  font: 600 11px "Noto Sans KR", sans-serif;
  fill: var(--muted);
}

.wp-hov,
.wp-tip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

.winprob-chart.wp-on .wp-hov,
.winprob-chart.wp-on .wp-tip {
  opacity: 1;
}

.wp-side {
  font: 700 12px "Noto Sans KR", sans-serif;
}

.wp-time {
  font: 500 11px "Noto Sans KR", sans-serif;
  fill: var(--muted);
}

.wp-guide {
  stroke: var(--muted);
  stroke-width: 1;
}

.wp-dot {
  stroke: #ffffff;
  stroke-width: 2.5;
}

.wp-tip {
  position: absolute;
  top: 0;
  width: 270px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e5ec;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  font-size: 12.5px;
  line-height: 1.45;
}

.wp-tip-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 700;
}

.wp-tip-scale {
  margin-bottom: 4px;
  font-weight: 700;
}

.wp-tip-bar {
  display: flex;
  height: 8px;
  margin: 2px 0 4px;
  border-radius: 4px;
  overflow: hidden;
}

.wp-tip-bar i {
  display: block;
}

.wp-tip-pcts {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wp-tip-delta {
  margin: 6px 0 4px;
  font-weight: 700;
  color: var(--muted);
}

.wp-tip ul {
  margin: 0;
  padding-left: 16px;
}

@media (max-width: 640px) {
  .wp-tip {
    width: 220px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-hov,
  .wp-tip {
    transition: none;
  }
}

/* ---------- 시뮬레이션: 경기장(오른쪽 승리확률은 2026-11-27 삭제) ---------- */
.sim-stage {
  display: block;
}

.wp-now {
  font: 900 15px "Noto Sans KR", sans-serif;
}

.wp-goal {
  fill: #ffffff;
  stroke: #111114;
  stroke-width: 1.5;
}

.wp-red {
  fill: #e53935;
  stroke: #111114;
  stroke-width: 1;
}


/* ---------- 상단 이미지 오른쪽 아래: 건의·오류 문의(글자만, 누르면 그 자리에 작성 칸) ---------- */
.hero-ask {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 12px;
  z-index: 2;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font: 500 12px "Noto Sans KR", sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.hero-ask:hover,
.hero-ask:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-ask:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 휴대폰: 'LIVE 포메이션' 글자와 겹치지 않게 맨 아래로 */
@media (max-width: 640px) {
  .hero-ask {
    bottom: 3px;
    padding: 2px;
    font-size: 11px;
  }
}

/* 글자 바로 위에 뜨는 작성 칸(위치는 site.js 가 정함) */
.ask {
  position: absolute;
  inset: auto;
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  border: 1px solid #e2e4ea;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  color: var(--text);
  background: #ffffff;
}

.ask[open] {
  animation: ask-in 0.14s ease-out;
}

@keyframes ask-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask[open] {
    animation: none;
  }
}

.ask-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 400 24px/1 "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.ask-x:hover,
.ask-x:focus-visible {
  background: #f0f1f4;
  color: var(--text);
}

.ask-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
}

.ask-form h2 {
  margin: 0;
  padding-right: 36px;
  font-size: 17px;
}

.ask-help {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.ask-form label {
  font-size: 13px;
  font-weight: 700;
}

.ask-form input,
.ask-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d5d8df;
  border-radius: 8px;
  font: 400 14px "Noto Sans KR", sans-serif;
  color: var(--text);
  background: #ffffff;
  resize: vertical;
}

.ask-form input:focus,
.ask-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.ask-count {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* 사람에게는 안 보이는 칸(자동 프로그램 걸러내기) */
.ask-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ask-status {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
}

.ask-status.ok {
  color: #1b8a4b;
}

.ask-status.err {
  color: #d32f2f;
}

.ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ask-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  font: 700 14px "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.ask-send {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.ask-send:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- 맨유 메뉴: 이전 경기 기록(배당 위 글자 → 팝업) ---------- */
/* 제목 '맨체스터 유나이티드' 같은 줄 */
.hist-open {
  display: inline-block;
  margin-left: 52px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 700 22px "Noto Sans KR", sans-serif;
  vertical-align: 2px;
  cursor: pointer;
}

/* 오늘의 선수(제목 바로 오른쪽): 버건디 알약 버튼 + 금테 + 천천히 지나가는 빛 + TODAY 꼬리표 */
.hist-open.today-open {
  position: relative;
  padding: 9px 22px 10px;
  border: 1.5px solid #e2b75a;
  border-radius: 999px;
  color: #fff6e0;
  background: linear-gradient(180deg, #9a2535, #6e1422);
  box-shadow: 0 6px 16px rgba(122, 31, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  vertical-align: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* 제목 아래 한 줄: 오늘의 선수는 포메이션 화면 왼쪽 끝에서 시작, 이전 경기 기록은 글자 끝이 포메이션 화면 오른쪽 끝(화면 폭 656px, 폰은 화면 폭 그대로) */
.content .panel-manutd > h2:has(> .hist-open) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 656px;
  row-gap: 14px;
}

/* 제목 다음 줄바꿈 */
.content .panel-manutd > h2:has(> .hist-open)::after {
  content: "";
  order: 1;
  flex-basis: 100%;
  height: 0;
}

.content .panel-manutd > h2 > .hist-open,
.content .panel-manutd > h2 > .hist-open.today-open,
.content .panel-manutd > h2 > .hist-open.today-open + .hist-open {
  order: 2;
  margin-left: 0;
  vertical-align: 0;
}

.content .panel-manutd > h2 > .hist-open.today-open + .hist-open {
  margin-left: auto;
}

.hist-open.today-open::after {
  content: none;
}

/* 제목 '맨체스터 유나이티드': 누르면 아래에 라인업 API 최근 요청 시각(흐린 회색) */
.team-title {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.team-title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.lineup-calls {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  order: 1;
  flex-basis: 100%;
  margin-top: -8px;
  color: #9a948e;
  opacity: 0.8;
  font: 400 13px "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.lineup-calls[hidden] {
  display: none;
}

.lineup-calls .lc-label {
  font-weight: 500;
}

.hist-open.today-open + .hist-open {
  margin-left: 44px;
}

.today-open .glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.today-open .glint::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.55), transparent);
  animation: today-glint 3.6s ease-in-out infinite;
}

@keyframes today-glint {
  0% {
    left: -60%;
  }
  55%,
  100% {
    left: 130%;
  }
}

.today-open .tag {
  position: absolute;
  top: -13px;
  right: -26px;
  padding: 2px 7px;
  border-radius: 6px;
  font: 700 11px "KBO Dia Gothic", sans-serif;
  letter-spacing: 0.08em;
  color: #fff;
  background: #d62839;
  box-shadow: 0 2px 6px rgba(214, 40, 57, 0.4);
  animation: today-bob 1.6s ease-in-out infinite;
}

@keyframes today-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

.hist-open.today-open:hover,
.hist-open.today-open:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(122, 31, 43, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .today-open .glint::before,
  .today-open .tag {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hist-open {
    margin-left: 10px;
    font-size: 16px;
    vertical-align: 2px;
  }

  .hist-open.today-open {
    margin-left: 12px;
    padding: 6px 14px 7px;
  }

  .hist-open.today-open + .hist-open {
    margin-left: 26px;
  }

  .today-open .tag {
    top: -9px;
    right: -14px;
    font-size: 10px;
  }
}

.hist-open::after {
  content: " ›";
}

.hist-open:hover,
.hist-open:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hist {
  width: min(1180px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color: var(--text);
  background: #ffffff;
  overflow: hidden;
}

.hist::backdrop {
  background: rgba(10, 12, 18, 0.55);
}

.hist-box {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

.hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px 20px;
}

.hist-head h2 {
  margin: 0;
  font-size: 18px;
}

.hist-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 400 26px/1 "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.hist-x:hover,
.hist-x:focus-visible {
  background: #f0f1f4;
  color: var(--text);
}

/* 창이 열릴 때 X 에 자동으로 가는 초점은 굵은 테두리 대신 옅은 배경으로 */
.hist-x:focus-visible {
  outline: 2px solid #c9ccd3;
  outline-offset: 0;
}

.hist-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 20px 10px;
  border-bottom: 1px solid #eceef2;
}

.hist-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #d5d8df;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font: 700 22px/1 "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.hist-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.hist-round {
  min-width: 96px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.hist-body {
  min-height: 0;
  padding: 12px 20px 18px;
  overflow-y: auto;
}

/* 넓은 화면: 홈 팀 평점 | 경기 기록 | 원정 팀 평점 (위 점수판과 같은 좌우) */
.hist-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.hist-main h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.hist-team small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.hist-stats > h3 {
  text-align: center;
}

.hist-empty {
  margin: 24px 0;
  color: var(--muted);
  text-align: center;
}

.hist-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hist-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hist-side.home {
  text-align: right;
}

.hist-club {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.hist-num-score {
  padding: 0 6px;
  font-size: 30px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hist-goals {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.hist-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed #c9ccd3;
}

.hist-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.hist-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hist-col {
  min-width: 0;
}

.hist-team {
  margin: 0 0 6px;
  font-size: 14px;
}

.hist-players {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hist-players li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 38px;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f1f4;
  font-size: 13px;
}

.hist-players li.sub {
  color: #4b4f5c;
}

.hist-num {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hist-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hist-tags {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
}

.hist-assist {
  color: #2e7d32;
  font-weight: 700;
}

.hist-yc,
.hist-rc {
  display: inline-block;
  width: 8px;
  height: 11px;
  border-radius: 1px;
  background: #f5c542;
}

.hist-rc {
  background: #e53935;
}

.hist-in {
  color: #1b8a4b;
}

.hist-out {
  color: #c62828;
}

.hist-rating {
  padding: 2px 0;
  border-radius: 6px;
  background: #eceef2;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hist-rating.high {
  background: #3ddc84;
  color: #08331b;
}

.hist-rating.mid {
  background: #f5c542;
  color: #3a2c00;
}

.hist-rating.low {
  background: #ff8a3d;
  color: #3a1600;
}

.hist-stat-teams {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
}

.hist-stat {
  margin-bottom: 9px;
}

.hist-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hist-stat-label {
  color: var(--muted);
  font-weight: 500;
}

.hist-bar {
  height: 6px;
  margin-top: 3px;
  border-radius: 3px;
  overflow: hidden;
}

.hist-bar i {
  display: block;
  height: 100%;
}

/* 태블릿: 두 팀 평점 나란히, 경기 기록은 아래 */
@media (max-width: 759px) {
  .hist-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  .hist-stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .hist-main {
    grid-template-columns: 1fr;
  }

  .hist-stats {
    grid-row: auto;
  }

  .hist-body {
    padding: 12px 14px 20px;
  }

  .hist-num-score {
    font-size: 24px;
  }
}

/* 승리확률 제목 옆 "(클로드 AI 예측)" */
.wp-by {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 맨유 메뉴 왼쪽 바로가기(내용 폭은 그대로, 왼쪽 빈 곳에만. 좁은 화면·휴대폰은 숨김) ---------- */
.jump {
  display: none;
}

.panel-manutd .frame-wrap,
.panel-manutd .winprob,
.panel-manutd .sim-match,
.panel-manutd .sim-predict,
.panel-schedule .schedule,
.panel-schedule .round,
.panel-schedule .next-title {
  scroll-margin-top: 24px;
}

@media (min-width: 1280px) {
  .content .panel-manutd,
  .content .panel-schedule {
    position: relative;
  }

  .jump {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    /* 내용과의 간격 56px(여백 좁은 화면은 28px까지 줄임) */
    --jump-gap: clamp(28px, calc((var(--vw100, 100vw) - 1400px) / 4 + 28px), 56px);
    /* 왼쪽 색 공간(화면 왼쪽 끝~색 경계 = 화면 가운데 - --band-half)의 가로 정가운데 */
    left: calc(100% / 2 - (var(--vw100, 100vw) - var(--sbw, 0px)) / 4 - var(--band-half, 568px) / 2);
    transform: translateX(-50%);
    width: max-content;
    /* 글자 19px(여백 넓은 화면), 왼쪽 여백이 좁으면 그만큼 작게(최소 14px) */
    font-size: clamp(14px, calc(((var(--vw100, 100vw) - 1080px) / 2 - var(--jump-gap) - 36px) / 7.8), 19px);
  }

  /* 화면 가운데보다 살짝 위(메뉴 높이 약 9em의 절반만큼 올림) */
  /* 메뉴 가운데가 화면 아래에서 3/4 높이(위에서 25%). 그 아래쪽은 BBC 맨유 뉴스 목록 자리 */
  .jump-inner {
    position: sticky;
    top: calc(var(--vh100, 100vh) / 4 - 4.5em);
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    border-left: 3px solid #e6e8ec;
  }

  .jump button {
    --jc: #9a9fa8;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-left: -3px;
    padding: 0.57em 0 0.57em 0.6em;
    border: 0;
    border-left: 3px solid transparent;
    background: none;
    color: var(--jc);
    font-size: inherit;
    line-height: 1.25;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
    transition:
      color 0.15s,
      border-color 0.15s;
  }

  .jump button:hover,
  .jump button:focus-visible {
    --jc: #5f6470;
  }

  .jump button:focus-visible {
    outline: 2px solid #c9ccd3;
    outline-offset: 2px;
    border-radius: 4px;
  }

  .jump button.on {
    --jc: #4b4f5c;
    border-left-color: #6b7080;
  }

  /* 누르면: 투명한 보석 광택이 글자 왼쪽 → 오른쪽으로 지나가고 작은 별이 반짝(그 메뉴 칸 안에서만) */
  .jump button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      100deg,
      transparent 38%,
      rgba(190, 210, 255, 0.1) 46%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 205, 245, 0.1) 54%,
      transparent 62%
    );
    transform: translateX(-100%);
    pointer-events: none;
  }

  /* 글자 위: 얇은 무지갯빛 하이라이트(하늘 → 흰 → 분홍) */
  .jump button.shine {
    background-image: linear-gradient(
      100deg,
      var(--jc) 40%,
      color-mix(in srgb, var(--jc) 45%, #cfe2ff) 46%,
      #f4f9ff 49%,
      #ffffff 50%,
      #fff2fc 51%,
      color-mix(in srgb, var(--jc) 45%, #f6d2ff) 54%,
      var(--jc) 60%
    );
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: jump-shine-text 0.85s cubic-bezier(0.45, 0, 0.25, 1);
  }

  .jump button.shine::before {
    animation: jump-shine-band 0.85s cubic-bezier(0.45, 0, 0.25, 1);
  }
}

/* ---------- 보석 반짝임(맨유 바로가기 · 상단 메뉴 공통): 작은 별 + 광택 움직임 ---------- */
.spark {
  position: absolute;
  z-index: 1;
  width: 0.62em;
  height: 0.62em;
  margin: -0.31em 0 0 -0.31em;
  pointer-events: none;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  animation: jump-spark 0.6s ease-out both;
}

.spark::before {
  content: "";
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 215, 255, 0.55), rgba(240, 210, 255, 0.18) 45%, transparent 70%);
}

.spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 15%, #c4d8ff 50%, #efc9ff 85%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 1.5px rgba(110, 130, 210, 0.85));
}

@keyframes jump-shine-text {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

@keyframes jump-shine-band {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes jump-spark {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  40% {
    opacity: 1;
    transform: scale(1.15) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: scale(0.2) rotate(90deg);
  }
}

/* 상단 메뉴 5개: 누르면 같은 보석 반짝임. 반짝임은 각 메뉴 글자 둘레의 보이지 않는 틀(.gem) 안에서만 */
.menu .gem {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -12px;
  right: -12px;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
}

.menu .gem::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(190, 210, 255, 0.12) 46%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 205, 245, 0.12) 54%,
    transparent 62%
  );
  transform: translateX(-100%);
}

.menu .gem.shine::before {
  animation: jump-shine-band 0.85s cubic-bezier(0.45, 0, 0.25, 1);
}

/* 글자 위 무지갯빛 하이라이트: 같은 글자를 겹쳐 그 위에서만 빛이 지나감(마우스 올림 효과는 그대로) */
.menu .label {
  position: relative;
}

.menu .label::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  white-space: pre-line;
  color: transparent;
  background-image: linear-gradient(
    100deg,
    transparent 40%,
    rgba(207, 226, 255, 0.85) 46%,
    #ffffff 50%,
    rgba(246, 210, 255, 0.85) 54%,
    transparent 60%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  pointer-events: none;
}

.menu .label.shine::after {
  animation: jump-shine-text 0.85s cubic-bezier(0.45, 0, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .spark {
    display: none;
  }

  .jump button.shine,
  .jump button.shine::before,
  .menu .gem.shine::before,
  .menu .label.shine::after {
    animation: none;
  }

  .jump button.shine {
    background: none;
    color: var(--jc);
  }
}

/* ================= 아이보리 매거진 테마(색·선·카드만, 글꼴은 그대로) ================= */

/* 상단 그림 아래가 크림 바탕으로 자연스럽게 이어짐 */
.hero::after {
  /* 더 길게(48%) + 처음엔 아주 옅게 시작해 점점 짙어지는 곡선 → 경계선 없이 은은하게 크림 바탕으로 이어짐 */
  height: 48%;
  background: linear-gradient(
    180deg,
    rgba(247, 243, 236, 0) 0%,
    rgba(247, 243, 236, 0.013) 8%,
    rgba(247, 243, 236, 0.049) 16%,
    rgba(247, 243, 236, 0.104) 24%,
    rgba(247, 243, 236, 0.175) 32%,
    rgba(247, 243, 236, 0.259) 40%,
    rgba(247, 243, 236, 0.352) 48%,
    rgba(247, 243, 236, 0.45) 56%,
    rgba(247, 243, 236, 0.55) 63%,
    rgba(247, 243, 236, 0.648) 70%,
    rgba(247, 243, 236, 0.741) 77%,
    rgba(247, 243, 236, 0.825) 83%,
    rgba(247, 243, 236, 0.896) 89%,
    rgba(247, 243, 236, 0.951) 94%,
    rgba(247, 243, 236, 0.987) 98%,
    var(--bg) 100%
  );
}

/* 메뉴바: 아래 가는 검정 선(위 선은 없음) */
.site-nav {
  border-top: 0;
  border-bottom: 1px solid var(--text);
}

.menu a {
  color: #5a544c;
}

.menu a + a::before {
  background: var(--line);
}

/* 작은 안내 문구: 버건디, 자간 넓게 */
.content .eyebrow {
  letter-spacing: 0.14em;
}

/* 맨유·대한민국 메뉴: 점선 구분 → 종이 카드(얇은 선 + 아주 옅은 그림자) */
.panel-manutd > .odds,
.panel-manutd > .winprob,
.panel-manutd > .sim-match,
.panel-manutd > .obs-link,
.panel-manutd > .recent {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow:
    0 1px 0 var(--line),
    0 14px 30px rgba(60, 40, 20, 0.06);
}

.panel-manutd > .frame-wrap .overlay-frame {
  border-radius: 4px;
  box-shadow:
    0 0 0 1px var(--line),
    0 18px 40px rgba(60, 40, 20, 0.12);
}

/* 넓은 화면: 오른쪽 배당·OBS 카드 사이 간격 */
@media (min-width: 1100px) {
  .panel-manutd > .obs-link {
    margin-top: 24px;
    padding-top: 26px;
  }
}

@media (max-width: 640px) {
  .panel-manutd > .odds,
  .panel-manutd > .winprob,
  .panel-manutd > .sim-match,
  .panel-manutd > .obs-link,
  .panel-manutd > .recent {
    padding: 20px 16px;
  }
}

/* 시뮬레이션 안내 띠: 옅은 베이지 */
.sim-match-status {
  background: #f3ede3;
}

/* 팝업(이전 경기 기록·건의 문의): 종이색 */
.hist,
.ask {
  background: var(--paper);
}

/* 왼쪽 바로가기: 세로줄은 베이지, 선택은 버건디 */
@media (min-width: 1280px) {
  .jump-inner {
    border-left-color: var(--line);
  }

  .jump button {
    --jc: #9a9185;
  }

  .jump button:hover,
  .jump button:focus-visible {
    --jc: #5a544c;
  }

  .jump button.on {
    --jc: var(--accent);
    border-left-color: var(--accent);
  }
}

/* 상단 그림 오른쪽 아래 '건의·오류 문의': 크림색으로 밝아진 자리라 짙은 글자 */
.hero-ask {
  color: #5a544c;
  text-shadow: 0 0 6px rgba(247, 243, 236, 0.9);
}

.hero-ask:hover,
.hero-ask:focus-visible {
  color: var(--accent);
}

.hero-ask:focus-visible {
  outline-color: var(--accent);
}

/* 처음 화면(메뉴를 고르기 전): 빈 칸 가운데 맨유 엠블럼, 40% 반투명. 메뉴를 고르면 숨김 */
.home-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 처음 화면에서 스크롤 없이 보이는 빈 칸(화면 높이 - 상단 그림 - 메뉴바 - 여백)의 가운데 */
  min-height: max(190px, calc(100vh - clamp(280px, 40vw, 453px) - 56px - 104px));
  min-height: max(190px, calc(100svh - clamp(280px, 40vw, 453px) - 56px - 104px));
  pointer-events: none;
  user-select: none;
}

.home-crest img {
  width: min(220px, 50vw);
  height: auto;
  opacity: 0.4;
}

/* 엠블럼(가운데 그대로) 양옆: 왼쪽 2012-13 리그 우승, 오른쪽 2008 챔스 우승 사진.
   높이는 엠블럼과 같게, 뾰족한 폭발 모양(왼쪽은 좌우 대칭), 테두리는 바깥으로 점점 흐려짐, 70% 농도 */
.home-crest-inner {
  position: relative;
  display: flex;
}

.home-crest .home-burst {
  position: absolute;
  top: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.7;
}

.home-crest .home-burst.right {
  left: calc(100% + 48px);
  -webkit-mask: url("/images/burst-mask.svg") center / 100% 100% no-repeat;
  mask: url("/images/burst-mask.svg") center / 100% 100% no-repeat;
}

.home-crest .home-burst.left {
  right: calc(100% + 48px);
  -webkit-mask: url("/images/burst-mask-left.svg") center / 100% 100% no-repeat;
  mask: url("/images/burst-mask-left.svg") center / 100% 100% no-repeat;
}

/* 사진 아래 영어 문구(사진 폭 = 높이 220px × 3/2 = 330px, 가운데 정렬) */
.home-burst-cap {
  position: absolute;
  top: calc(100% + 10px);
  width: 330px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

.home-burst-cap.left {
  right: calc(100% + 48px);
}

.home-burst-cap.right {
  left: calc(100% + 48px);
}

/* 좁은 화면은 엠블럼 양옆에 자리가 없어 사진·문구는 숨김(엠블럼만) */
@media (max-width: 1079px) {
  .home-crest .home-burst,
  .home-burst-cap {
    display: none;
  }
}

.content:has(> [data-tab-panel]:not([hidden])) > .home-crest {
  display: none;
}

/* ---------- 응원가: 메뉴바 오른쪽 아래(스크롤하면 화면 맨 위에 붙음). LP 턴테이블 + 제목 + 조작판 ---------- */
.chants {
  /* 세로 위치(top)는 site.js initChants 가 계산. 메뉴를 옮겨도 노래는 계속 */
  position: fixed;
  top: 34px;
  right: clamp(12px, calc(var(--vw100, 100vw) * 0.03), 32px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  cursor: default;
}

/* 턴테이블·제목 위 머리말 */
.chant-heading {
  align-self: stretch;
  margin: 0 0 -2px;
  color: var(--accent);
  font-family: "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px rgba(247, 243, 236, 0.95);
}

.chant-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chant-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chant-list button {
  padding: 3px 2px;
  border: 0;
  background: none;
  color: #4a443d;
  font: 600 13px "Noto Sans KR", sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgba(247, 243, 236, 0.95);
  cursor: pointer;
}

.chant-list button::before {
  content: "♪ ";
  opacity: 0.6;
}

.chant-list button:hover,
.chant-list button:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chant-list button.on {
  color: var(--accent);
}

.chant-list button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* LP 턴테이블(직접 그린 그림): 나무 받침 + 회전판 + 톤암 */
.turntable {
  position: relative;
  flex: none;
  width: 112px;
  height: 90px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #7a4b2c, #5a3520);
  box-shadow:
    0 8px 18px rgba(60, 40, 20, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.tt-platter {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #3a3a3a 0 8%, #222 9% 100%);
  box-shadow:
    inset 0 0 0 2px #8a8a8a,
    0 2px 4px rgba(0, 0, 0, 0.4);
}

/* LP판(올라간 판·날아가는 판 공통): 검은 홈 + 빨간 라벨(맨유 엠블럼) + 반사광 */
.tt-disc {
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255, 255, 255, 0.16), transparent 12%, transparent 45%, rgba(255, 255, 255, 0.12) 55%, transparent 68%),
    radial-gradient(circle, #f7f3ec 0 4%, #c8102e 4.5% 30%, #111 31% 33%, transparent 33%),
    repeating-radial-gradient(circle, #141414 0 1.5px, #1e1e1e 1.5px 3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.tt-disc img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: 22%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tt-record {
  position: absolute;
  inset: 3px;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  animation: tt-spin 1.8s linear infinite;
  animation-play-state: paused;
}

.turntable.has-record .tt-record {
  opacity: 1;
  transform: none;
}

/* 재생 중에만 돎(멈추면 그 자리에서 멈춤) */
.turntable.playing .tt-record {
  animation-play-state: running;
}

.tt-fly {
  position: fixed;
  z-index: 60;
  pointer-events: none;
}

@keyframes tt-spin {
  to {
    rotate: 360deg;
  }
}

/* 톤암: 오른쪽 위 축에서 내려오는 팔. 재생 중이면 LP판 위로 내려옴 */
.tt-pivot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2f2f2, #9a9a9a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tt-arm {
  position: absolute;
  top: 15px;
  right: 14.5px;
  width: 3px;
  height: 60px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d9d9d9, #8f8f8f);
  transform-origin: 50% 0;
  transform: rotate(4deg);
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.tt-arm::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -2px;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  background: #cfcfcf;
}

.turntable.playing .tt-arm {
  transform: rotate(27deg);
}

/* 재생되면 나타나는 작은 조작판(배경·테두리 없이) */
.chant-player {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a342d;
}

.chant-player[hidden] {
  display: none;
}

/* 재생/멈춤: 멈춰 있으면 ▶, 재생 중이면 ❚❚ */
.chant-toggle {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.chant-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffffff;
}

.chant-toggle.playing::before {
  width: 3px;
  height: 11px;
  margin: -5.5px 0 0 -5px;
  border: 0;
  background: #ffffff;
  box-shadow: 6px 0 0 #ffffff;
}

.chant-time {
  min-width: 30px;
  font: 500 11px "Noto Sans KR", sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
  opacity: 0.85;
}

/* 재생바·볼륨: 가는 줄 + 지나간 부분은 버건디 */
.chant-seek,
.chant-vol {
  --p: 0%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.chant-seek {
  width: 140px;
}

.chant-vol {
  width: 60px;
}

.chant-seek::-webkit-slider-runnable-track,
.chant-vol::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p), rgba(28, 26, 23, 0.18) var(--p));
}

.chant-seek::-moz-range-track,
.chant-vol::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p), rgba(28, 26, 23, 0.18) var(--p));
}

.chant-seek::-webkit-slider-thumb,
.chant-vol::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  appearance: none;
  -webkit-appearance: none;
}

.chant-seek::-moz-range-thumb,
.chant-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.chant-seek:focus-visible,
.chant-vol:focus-visible,
.chant-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 볼륨 아이콘(스피커) */
.chant-vol-icon {
  flex: none;
  width: 14px;
  height: 14px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a544c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z' fill='%235a544c'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .tt-record {
    animation: none;
  }
}

/* 폰·태블릿(1180px 이하, site.js CHANTS_NARROW 와 같은 값): 화면에 고정하지 않고 상단 경기장 사진 오른쪽 위(하늘 부분)에 둠
   → 메뉴·본문을 덮지 않음. 사진 위에서도 글자가 보이게 반투명 크림색 카드. 스크롤하면 사진과 함께 올라감(노래는 계속) */
@media (max-width: 1180px) {
  .chants {
    position: absolute;
    top: 10px;
    right: max(10px, env(safe-area-inset-right, 0px));
    padding: 8px 10px 9px;
    border-radius: 12px;
    background: rgba(247, 243, 236, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .chant-heading,
  .chant-list button {
    text-shadow: none;
  }
}

/* 휴대폰: 턴테이블·글자·조작판 조금 작게 */
@media (max-width: 640px) {
  .chants {
    gap: 6px;
  }

  .chant-top {
    gap: 8px;
  }

  .chant-list button {
    font-size: 11.5px;
  }

  .chant-heading {
    font-size: 12.5px;
  }

  .chant-seek {
    width: 96px;
  }

  .chant-vol {
    width: 44px;
  }

  .turntable {
    width: 84px;
    height: 68px;
  }

  .tt-platter {
    top: 5px;
    left: 5px;
    width: 58px;
    height: 58px;
  }

  .tt-pivot {
    top: 6px;
    right: 6px;
    width: 11px;
    height: 11px;
  }

  .tt-arm {
    top: 11px;
    right: 10px;
    height: 45px;
  }
}

/* ---------- BBC 맨유 뉴스 ---------- */

.news-src-tag {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 9px 2px 9px 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.news-list button:hover,
.news-list button:focus-visible {
  border-left-color: var(--accent);
  background: rgba(122, 31, 43, 0.04);
}

.news-t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #3a3530;
  font: 500 13.5px/1.45 "Noto Sans KR", sans-serif;
  word-break: keep-all;
}

.news-list button:hover .news-t {
  color: var(--accent);
}

.news-when {
  color: var(--muted);
  font: 500 11px "Noto Sans KR", sans-serif;
}

.news-empty {
  padding: 10px 2px;
  color: var(--muted);
  font-size: 13px;
}

.news-side {
  position: fixed;
  bottom: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 좌우 14px 는 news.js SIDE_PAD 와 같게. 위쪽은 바로가기 메뉴와 나누는 옅은 점선 자리 */
  padding: 36px 14px 0;
}

.news-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.13);
}

.news-side[hidden] {
  display: none;
}

.news-side-head {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line, #e6ddd0);
  background: none;
  text-align: left;
  cursor: pointer;
  margin: 0 0 4px;
  padding: 0 0 6px 10px;
  /* 맨유 상징색(레드), 글자 13px의 1.8배 */
  color: #da291c;
  font: 700 calc(23.4px * var(--news-k, 1)) "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.news-side-head .news-src-tag {
  font-size: calc(11.5px * var(--news-k, 1));
}

.news-side-head .news-fold-chev {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.2s;
}

.news-side-head[aria-expanded="true"] .news-fold-chev {
  transform: rotate(180deg);
}

.news-side-head:hover .news-fold-chev,
.news-side-head:focus-visible .news-fold-chev {
  color: #da291c;
}

.news-side .news-list[hidden] {
  display: none;
}

.news-side .news-list > li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* '맨유 뉴스' 메뉴: 날짜별 묶음 */
.panel-news .news-list-tab > li.news-day {
  padding: 18px 4px 6px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font: 700 14px "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  letter-spacing: 0.04em;
}

.panel-news .news-list-tab > li.news-day:first-child {
  padding-top: 6px;
}


.panel-news .news-list-tab > li {
  border-bottom: 1px solid var(--line, #e6ddd0);
}

.panel-news .news-list-tab button {
  padding: 14px 4px 14px 12px;
}

.panel-news .news-t {
  -webkit-line-clamp: 3;
  font-size: 15.5px;
}

.panel-news .news-when {
  font-size: 12px;
}

.news-src {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

/* 기사 팝업 */
.news-dlg {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--paper, #fffdf8);
  color: #2a2622;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.news-dlg::backdrop {
  background: rgba(20, 16, 12, 0.55);
}

.news-box {
  position: relative;
  padding: 26px 28px 24px;
}

.news-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #6a635b;
  font-size: 24px;
  cursor: pointer;
}

.news-x:hover {
  background: rgba(0, 0, 0, 0.06);
}

.news-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.news-box h2 {
  margin: 0 30px 6px 0;
  font: 700 22px/1.4 "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}

.news-en {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.news-sum {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(122, 31, 43, 0.05);
}

.news-sum b {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font: 700 13px "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  letter-spacing: 0.06em;
}

.news-sum p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
  white-space: pre-line;
}

/* 운영자 요약 강조: **진하게**, __밑줄__ */
.news-sum p strong {
  font-weight: 800;
  color: var(--ink, inherit);
}

.news-sum p u {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

.news-go {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 700 14.5px "Noto Sans KR", sans-serif;
  text-decoration: none;
}

.news-go:hover {
  filter: brightness(1.12);
}

.news-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .news-box {
    padding: 22px 18px 20px;
  }

  .news-box h2 {
    font-size: 19px;
  }
}

/* 폰: 상단 메뉴 7개(칠판·맨유 기사 포함)가 한 줄에 들어가게 글자·간격을 조금 줄임 */
@media (max-width: 480px) {
  .menu {
    --menu-gap: 6px;
    padding: 0 4px;
  }

  .menu a {
    font-size: 12px;
  }
}

/* 360px 폭 폰(갤럭시 등): 한 단계 더 작게 */
@media (max-width: 380px) {
  .menu {
    --menu-gap: 3px;
    padding: 0 2px;
  }

  .menu a {
    font-size: 11.5px;
  }
}

/* ---------- 오른쪽 응원가 아래: 맨유 리본 로고 + 두 사람(맨유·순위표 및 일정·시뮬레이션, 1500px 이상) ---------- */
/* 자리·크기는 crest-side.js 가 계산(화면에 고정) */
.crest-side {
  position: fixed;
  z-index: 5;
  opacity: 0.8;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.crest-side[hidden] {
  display: none;
}

/* ---------- 넓은 화면: 본문(가운데)과 양옆(왼쪽 바로가기·뉴스, 오른쪽 응원가·로고)을 색으로 구분 ---------- */
/* 양옆은 옅은 맨유 버건디 기운, 본문 띠는 지금 바탕색. 경계는 6px 에 걸쳐 섞고, 본문 쪽에 아주 옅은 그림자 */
@media (min-width: 1280px) {
  :root {
    --side-bg: #ecd9d3;
    /* 본문 1080px + 양쪽 28px 여유의 절반 */
    --band-half: 568px;
  }

  body {
    background: var(--side-bg);
  }

  .content {
    background:
      linear-gradient(
        90deg,
        transparent calc(50% - var(--band-half)),
        rgba(60, 40, 20, 0.07) calc(50% - var(--band-half)),
        transparent calc(50% - var(--band-half) + 12px),
        transparent calc(50% + var(--band-half) - 12px),
        rgba(60, 40, 20, 0.07) calc(50% + var(--band-half)),
        transparent calc(50% + var(--band-half))
      ),
      linear-gradient(
        90deg,
        var(--side-bg) 0,
        var(--side-bg) calc(50% - var(--band-half) - 6px),
        var(--bg) calc(50% - var(--band-half)),
        var(--bg) calc(50% + var(--band-half)),
        var(--side-bg) calc(50% + var(--band-half) + 6px),
        var(--side-bg) 100%
      );
  }
}

/* '맨유 뉴스' 메뉴: 주 범위 + 아래 페이지 번호(1 | 2 | 3) */
.panel-news .news-week {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.news-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  margin: 28px 0 6px;
}

.news-pager[hidden] {
  display: none;
}

.news-pager button {
  min-width: 32px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #6a635b;
  font: 600 17px "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.news-pager button:hover,
.news-pager button:focus-visible {
  color: #da291c;
}

.news-pager button[aria-current="page"] {
  color: #da291c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.news-pager-bar {
  color: var(--line);
}

/* '맨유 뉴스' 메뉴 아래 출처: 오른쪽 */
.panel-news .news-src {
  text-align: right;
}

/* ---------- 상단 메뉴바: 샴페인 골드 ---------- */
/* 위에서 아래로 금빛이 짙어지는 아이보리 바탕, 위·아래 금선(양 끝은 흐려짐),
   구분은 가는 테두리를 두른 작은 금색 다이아몬드, 선택 메뉴는 금빛 글자 + 아래 금선 */
.site-nav {
  /* 위는 흰색, 아래로 갈수록 지금의 골드(#f3e6cc) */
  background: linear-gradient(180deg, #ffffff 0%, #f3e6cc 100%);
  border-top: 0;
  border-bottom: 0;
}

.site-nav::before,
.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a45c 15%, #e8cf8e 50%, #c9a45c 85%, transparent);
  pointer-events: none;
}

.site-nav::before {
  top: 0;
}

.site-nav::after {
  bottom: 0;
}

.menu a {
  color: #4a3c2c;
  font-weight: 600;
}

.menu a:hover {
  color: #2e2419;
}

/* 선택 메뉴: 금빛 그라데이션 글자 */
.menu a[aria-current="page"] .label {
  background: linear-gradient(180deg, #c99a3c, #8a5f17);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 아래 금선: 마우스를 올리면 옅게, 선택 메뉴는 진하게 */
.menu a::after {
  height: 1px;
  bottom: 9px;
  left: 10%;
  right: 10%;
  border-radius: 0;
  background: #b8862f;
  opacity: 0.45;
}

.menu a[aria-current="page"]::after {
  opacity: 1;
}

/* 메뉴 사이: 작은 연한 버건디 다이아몬드 */
.menu a + a::before {
  top: 50%;
  bottom: auto;
  left: calc(var(--menu-gap) / -2 - 2.5px);
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  /* 연한 버건디 */
  background: #b86a76;
  box-shadow:
    0 0 0 2px #fbf5e8,
    0 0 0 3px rgba(184, 106, 118, 0.4);
}

/* PC·태블릿: 메뉴 7개를 본문 가로폭(최대 1080px)에 정확히 7등분, 칸마다 가운데. 다이아몬드는 칸 경계 */
@media (min-width: 901px) {
  .menu {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: min(1080px, 100%);
    gap: 0;
    padding: 0;
    /* 7칸이 늘 들어가므로 옆으로 밀리지 않게(누를 때 반짝이는 테두리가 밖으로 살짝 나와도 그대로 보임) */
    overflow: visible;
  }

  .menu a {
    justify-content: center;
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .menu a + a::before {
    left: -2.5px;
  }

  /* 왼쪽 메뉴의 아래 금선이 칸 폭만큼 너무 길지 않게 */
  .menu a::after {
    left: 22%;
    right: 22%;
  }
}

/* 본문이 1080px 로 넓어지는 화면: 칸(180px)에 맞춰 글자 크게 */
@media (min-width: 1112px) {
  .menu a {
    font-size: 18px;
  }
}

/* 폰: 칸이 좁아 지금 배치 그대로, 다이아몬드만 작게(테두리 없이) */
@media (max-width: 900px) {
  .menu a + a::before {
    left: calc(var(--menu-gap) / -2 - 2px);
    width: 4px;
    height: 4px;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .menu a + a::before {
    left: calc(var(--menu-gap) / -2 - 1.5px);
    width: 3px;
    height: 3px;
  }
}

/* 응원가: 오른쪽에 붙은 자리는 그대로, 오른쪽 색 공간이 좁으면 site.js 가 크기만 줄임(오른쪽 위 기준) */
.chants {
  transform-origin: 100% 0;
}

/* 대한민국 메뉴: 왼쪽 맨유 최신 뉴스·오른쪽 맨유 응원가는 숨김(노래가 재생 중이면 소리는 그대로, 다른 메뉴로 가면 다시 보임) */
body:has(.content > [data-tab-panel="korea"]:not([hidden])) .news-side,
body:has(.content > [data-tab-panel="korea"]:not([hidden])) .chants {
  display: none;
}

/* 맨유 메뉴 소제목(실시간 승리확률·경기 시뮬레이션·실시간 중계·경기 기록·승부예측): 순위표 및 일정 소제목과 같은 붉은 버건디 */
[data-tab-panel="manutd"] :is(.winprob-title, .sim-match-title, .sim-title) {
  color: #8a1426;
}

/* 시뮬레이션 메뉴 '승부예측', 맨유 뉴스 메뉴 큰 제목 '맨유 뉴스': 같은 붉은 버건디 */
[data-tab-panel="simulation"] .sim-predict > .sim-title,
.content .panel-news > h2 {
  color: #8a1426;
}

/* 왼쪽 '맨유 최신 뉴스' 제목: 칸 가운데에 글자·출처·화살표를 모아서(화살표가 오른쪽 끝에 떨어져 있으면 글자가 왼쪽으로 치우쳐 보임) */
.news-side-head {
  justify-content: center;
  padding-left: 0;
  text-align: center;
}

.news-side-head .news-fold-chev {
  margin-left: 2px;
}

/* 맨 아래 안내: 본문 폭 가로줄 + 작은 글씨, 페이지 바닥 가까이 */
.content {
  position: relative;
  padding-bottom: 130px;
}

.site-foot {
  /* 본문 맨 아래(=페이지 바닥)에서 14px 위에 붙임. 자리는 .content 아래 여백(130px)이 비워 둠 */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 0;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.site-foot p {
  margin: 0;
  /* 어느 화면에서든 한 줄: 12px 에서 문장 폭이 글자 크기의 약 71배 → 좁으면 남는 폭에 맞춰 글자를 줄임 */
  white-space: nowrap;
  font-size: min(12px, calc((min(1080px, var(--vw100, 100vw) - 32px) - 32px) / 72));
}

.site-foot-by {
  display: inline-block;
  margin-left: 1.5em;
  white-space: nowrap;
}

/* 폰: 한 줄이면 글자가 너무 작아져 두 줄 이상으로(11px), 제작자는 다음 줄 가운데 */
@media (max-width: 640px) {
  .content {
    padding-bottom: 150px;
  }

  .site-foot p {
    white-space: normal;
    font-size: 11px;
  }

  .site-foot-by {
    display: block;
    margin: 2px 0 0;
  }
}

/* ---------- 맨 위 이미지: 차분하게 어둡힌 경기장 + 왼쪽 글자 덩어리(Streamer Assistant) ---------- */
/* 사진은 조금 어둡고 차분하게, 가장자리와 왼쪽을 살짝 더 어둡게(글자가 잘 보이게) */
.hero-art {
  filter: brightness(0.58) saturate(0.7) contrast(1.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(75% 95% at 55% 55%, transparent 35%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 45%);
  /* 아래로 갈수록 어둡게 하는 층이 서서히 사라짐(아래 크림색 흐림과 부딪혀 회색 띠가 생기지 않게) */
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
}

/* 크림색 흐림을 어둡게 하는 층 위에(글자 덩어리·문의 버튼보다는 아래) → 맨 아래가 확실히 크림색으로 끝남 */
.hero::after {
  z-index: 1;
}

/* 글자 덩어리: 본문 왼쪽 끝 선에 맞춤(넓은 화면), 세로 가운데 */
.hero-brand {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(6vw, calc(50% - 540px));
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 4%;
  pointer-events: none;
}

/* 네 줄 모두 가장 긴 줄(제목) 폭에 맞춤 */
.hb-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: max-content;
}

.hb-col > * {
  margin: 0;
}

.hb-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font: 700 clamp(11px, 0.85vw, 14px) "KBO Dia Gothic", sans-serif;
  letter-spacing: 0.32em;
  color: #d9b866;
}

.hb-tag::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9b866);
}

.hb-title {
  font: 700 clamp(40px, 5vw, 84px) "KBO Dia Gothic", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.hb-red {
  color: #ff3b48;
}

.hb-desc {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font: 400 clamp(13px, 1vw, 17px) "KBO Dia Gothic", sans-serif;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.hb-desc i {
  font-style: normal;
  color: #d9b866;
}

.hb-sig {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font: italic 400 clamp(12px, 0.95vw, 16px) Georgia, "Times New Roman", serif;
  letter-spacing: 0.2em;
  color: #d9b866;
}

.hb-sig::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d9b866, transparent);
}

/* 폰: 위(10~126px)는 응원가 카드, 아래(257px~)는 '건의·오류 문의' → 그 사이에 작게. 소개 줄은 숨기고, 아래 크림색 흐림은 20%로 */
@media (max-width: 640px) {
  .hero::after {
    /* 폰: 글자(아래 228px 까지)를 덮지 않게 짧게, 같은 부드러운 곡선 */
    height: 26%;
  }

  .hero-brand {
    left: 20px;
    justify-content: flex-end;
    padding-bottom: 52px;
  }

  .hb-col {
    gap: 6px;
  }

  .hb-tag {
    font-size: 10px;
    gap: 8px;
  }

  .hb-title {
    font-size: 28px;
  }

  .hb-desc {
    display: none;
  }

  .hb-sig {
    font-size: 11px;
    gap: 8px;
  }
}

/* ---------- 맨 위 글자 효과: 은은한 금빛 광택(7초마다) + 글자 뒤로 지나가는 조명 ---------- */
.hb-col {
  position: relative;
  z-index: 1;
}

.hb-red,
.hb-w {
  display: inline-block;
  /* 광택 글자는 글자 그림자가 글자 위에 덮여 어두워 보이므로 그림자를 따로(필터로) */
  text-shadow: none;
  /* 금속 판: 위 = 은은한 금빛 광택(지나감), 아래 = 글자 위쪽 밝게·아래쪽 살짝 어둡게 */
  background-image:
    linear-gradient(110deg, transparent 0%, transparent 44%, rgba(255, 244, 210, 0.38) 48%, rgba(241, 212, 140, 0.5) 50%, rgba(255, 244, 210, 0.38) 52%, transparent 56%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, currentColor 72%, #fff) 0%, currentColor 48%, color-mix(in srgb, currentColor 80%, #000) 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hb-shimmer 7s ease-in-out infinite;
}

.hb-w {
  color: #ffffff;
  animation-delay: 0.25s;
}

@keyframes hb-shimmer {
  0%,
  55% {
    background-position: 100% 0, 0 0;
  }
  85%,
  100% {
    background-position: 0% 0, 0 0;
  }
}

/* 제목 입체감(금속 판): 가는 금빛 테두리 + 얇은 두께 2겹 + 아래 그림자. 글자 아래에 깔려 색을 덮지 않음 */
.hb-title {
  text-shadow: none;
  filter:
    drop-shadow(0 0 0.02em rgba(233, 207, 138, 0.9))
    drop-shadow(0.01em 0.016em 0 rgba(30, 6, 10, 0.85))
    drop-shadow(0.01em 0.016em 0 rgba(20, 4, 8, 0.85))
    drop-shadow(0 0.1em 0.2em rgba(0, 0, 0, 0.55));
}


/* 글자 뒤로 천천히 오가는 조명 */
.hero-beam {
  position: absolute;
  z-index: 0;
  top: -20%;
  bottom: -20%;
  left: -8vw;
  width: min(500px, 26vw);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 236, 190, 0.22), rgba(255, 236, 190, 0.08) 45%, transparent 70%);
  filter: blur(8px);
  animation: hb-sweep 9s ease-in-out infinite alternate;
}

@keyframes hb-sweep {
  from {
    transform: translateX(-6vw) rotate(-8deg);
  }
  to {
    transform: translateX(22vw) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-red,
  .hb-w,
  .hero-beam {
    animation: none;
  }
}

/* ---------- 맨 위: 글자·어둡게 하는 효과를 가운데 기준 좌우 반전(사진은 그대로) ----------
   PC(1181px 이상)·폰(640px 이하)만. 태블릿은 오른쪽 위 응원가 카드와 겹치므로 왼쪽 그대로 */
@media (min-width: 1181px), (max-width: 640px) {
  .hero::before {
    background:
      radial-gradient(75% 95% at 45% 55%, transparent 35%, rgba(0, 0, 0, 0.6) 100%),
      linear-gradient(270deg, rgba(0, 0, 0, 0.35), transparent 45%);
  }

  /* 본문 오른쪽 끝 선에 맞춤, 오른쪽 정렬 */
  .hero-brand {
    left: auto;
    right: max(6vw, calc(50% - 540px));
    align-items: flex-end;
  }

  .hb-col {
    align-items: flex-end;
    text-align: right;
  }

  /* 금빛 선은 바깥쪽(위 줄은 오른쪽, 아래 줄은 왼쪽으로) */
  .hb-tag,
  .hb-sig {
    flex-direction: row-reverse;
  }

  .hb-tag::before {
    background: linear-gradient(270deg, transparent, #d9b866);
  }

  .hb-sig::after {
    background: linear-gradient(270deg, #d9b866, transparent);
  }

  .hero-beam {
    left: auto;
    right: -8vw;
    animation-direction: alternate-reverse;
  }
}

/* 폰: 오른쪽 20px(응원가 카드 바로 아래) */
@media (max-width: 640px) {
  .hero-brand {
    left: auto;
    right: 20px;
  }
}

/* 맨유 배당: 늘 펼침 → 제목은 누르는 버튼이 아니라 글자(마우스 효과·밑줄 없음) */
.odds-toggle.odds-static {
  margin: 0 0 12px;
  cursor: default;
}

.odds-toggle.odds-static::after {
  content: none;
}

.odds-toggle.odds-static:hover .label {
  transform: none;
  text-shadow: none;
  animation: none;
}

/* 왼쪽 '맨유 최신 뉴스' 아래 안내(접혀 있을 때만) */
.news-side-head {
  flex-wrap: wrap;
  row-gap: 2px;
}

.news-fold-hint {
  flex-basis: 100%;
  font: 500 calc(11.5px * var(--news-k, 1)) "KBO Dia Gothic", "Noto Sans KR", sans-serif;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.news-side-head[aria-expanded="true"] .news-fold-hint {
  display: none;
}

/* 맨유 배당 표: 변화 표시(▲▼–)가 들어갈 자리를 위해 칸 좌우 여백을 조금 줄임 */
.odds[data-team="manutd"] th,
.odds[data-team="manutd"] td {
  padding-left: 7px;
  padding-right: 7px;
}

/* 배당: 맨유 승리확률 옆 변화(직전 갱신 대비) */
.odds .prob .trend {
  margin-left: 4px;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0;
}

/* 마우스를 올리면 '이전 → 지금' 확률이 나오는 칸 */
.odds .prob[title] {
  cursor: help;
}

.odds .prob .trend.up {
  color: #1f8a4c;
}

.odds .prob .trend.down {
  color: #c62828;
}

.odds .prob .trend.same {
  color: var(--muted);
}

/* 폰: 맨유 배당 표가 좁은 화면에 들어가게 칸 여백·변화 표시 간격을 더 줄임 */
@media (max-width: 640px) {
  .odds[data-team="manutd"] th,
  .odds[data-team="manutd"] td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .odds .prob .trend {
    margin-left: 2px;
  }
}

/* ---------- 폰·작은 태블릿(760px 이하): 상단 메뉴 7개를 두 줄 × 네 칸으로(한 줄에 몰려 글자가 겹쳐 보이지 않게) ----------
   맨유 · 순위표 및 일정 · 시뮬레이션 · 칠판 / 맨유 뉴스 · 책님 · 대한민국. 다이아몬드는 같은 줄 칸 사이에만, 두 줄 사이엔 옅은 금선 */
@media (max-width: 760px) {
  .site-nav {
    height: auto;
    padding: 0 8px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 46px;
    width: 100%;
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .menu a {
    justify-content: center;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.15;
  }

  /* 다이아몬드: 칸 경계(줄의 첫 칸 앞에는 없음) */
  .menu a + a::before {
    left: -1.5px;
    width: 4px;
    height: 4px;
    box-shadow: none;
  }

  .menu a:nth-child(4n + 1)::before {
    content: none;
  }

  /* 두 줄 사이 옅은 금선 */
  .menu a:nth-child(-n + 4) {
    border-bottom: 1px solid rgba(201, 164, 92, 0.35);
  }

  /* 선택 메뉴 아래 금선: 칸 폭에 맞게 짧게 */
  .menu a::after {
    left: 24%;
    right: 24%;
    bottom: 6px;
  }
}

/* 태블릿(761~900px): 한 줄 그대로 두되 PC처럼 7등분(오른쪽 끝 '대한민국'이 잘리지 않게), 글자 조금 작게 */
@media (min-width: 761px) and (max-width: 900px) {
  .menu {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .menu a {
    justify-content: center;
    font-size: 13.5px;
    letter-spacing: 0;
  }

  .menu a + a::before {
    left: -2px;
  }

  .menu a::after {
    left: 20%;
    right: 20%;
  }
}

/* 맨유 뉴스 메뉴 큰 제목 옆: 회색 작은 글자로 출처 */
.content .panel-news > h2 .news-title-src {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 2px;
}

/* 왼쪽 '맨유 최신 뉴스': 기사마다 앞에 진한 점(시간 글자도 제목 줄에 맞춰 같은 만큼 들여씀) */
.news-side .news-t,
.news-side .news-when {
  position: relative;
  padding-left: 13px;
}

.news-side .news-t::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.725em - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2b2622;
}

/* 왼쪽 '맨유 최신 뉴스' 뒤 배경(시안 10번): 옅은 아이보리 + 왼쪽 버건디 띠.
   위쪽 점선(바로가기 메뉴와 나누는 선) 아래부터 칸 끝까지 → 접으면 머리말만큼으로 같이 줄어듦 */
.news-side {
  padding-bottom: 8px;
}

.news-side::after {
  content: "";
  position: absolute;
  inset: 26px 0 0;
  z-index: -1;
  border-left: 4px solid rgba(138, 20, 38, 0.4);
  border-radius: 4px 12px 12px 4px;
  background: rgba(255, 250, 240, 0.55);
  pointer-events: none;
}

/* ---------- 칠판(전술판) ---------- */
.panel-board .board-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.board-roster {
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.board-main {
  min-width: 0;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

/* 양 끝 포메이션 고르기: 맨유는 왼쪽, 상대는 오른쪽 끝 */
.board-toolbar select[data-board-form="opp"] {
  margin-left: auto;
}

.board-toolbar select,
.board-toolbar button {
  padding: 7px 12px;
  border: 1px solid var(--sim-line, #e6e6ee);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.board-toolbar button:not(:disabled):hover,
.board-toolbar select:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.board-toolbar button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.board-toolbar button:disabled {
  cursor: default;
  opacity: 0.45;
}

/* 경기장: 105:68 비율 고정, 그림·자리·펜·말이 같은 칸을 겹쳐 씀 */
.board-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 105 / 68;
  border-radius: 6px;
  overflow: hidden;
  background: #2a7235;
  touch-action: none;
}

.board-stage > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.board-pitch svg {
  display: block;
  width: 100%;
  height: 100%;
}

.board-slots,
.board-pieces {
  pointer-events: none;
}

/* 말 크기는 경기장 너비 기준(cqw): 휴대폰 390px ~ 전체 화면 1920px 모두 같은 비율 */
.board-stage {
  container-type: inline-size;
  --pc: clamp(18px, 3.5cqw, 64px);
  user-select: none;
  -webkit-user-select: none;
}

.board-stage.pen-on {
  cursor: crosshair;
}

.board-ink {
  pointer-events: none;
}

.board-slots .slot,
.board-pieces .piece {
  position: absolute;
  box-sizing: border-box;
  width: var(--pc);
  height: var(--pc);
  margin: calc(var(--pc) / -2) 0 0 calc(var(--pc) / -2);
  border-radius: 50%;
}

/* 맨유 빈 자리: 연한 동그라미(찬 자리는 숨김) */
.board-slots .slot {
  border: 2px dashed rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.board-slots .slot[hidden] {
  display: none;
}

.board-pieces .piece {
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.board-pieces .piece.dragging {
  z-index: 2;
  cursor: grabbing;
}

/* 펜이 켜져 있어도 말 위에서는 끌기(빈 곳에서만 그림) */
.board-stage.pen-on .piece {
  cursor: grab;
}

.piece-us {
  border: 2px solid #ffffff;
  background: #da291c;
  color: #ffffff;
}

.piece-num {
  font-size: calc(var(--pc) * 0.44);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* 이름: 말 아래, 말보다 넓어도 잘리지 않게(잔디 위에서 읽히도록 그림자) */
.piece-name {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #ffffff;
  font-size: clamp(10px, 1.25cqw, 22px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.piece-opp {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: #3b4048;
}

/* 명단: 경기장 높이에 맞추고 안에서 스크롤 */
.board-roster {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  contain: size;
  overflow: hidden;
}

.board-roster-title {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.board-roster-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

/* 포지션별 칸: GK · DF · MF · FW 제목 아래 선수 */
.board-pos-group + .board-pos-group {
  margin-top: 8px;
}

.board-pos-title {
  margin: 0 0 2px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--line);
  color: #7a1f2b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.board-pos-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-player {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

/* 이번 시즌 절반 이상 선발: 칸 전체 연한 회색 */
.board-player.regular {
  background: rgba(60, 64, 72, 0.09);
}

.board-player:hover {
  background: var(--accent-soft);
}

.board-player[aria-pressed="true"] {
  background: #da291c;
  color: #ffffff;
}

.board-player .num {
  flex: 0 0 2ch;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.board-note {
  margin: 8px 0 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff1d6;
  color: #7a4a00;
  font-size: 13px;
}

.board-note[hidden] {
  display: none;
}

.board-loading,
.board-fail {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 휴대폰: 도구줄 → 경기장 → 명단 */
@media (max-width: 760px) {
  .panel-board .board-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-main {
    order: -1;
  }

  .board-roster {
    contain: none;
  }

  .board-roster-list {
    overflow: visible;
  }

  .board-pos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 2px 6px;
  }

  .board-toolbar {
    gap: 6px;
  }

  .board-toolbar select,
  .board-toolbar button {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* 전체 화면: 폭과 상관없이 항상 넓은 배치(명단 왼쪽 | 도구줄+경기장 오른쪽). 위 폰 규칙보다 뒤에, 더 센 선택자로 */
.panel-board .board-wrap:fullscreen {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 12px;
  overflow: auto;
  background: var(--bg);
}

.panel-board .board-wrap:fullscreen .board-main {
  display: flex;
  flex-direction: column;
  order: 0;
  min-height: 0;
}

.panel-board .board-wrap:fullscreen .board-roster {
  contain: size;
  min-height: 0;
}

.panel-board .board-wrap:fullscreen .board-roster-list {
  display: block;
  overflow-y: auto;
}

.panel-board .board-wrap:fullscreen .board-toolbar {
  flex: none;
  gap: 8px;
}

.panel-board .board-wrap:fullscreen .board-toolbar select,
.panel-board .board-wrap:fullscreen .board-toolbar button {
  padding: 6px 12px;
  font-size: 14px;
}

/* 남는 자리(.board-fit)를 flex 로 받고, 105:68 은 그 안에 들어가는 가장 큰 크기 */
.panel-board .board-wrap:fullscreen .board-fit {
  display: grid;
  flex: 1 1 0;
  place-items: center;
  min-height: 0;
  container-type: size;
}

.panel-board .board-wrap:fullscreen .board-stage {
  width: min(100cqw, calc(100cqh * 105 / 68));
}

@media (max-width: 560px) {
  .panel-board .board-wrap:fullscreen {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }
}

/* 휴대폰 가로(높이 500px 이하): 명단은 이름 폭만큼 좁게(가장 긴 이름 'T.플레처' 기준), 남는 폭은 경기장에.
   폭 760px 이하 가로폰도 세로로 쌓지 않고 나란히. 전체 화면에도 같이 */
@media (orientation: landscape) and (max-height: 500px) {
  .panel-board .board-wrap,
  .panel-board .board-wrap:fullscreen {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }

  .panel-board .board-main {
    order: 0;
  }

  .panel-board .board-roster {
    contain: size;
    padding: 6px 4px;
  }

  .panel-board .board-roster-list {
    overflow-y: auto;
  }

  .panel-board .board-pos-list {
    display: block;
  }

  .panel-board .board-roster-title {
    font-size: 12px;
  }

  .panel-board .board-player {
    gap: 5px;
    padding: 3px 4px;
    font-size: 13px;
  }

  .panel-board .board-toolbar {
    gap: 5px;
    margin-bottom: 6px;
  }

  .panel-board .board-toolbar select,
  .panel-board .board-toolbar button,
  .panel-board .board-wrap:fullscreen .board-toolbar select,
  .panel-board .board-wrap:fullscreen .board-toolbar button {
    padding: 5px 9px;
    font-size: 12.5px;
  }
}

/* '순위표 및 일정'은 폰(760px 이하)에서만 두 줄로('순위표 및' / '일정'): 좁은 칸에서 구분 다이아몬드에 닿지 않게 */
.menu .menu-br {
  display: none;
}

@media (max-width: 760px) {
  .menu .menu-br {
    display: inline;
  }
}

/* 아주 좁은 폰(360px 이하): 글자를 조금 줄여 '시뮬레이션'이 다이아몬드에 닿지 않게 */
@media (max-width: 360px) {
  .menu a {
    font-size: 12.5px;
    letter-spacing: 0;
  }
}
