/* ===================================================================
   競艇データ 전용 — 사이트 색만 둔다
   원본: ~/design/systems/family-a/tokens.json (sets.kyotei)

   골격·조판·부품은 전부 css/family.css 에 있다(4사이트 공통, 복사해 쓴다).
   **이 파일에는 사이트 색 변수만 둔다.** 다른 것을 여기 넣으면 4곳의
   골격이 갈라진다. 사이트 색이 바뀌어도 이 파일만 고치면 된다.

   青緑 #0f6670 — 물·바다. 흰 글자 대비 6.6:1.
   =================================================================== */
:root {
  --brand: #0f6670;
  --brand-hover: #0b525a;
  --brand-tint: #e7f2f3;
  --on-brand: #ffffff;
  /* 速報板 위의 라벨 글자 = 사이트 색의 밝은 단계(명세 1절) */
  --board-brand: #6cc3c9;
}

html[data-theme="dark"] {
  --brand: #6cc3c9;
  --brand-hover: #8ad1d6;
  --brand-tint: #16282b;
  --on-brand: #0b1a1c;
  --board-brand: #6cc3c9;
}

/* ── 艇色 코스 칩 (도메인 고정색, 명세 5절) ─────────────────────── */
/* 1白 2黒 3赤 4青 5黄 6緑. 코스 번호 표시에만 쓰고 장식에 빌려 쓰지 않는다.
   이 칩은 競艇 고유라 family.css(4곳 공통)가 아니라 여기 있다.

   테두리(링): 1白은 라이트 바탕에서, 2黒은 다크 바탕에서 칩 경계가
   사라진다(2黒 대 다크 바탕 1.03). ロト 공과 같은 방식으로 안쪽 1px 링을
   두른다 — 12-05 검수.
   6緑은 12-05 에 한 단 어둡게 내렸다(#2d873c). 흰 글자 4.30 → 4.52(AA).
   24×24 칩의 14px 700 은 WCAG 「큰 글자」 완화를 못 받는다. */
:root { --ball-ring: rgba(29, 35, 40, .35); }
html[data-theme="dark"] { --ball-ring: rgba(255, 255, 255, .45); }

.lane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--ball-ring);
}
.lane-1 { background: #ffffff; color: #111111; }
.lane-2 { background: #1d1d1d; color: #ffffff; }
.lane-3 { background: #d32f2f; color: #ffffff; }
.lane-4 { background: #1e5fc1; color: #ffffff; }
.lane-5 { background: #f2c200; color: #111111; }
.lane-6 { background: #2d873c; color: #ffffff; }

/* 착순 분포 띠의 조각·범례도 같은 艇色이다 */
.stack-seg.s1 { background: #ffffff; box-shadow: inset 0 0 0 1px var(--ball-ring); }
.stack-seg.s2 { background: #1d1d1d; }
.stack-seg.s3 { background: #d32f2f; }
.stack-seg.s4 { background: #1e5fc1; }
.stack-seg.s5 { background: #f2c200; }
.stack-seg.s6 { background: #2d873c; }

.stack-legend .seg-key.s1 { background: #ffffff; border-color: #9aa0a6; }
.stack-legend .seg-key.s2 { background: #1d1d1d; }
.stack-legend .seg-key.s3 { background: #d32f2f; }
.stack-legend .seg-key.s4 { background: #1e5fc1; }
.stack-legend .seg-key.s5 { background: #f2c200; }
.stack-legend .seg-key.s6 { background: #2d873c; }

/* ── 급별 라벨 ─────────────────────────────────────────────────── */
/* 예전에는 옅은 청록 알약에 흰 글자였다(대비 2.39~3.51, R-8 FAIL).
   바탕을 없애고 글자만 남긴다. 급을 색 농도로 나누지 않는다(명세 1절). */
.grade {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
