/* =========================================================
   오늘 뭐 먹지? - 이상형 월드컵
   css/worldcup.css
   ========================================================= */


/* =========================================================
   1. 공통 변수
   ========================================================= */

:root {
  --wc-main: var(--main, #ff8a5b);
  --wc-strong: var(--main-strong, #ff6f3f);
}

body[data-worldcup-category] {
  --wc-orange: #f97316;
  --wc-orange-dark: #ea580c;
  --wc-orange-soft: #fff7ed;

  --wc-line: #dfe3e8;
  --wc-border: #e5e7eb;

  --wc-text: #111827;
  --wc-subtext: #667085;
  --wc-muted: #98a2b3;

  --wc-empty: #f8fafc;
}


/* =========================================================
   2. 월드컵 게임 페이지 기본 레이아웃
   ========================================================= */

.worldcup-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.worldcup-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.worldcup-nav a {
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.worldcup-nav a:hover {
  color: var(--wc-strong);
}

.worldcup-header {
  margin-bottom: 26px;
  text-align: left;
}

.worldcup-label {
  display: inline-block;
  margin-bottom: 10px;

  color: var(--wc-strong);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.worldcup-header .title {
  margin: 0;

  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.worldcup-header .subtitle {
  margin-top: 14px;

  color: #6b7280;

  line-height: 1.65;
}

.worldcup-info {
  margin-top: 48px;
  padding-top: 32px;

  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.worldcup-info h2,
.worldcup-info h3 {
  color: #111827;
  letter-spacing: -0.03em;
}

.worldcup-info h2 {
  font-size: 22px;
}

.worldcup-info h3 {
  margin-top: 26px;
  font-size: 18px;
}

.worldcup-info p {
  color: #6b7280;
  line-height: 1.75;
}


/* 월드컵 페이지에서만 하단 공간 확보 */
body[data-worldcup-category] .app {
  padding-bottom: 120px;
}


/* =========================================================
   3. /worldcup/ 카테고리 목록 페이지
   ========================================================= */

.worldcup-list-page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.worldcup-list-header {
  margin-bottom: 32px;
}

.worldcup-eyebrow {
  display: inline-block;
  margin-bottom: 10px;

  color: var(--wc-strong);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.worldcup-list-header .title {
  margin: 0;

  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.worldcup-list-header .subtitle {
  margin: 12px 0 0;

  color: #6b7280;

  font-size: 16px;
  line-height: 1.6;
}

.worldcup-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.worldcup-category-item {
  display: flex;
  align-items: center;
  gap: 16px;

  min-height: 104px;
  padding: 18px 20px;

  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 20px;

  background: #fff;
  color: #111827;

  text-decoration: none;

  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.worldcup-category-item:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 111, 63, 0.32);

  box-shadow:
    0 14px 34px
    rgba(17, 24, 39, 0.07);
}

.worldcup-category-item:focus-visible {
  outline: 3px solid rgba(255, 138, 91, 0.25);
  outline-offset: 3px;
}

.worldcup-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 54px;

  width: 54px;
  height: 54px;

  border-radius: 16px;

  background: #fff3ed;

  font-size: 26px;
}

.worldcup-category-copy {
  display: flex;
  flex: 1;
  min-width: 0;

  flex-direction: column;
  gap: 5px;
}

.worldcup-category-copy strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.worldcup-category-copy span {
  color: #6b7280;

  font-size: 14px;
  line-height: 1.45;
}

.worldcup-category-arrow {
  flex: 0 0 auto;

  color: var(--wc-strong);

  font-size: 22px;
  font-weight: 900;
}

.worldcup-list-footer {
  margin-top: 28px;
}

.worldcup-list-footer a {
  color: #6b7280;

  font-size: 14px;
  font-weight: 800;

  text-decoration: none;
}

.worldcup-list-footer a:hover {
  color: var(--wc-strong);
}


/* =========================================================
   4. 현재 음식 대결 영역
   ========================================================= */

body[data-worldcup-category] #tournament {
  position: relative;

  margin-bottom: 28px;
  padding: 24px;

  overflow: hidden;

  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 24px;

  background: #fff;

  box-shadow:
    0 14px 36px
    rgba(15, 23, 42, 0.08);
}


/* =========================================================
   5. 진행률
   ========================================================= */

body[data-worldcup-category] .wc-progress {
  margin-bottom: 22px;
}

body[data-worldcup-category] .wc-progress-top {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 10px;

  color: var(--wc-subtext);

  font-size: 14px;
}

body[data-worldcup-category] .wc-round-label {
  color: var(--wc-orange-dark);

  font-size: 16px;
  font-weight: 900;
}

body[data-worldcup-category] .wc-total-progress {
  margin-left: auto;

  color: var(--wc-muted);

  white-space: nowrap;
}

body[data-worldcup-category] .wc-progress-track {
  width: 100%;
  height: 7px;

  overflow: hidden;

  border-radius: 999px;

  background: #f1f3f5;
}

body[data-worldcup-category] .wc-progress-fill {
  height: 100%;

  border-radius: inherit;

  background: var(--wc-orange);

  transition: width 0.25s ease;
}


/* =========================================================
   6. 현재 대결 레이아웃
   ========================================================= */

body[data-worldcup-category] .wc-match {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    54px
    minmax(0, 1fr);

  align-items: stretch;

  gap: 18px;
}


/* =========================================================
   7. 음식 선택 카드
   ========================================================= */

body[data-worldcup-category] .wc-card {
  appearance: none;

  display: flex;
  align-items: center;

  width: 100%;
  min-width: 0;

  gap: 10px;

  padding: 14px;

  overflow: hidden;

  border: 1px solid var(--wc-border);
  border-radius: 18px;

  background: #fff;
  color: inherit;

  text-align: left;

  cursor: pointer;

  box-shadow:
    0 5px 18px
    rgba(15, 23, 42, 0.06);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

body[data-worldcup-category] .wc-card:hover {
  transform: translateY(-3px);

  border-color: var(--wc-orange);

  box-shadow:
    0 12px 28px
    rgba(249, 115, 22, 0.14);
}

body[data-worldcup-category] .wc-card:active {
  transform: scale(0.985);
}

body[data-worldcup-category] .wc-card:focus-visible {
  outline:
    3px solid
    rgba(249, 115, 22, 0.22);

  outline-offset: 3px;
}

body[data-worldcup-category] .wc-card:disabled {
  cursor: default;
}


/* =========================================================
   8. 음식 이미지 / 이모지
   ========================================================= */

body[data-worldcup-category] .wc-thumb {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  min-width: 48px;
  min-height: 48px;

  margin: 0;

  overflow: hidden;

  border-radius: 9px;

  background: var(--wc-orange-soft);

  font-size: 26px;
}

body[data-worldcup-category] .wc-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   9. 음식 이름 / 카테고리
   ========================================================= */

body[data-worldcup-category] .wc-card-copy {
  display: flex;

  flex: 1 1 0;

  min-width: 0;

  flex-direction: column;
  justify-content: center;

  gap: 4px;

  text-align: left;
}

body[data-worldcup-category] .wc-name {
  display: block;

  width: 100%;
  min-width: 0;

  margin: 0;

  color: var(--wc-orange-dark);

  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;

  /*
   * 음식명을 ...으로 생략하지 않음.
   * 공백이 있는 긴 메뉴는 공백 위치에서
   * 자연스럽게 다음 줄로 이동.
   */
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;

  overflow: visible;
  text-overflow: clip;

  writing-mode: horizontal-tb;
}

body[data-worldcup-category] .wc-meta {
  display: block;

  margin: 0;

  color: #8b95a1;

  font-size: 12px;
  line-height: 1.25;

  white-space: normal;
  word-break: keep-all;
}


/* =========================================================
   10. VS
   ========================================================= */

body[data-worldcup-category] .wc-vs {
  align-self: center;

  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  border-radius: 50%;

  background: var(--wc-orange);

  color: #fff;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;

  box-shadow:
    0 8px 20px
    rgba(249, 115, 22, 0.22);
}


/* =========================================================
   11. 전체 대진표 외곽
   ========================================================= */

body[data-worldcup-category] .wc-bracket {
  margin-top: 28px;

  padding: 0;

  overflow: hidden;

  border: 1px solid #eceff3;
  border-radius: 20px;

  background: #fff;

  box-shadow: none;
}

body[data-worldcup-category] .wc-bracket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 18px 20px;

  border-bottom: 1px solid #f0f2f5;
}

body[data-worldcup-category] .wc-bracket-header strong {
  color: var(--wc-text);

  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body[data-worldcup-category] .wc-bracket-header span {
  color: #8b95a1;

  font-size: 13px;

  white-space: nowrap;
}


/* =========================================================
   12. 대진표 스크롤 영역
   ========================================================= */

body[data-worldcup-category] .wc-bracket-viewport {
  position: relative;

  display: block;

  width: 100%;
  height: auto;
  min-height: 0;

  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 26px 18px 34px;

  overscroll-behavior-x: contain;

  scrollbar-width: thin;

  -webkit-overflow-scrolling: touch;
}


/* =========================================================
   13. 세로형 토너먼트 보드
   ========================================================= */

body[data-worldcup-category] .wc-bracket-board-vertical {
  position: relative;

  display: block;

  width: 1680px;
  min-width: 1680px;

  height: auto;
  min-height: 0;

  box-sizing: border-box;

  margin: 0;

  padding: 34px 18px 20px;

  transform: none;
}


/* =========================================================
   14. SVG 연결선
   ========================================================= */

body[data-worldcup-category] .wc-bracket-lines {
  position: absolute;

  inset: 0;

  z-index: 0;

  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  overflow: visible;

  pointer-events: none;
}

body[data-worldcup-category] .wc-bracket-line {
  fill: none;

  stroke: var(--wc-line);
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;
}

body[data-worldcup-category] .wc-bracket-line.is-advanced {
  stroke: var(--wc-orange);
  stroke-width: 3;
}


/* =========================================================
   15. 브래킷 라운드
   ========================================================= */

body[data-worldcup-category] .wc-bracket-levels {
  position: relative;

  z-index: 1;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: auto;
  min-height: 0;

  gap: 58px;

  margin: 0;
  padding: 0;

  transform: none;
}

body[data-worldcup-category] .wc-bracket-level {
  position: relative;

  display: block;

  width: 100%;
  height: auto;
  min-height: 0;

  margin: 0;
  padding: 0;
}

body[data-worldcup-category] .wc-bracket-round-label {
  margin-bottom: 12px;

  color: var(--wc-subtext);

  font-size: 13px;
  font-weight: 800;

  text-align: center;
}

body[data-worldcup-category]
  .wc-bracket-level[data-round-size="1"]
  .wc-bracket-round-label {
  color: var(--wc-orange-dark);

  font-size: 15px;
}


/* =========================================================
   16. 라운드별 슬롯 배치

   전체 기준 열은 16칸.
   16강 = 1칸씩
   8강  = 2칸씩
   4강  = 4칸씩
   결승 = 8칸씩
   우승 = 16칸
   ========================================================= */

body[data-worldcup-category] .wc-bracket-slots {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(
      16,
      minmax(0, 1fr)
    );

  align-items: center;

  width: 100%;
  height: auto;

  gap: 10px;

  margin: 0;
  padding: 0;

  transform: none;
}

body[data-worldcup-category] .wc-bracket-slot {
  display: flex;
  justify-content: center;

  min-width: 0;
}

body[data-worldcup-category]
  .wc-bracket-level[data-round-size="16"]
  .wc-bracket-slot {
  grid-column: span 1;
}

body[data-worldcup-category]
  .wc-bracket-level[data-round-size="8"]
  .wc-bracket-slot {
  grid-column: span 2;
}

body[data-worldcup-category]
  .wc-bracket-level[data-round-size="4"]
  .wc-bracket-slot {
  grid-column: span 4;
}

body[data-worldcup-category]
  .wc-bracket-level[data-round-size="2"]
  .wc-bracket-slot {
  grid-column: span 8;
}

body[data-worldcup-category]
  .wc-bracket-level[data-round-size="1"]
  .wc-bracket-slot {
  grid-column: span 16;
}


/* =========================================================
   17. 브래킷 음식 카드
   ========================================================= */

body[data-worldcup-category] .wc-bracket-node {
  position: relative;

  display: flex;
  align-items: center;

  gap: 7px;

  width: min(100%, 104px);
  min-height: 48px;

  box-sizing: border-box;

  padding: 7px 9px;

  border: 1px solid var(--wc-border);
  border-radius: 10px;

  background: #fff;
  color: #344054;

  box-shadow:
    0 3px 9px
    rgba(15, 23, 42, 0.05);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}


/* =========================================================
   18. 브래킷 작은 이미지
   ========================================================= */

body[data-worldcup-category] .wc-bracket-node-visual {
  display: grid;
  place-items: center;

  flex: 0 0 24px;

  width: 24px;
  height: 24px;

  overflow: hidden;

  border-radius: 6px;

  background: var(--wc-orange-soft);

  font-size: 15px;
}

body[data-worldcup-category] .wc-bracket-node-visual img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   19. 브래킷 음식 이름

   생략(...) 하지 않음.
   ========================================================= */

body[data-worldcup-category] .wc-bracket-node-name {
  min-width: 0;

  color: inherit;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;

  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;

  overflow: visible;
  text-overflow: clip;

  writing-mode: horizontal-tb;
}


/* =========================================================
   20. 브래킷 상태
   ========================================================= */

/* 아직 진출자가 없는 슬롯 */
body[data-worldcup-category] .wc-bracket-node.is-empty {
  justify-content: center;

  border-style: dashed;
  border-color: #d9dee5;

  background: var(--wc-empty);
  color: #b0b8c1;

  box-shadow: none;

  font-size: 11px;
  font-weight: 700;
}


/* 현재 대결 */
body[data-worldcup-category] .wc-bracket-node.is-current {
  z-index: 2;

  transform: translateY(-2px);

  border: 2px solid var(--wc-orange);

  box-shadow:
    0 7px 18px
    rgba(249, 115, 22, 0.18);
}


/* 승자 */
body[data-worldcup-category] .wc-bracket-node.is-winner {
  border-color: var(--wc-orange);

  background: var(--wc-orange-soft);
  color: var(--wc-orange-dark);
}


/* 패자 */
body[data-worldcup-category] .wc-bracket-node.is-loser {
  opacity: 0.3;

  filter: grayscale(0.55);
}


/* 우승자 */
body[data-worldcup-category] .wc-bracket-node.is-champion {
  width: 150px;
  min-height: 58px;

  border-width: 2px;
  border-radius: 14px;

  box-shadow:
    0 10px 26px
    rgba(249, 115, 22, 0.18);
}

body[data-worldcup-category]
  .wc-bracket-node.is-champion::before {
  content: "🏆";

  position: absolute;

  left: 50%;
  bottom: calc(100% + 5px);

  transform: translateX(-50%);

  font-size: 22px;
}


/* =========================================================
   21. 브래킷 스크롤 안내
   ========================================================= */

body[data-worldcup-category] .wc-bracket-scroll-hint {
  display: none;

  margin: -10px 0 15px;
  padding: 0 16px;

  color: var(--wc-muted);

  font-size: 11px;

  text-align: center;
}


/* =========================================================
   22. 결과 화면
   ========================================================= */

body[data-worldcup-category] .wc-result-content {
  padding: 30px 20px;

  text-align: center;
}

body[data-worldcup-category] .wc-result-trophy {
  font-size: 52px;
}

body[data-worldcup-category] .wc-result-label,
body[data-worldcup-category] .wc-result-runner-up {
  color: var(--wc-subtext);
}

body[data-worldcup-category] .wc-result-winner {
  margin: 8px 0 12px;

  color: var(--wc-orange-dark);

  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
}

body[data-worldcup-category] .wc-result-top-four {
  max-width: 680px;

  margin: 22px auto 0;
  padding: 16px;

  border-radius: 14px;

  background: #f8fafc;
}

body[data-worldcup-category] .wc-result-top-four p {
  margin-bottom: 0;

  color: var(--wc-subtext);
}

body[data-worldcup-category] .wc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 10px;

  margin-top: 24px;
}


/* =========================================================
   23. 결과 버튼
   월드컵 페이지에만 적용
   ========================================================= */

body[data-worldcup-category] .button-primary {
  padding: 12px 14px;

  border: 0;
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--wc-main),
      var(--wc-strong)
    );

  color: #fff;

  font-weight: 900;

  cursor: pointer;
}

body[data-worldcup-category] .button-ghost {
  padding: 10px 12px;

  border:
    1px solid
    rgba(0, 0, 0, 0.08);

  border-radius: 12px;

  background: #fff;

  cursor: pointer;
}


/* =========================================================
   24. 오류
   ========================================================= */

body[data-worldcup-category] .wc-error {
  margin-bottom: 16px;

  color: #b42318;

  font-weight: 700;
}


/* =========================================================
   25. 모바일 - 목록 페이지
   ========================================================= */

@media (max-width: 520px) {
  .worldcup-list-page {
    padding: 36px 16px 60px;
  }

  .worldcup-list-header {
    margin-bottom: 24px;
  }

  .worldcup-category-item {
    min-height: 94px;

    padding: 16px;

    border-radius: 18px;
  }

  .worldcup-category-icon {
    flex-basis: 48px;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    font-size: 23px;
  }

  .worldcup-category-copy strong {
    font-size: 17px;
  }

  .worldcup-category-copy span {
    font-size: 13px;
  }
}


/* =========================================================
   26. 모바일 - 게임 페이지
   ========================================================= */

@media (max-width: 700px) {

  /* -----------------------------------------
     기본 페이지
     ----------------------------------------- */

  .worldcup-page {
    padding: 20px 16px 60px;
  }

  .worldcup-nav {
    margin-bottom: 28px;
  }

  .worldcup-header {
    margin-bottom: 22px;
  }

  .worldcup-header .title {
    font-size: clamp(34px, 11vw, 48px);
  }


  /* -----------------------------------------
     현재 대결 박스
     ----------------------------------------- */

  body[data-worldcup-category] #tournament {
    margin-bottom: 20px;

    padding: 16px;

    border-radius: 18px;
  }


  /* -----------------------------------------
     진행률
     ----------------------------------------- */

  body[data-worldcup-category] .wc-progress {
    margin-bottom: 16px;
  }

  body[data-worldcup-category] .wc-progress-top {
    gap: 7px;

    font-size: 12px;
  }

  body[data-worldcup-category] .wc-round-label {
    font-size: 14px;
  }


  /* -----------------------------------------
     대결 레이아웃
     ----------------------------------------- */

  body[data-worldcup-category] .wc-match {
    grid-template-columns:
      minmax(0, 1fr)
      38px
      minmax(0, 1fr);

    gap: 8px;
  }


  /* -----------------------------------------
     음식 선택 카드
     ----------------------------------------- */

  body[data-worldcup-category] .wc-card {
    gap: 8px;

    padding: 11px 10px;

    border-radius: 14px;
  }


  /* 이미지 */
  body[data-worldcup-category] .wc-thumb {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    min-width: 40px;
    min-height: 40px;

    border-radius: 8px;

    font-size: 23px;
  }


  /* 음식 이름 */
  body[data-worldcup-category] .wc-name {
    font-size: 14px;
    line-height: 1.3;
  }

  body[data-worldcup-category] .wc-meta {
    font-size: 11px;
  }


  /* VS */
  body[data-worldcup-category] .wc-vs {
    width: 38px;
    height: 38px;

    font-size: 12px;
  }


  /* -----------------------------------------
     브래킷
     ----------------------------------------- */

  body[data-worldcup-category] .wc-bracket {
    margin-top: 20px;

    border-radius: 16px;
  }

  body[data-worldcup-category] .wc-bracket-header {
    padding: 15px 14px;
  }

  body[data-worldcup-category] .wc-bracket-header strong {
    font-size: 16px;
  }

  body[data-worldcup-category] .wc-bracket-viewport {
    padding: 24px 10px 28px;
  }

  body[data-worldcup-category] .wc-bracket-board-vertical {
    width: 1500px;
    min-width: 1500px;

    padding:
      34px
      12px
      20px;
  }

  body[data-worldcup-category] .wc-bracket-levels {
    gap: 52px;
  }


  /* -----------------------------------------
     브래킷 카드
     ----------------------------------------- */

  body[data-worldcup-category] .wc-bracket-node {
    width: min(100%, 88px);

    min-height: 44px;

    padding: 6px;

    gap: 5px;
  }

  body[data-worldcup-category] .wc-bracket-node-visual {
    flex-basis: 22px;

    width: 22px;
    height: 22px;

    font-size: 14px;
  }

  body[data-worldcup-category] .wc-bracket-node-name {
    font-size: 10px;
    line-height: 1.2;
  }

  body[data-worldcup-category] .wc-bracket-node.is-champion {
    width: 132px;
  }


  /* -----------------------------------------
     스크롤 안내
     ----------------------------------------- */

  body[data-worldcup-category] .wc-bracket-scroll-hint {
    display: block;
  }
}

/* =========================================================
   월드컵 목록 페이지 상단 네비게이션
   ========================================================= */

.worldcup-list-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin-bottom: 42px;
}

.worldcup-list-nav a {
  color: #6b7280;

  font-size: 14px;
  font-weight: 800;

  text-decoration: none;

  transition: color 0.18s ease;
}

.worldcup-list-nav a:hover {
  color: var(--wc-strong);
}

.worldcup-list-nav a:focus-visible {
  outline: 3px solid rgba(255, 138, 91, 0.2);
  outline-offset: 4px;

  border-radius: 6px;
}

@media (max-width: 520px) {
  .worldcup-list-nav {
    margin-bottom: 32px;
  }
}
/* =========================================================
   대진표 높이 제한 + 결과 화면 자동 이동 여백
   ========================================================= */

body[data-worldcup-category] #result {
  scroll-margin-top: 24px;
}

/* PC */
body[data-worldcup-category] .wc-bracket-viewport {
  height: 400px;

  overflow-x: auto;
  overflow-y: auto;

  overscroll-behavior: contain;
  scrollbar-width: thin;

  -webkit-overflow-scrolling: touch;
}

/* 모바일 */
@media (max-width: 768px) {
  body[data-worldcup-category] .wc-bracket-viewport {
    height: 360px;
  }
}