/* 축구 게임 공통 키트: 토큰 + 브라우저 기본기. 규칙은 프로젝트 루트 DESIGN.md 참고.
   페이지 고유 스타일보다 먼저 불러온다. */
:root {
  --bg: #fff6ec; --panel: #ffffff; --panel2: #fff0dc; --border: #ffd9a8;
  --text: #4a3b31; --muted: #86644a;
  --accent: #ff8fab; --accent-strong: #e94a7a; --accent-ink: #c93465;
  --accent2: #35c4a1; --accent2-strong: #18997a; --accent2-ink: #137a61;
  --danger: #ff6b6b; --danger-ink: #c8323a; --warn: #ffb545;
  --focus: #4f7cf0;
  --font-display: 'Jua', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ledge: 0 4px 0;
  --float-shadow: 0 10px 30px rgba(74, 59, 49, .18);
}

html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }

::selection { background: #ffd1dd; color: var(--text); }

/* 키보드로 옮겨 다닐 때만 보이는 포커스 링 */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

/* 스크롤바도 테마 색으로 */
* { scrollbar-color: var(--border) transparent; }

/* 공통 홈 가기 링크 */
.fs-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 2px;
  color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border-radius: 999px; background: none; border: none; cursor: pointer; font-family: inherit;
}
.fs-back:hover { color: var(--text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
