/* 멀리간 — 휴대폰 한 줄 (SPEC §10.4). 기준 폭 360~430px, PC에서도 가운데 최대 480px.
   스코어카드 느낌(가는 괘선, 칸, 표 같은 정렬) + 큰 글씨·큰 버튼.
   색은 전부 아래 토큰으로만 쓴다. :root = 밝은 화면, 어두운 화면은 토큰만 다시 정의한다.
   크기 단계: 14 / 16 / 18 / 22 / 32px (본문 16px 이상, 입력 칸 16px 이상). 웹폰트 없음. */

:root {
  color-scheme: light dark;
  --bg: #F3F5F1;
  --surface: #FFFFFF;
  --ink: #17251E;
  --muted: #5B6B62;
  --line: #D5DDD6;
  --fairway: #1E5A3C;
  --on-fairway: #FFFFFF;
  --flag: #C8402F;
  --female: #7A4BB5; /* 명부 이름표의 '여' 표시. 빨강 계열 아님(오류색 --danger와 헷갈리지 않게) */
  --danger: #B42318;
  --warn: #8A5A00;
  --board: #0F3B28;
  --plate: #F7F5EC;
  --plate-ink: #17251E;

  /* 파3 장면 색(SPEC §12.2): 밝은 화면은 한낮, 어두운 화면은 저녁 */
  --scene-rough: #4C9A5C;
  --scene-fair-a: #7BC179;
  --scene-fair-b: #6DB36D;
  --scene-fringe: #8FD18C;
  --scene-green: #A8E394;
  --scene-sand: #EADBA4;
  --scene-tee: #3F8057;
  --scene-tree: #2D7444;
  --ball: #FFFFFF;
  --ball-edge: #AEB8B1;

  --fs-s: 14px;
  --fs-b: 16px;
  --fs-m: 18px;
  --fs-l: 22px;
  --fs-xl: 32px;

  /* 입력 칸 테두리: 괘선(--line)보다 진하게, 토큰을 섞어서 만든다 */
  --field-line: color-mix(in srgb, var(--muted) 55%, var(--surface));
  --font: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --radius: 12px;
  --tap: 48px; /* 엄지로 누르는 칸의 최소 높이 */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1713;
    --surface: #15221B;
    --ink: #E6EEE8;
    --muted: #9BB0A3;
    --line: #253A2E;
    --fairway: #3E9A6A;
    --on-fairway: #07130D;
    --flag: #E0644F;
    --female: #C9A7F5;
    --danger: #F97066;
    --warn: #E3B341;
    --board: #0F3B28;
    --plate: #F7F5EC;
    --plate-ink: #17251E;
    --scene-rough: #1A4531;
    --scene-fair-a: #296A46;
    --scene-fair-b: #235D3E;
    --scene-fringe: #377E59;
    --scene-green: #409263;
    --scene-sand: #B5A367;
    --scene-tee: #143626;
    --scene-tree: #11331F;
    --ball: #F4F7F2;
    --ball-edge: #8DA094;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

/* 화면 양옆(PC에서 휴대폰 폭 밖)은 바탕을 조금 어둡게 해서 가운데 한 줄이 보이게 한다 */
html { background: color-mix(in srgb, var(--ink) 9%, var(--bg)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: calc(var(--bar-h, 0px) + 16px); /* 포커스·스크롤로 칸을 보여 줄 때 아래 고정 띠에 가리지 않게 */ }

body {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-b)/1.6 var(--font);
  word-break: keep-all; /* 한글은 낱말 단위로 줄을 바꾼다 */
  overflow-wrap: anywhere; /* 아주 긴 글자 덩어리만 중간에서 끊는다 */
}
@media (min-width: 481px) {
  body { border-inline: 1px solid var(--line); }
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; }
ul { padding: 0; list-style: none; }
a { color: var(--fairway); text-underline-offset: 3px; }
strong, b { font-weight: 700; }
small { font-size: var(--fs-s); }

:focus-visible { outline: 3px solid var(--fairway); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.muted { color: var(--muted); font-size: var(--fs-b); }
.noscript { padding: 16px; text-align: center; color: var(--danger); font-weight: 700; }

/* 모드 전환: 메인 / 공유 */
.only-shared { display: none; }
html[data-share] .only-main { display: none; }
html[data-share] .only-shared { display: block; }
body[data-mode="shared"] .only-main { display: none; }
body[data-mode="shared"] .only-shared { display: block; }
body[data-mode="main"] .only-shared { display: none; }

/* ───────── 머리 · 바닥 ───────── */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); text-decoration: none; font-size: var(--fs-m); font-weight: 800; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--flag); flex: none; }
.head-nav { display: flex; gap: 2px; margin-right: -8px; }
.head-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; color: var(--muted); text-decoration: none; font-size: var(--fs-b); }

.site-foot { margin-top: 40px; padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-s); }
.site-foot p + p { margin-top: 4px; }
.site-foot a { color: var(--muted); }

/* ───────── 제목 · 소개 ───────── */
.page-title { margin-top: 16px; font-size: var(--fs-l); font-weight: 800; }

/* ───────── 첫 화면 덩어리 (상자 없이, 제목 + 내용) ───────── */
.block { margin-top: 16px; }
.h-block { margin-bottom: 8px; font-size: var(--fs-m); font-weight: 800; }
.opt-label { color: var(--muted); font-size: var(--fs-s); font-weight: 400; }
.h-small { font-size: var(--fs-b); font-weight: 700; }

/* ───────── 입력 ───────── */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 0; margin-top: 12px; }
.field-row { display: flex; gap: 0 12px; }
.field-row + .field-row, .field-row + .toggle { margin-top: 12px; }
.field label { font-size: var(--fs-b); font-weight: 700; }

/* 입력 글자는 16px 이상(작으면 아이폰이 화면을 확대한다) */
input[type="text"], input[type="number"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; min-width: 0;
  min-height: var(--tap);
  padding: 0 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--field-line); border-radius: 10px;
  font: 400 var(--fs-m)/1.4 var(--font);
}
textarea { min-height: 124px; padding: 12px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:disabled, select:disabled { opacity: .6; }
input[type="checkbox"] { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--fairway); }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 10px 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--field-line); border-radius: 12px;
  font: 700 var(--fs-m)/1.25 var(--font); text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--fairway); border-color: var(--fairway); color: var(--on-fairway); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn-small { min-height: var(--tap); padding: 8px 14px; font-size: var(--fs-b); }
.btn-lg { min-height: 56px; font-size: var(--fs-m); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 8px; background: none; border: 0; color: var(--fairway); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* 연타해도 확대되지 않게(iOS 더블탭 확대): 버튼·링크·이름표·세그먼트·펼침 제목은 두 번 눌러도 확대하지 않는다. (연출 장면 .anim-scene만 none) */
button, a, label, summary, select, input { touch-action: manipulation; }

/* ───────── 오늘 올 사람 · 이름표(회원 명부, SPEC §11.1) ───────── */
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today-head .h-block { margin-bottom: 0; }
.today-head .h-block:focus { outline: none; }
.mini-btns { display: flex; margin-right: -8px; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.count { font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
.count-label { font-weight: 400; }
.count-gender { color: var(--muted); font-weight: 400; }
.confirm { margin-top: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.confirm .btn-row { margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips:empty { display: none; }
.chips > li { min-width: 0; max-width: 100%; } /* 이름이 20자·소속이 길어도 줄 폭 안(이름표 안의 이름·소속이 말줄임) */
.name-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; min-height: var(--tap); padding: 0 14px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--field-line); border-radius: 999px;
  font: 700 var(--fs-b)/1.2 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.name-chip .chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 선택됨 = 초록 채움, 안 됨 = 테두리만 */
button.name-chip[aria-pressed="true"] { background: var(--fairway); border-color: var(--fairway); color: var(--on-fairway); }
.chip-meta { flex: 0 8 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: var(--fs-s); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
button.name-chip[aria-pressed="true"] .chip-meta { color: color-mix(in srgb, var(--on-fairway) 82%, var(--fairway)); }
/* 여자만 이름 옆에 작은 '여'. 채운 이름표 위에서도 보이게 바탕은 면(--surface) */
.chip-f {
  display: inline-grid; place-items: center; flex: none; min-width: 22px; height: 22px; padding: 0 4px;
  background: var(--surface); border: 1px solid var(--female); border-radius: 4px;
  color: var(--female); font-size: var(--fs-s); font-weight: 800; line-height: 1;
}
.name-chip.is-error { outline: 3px solid var(--danger); outline-offset: 1px; }
/* 편집 중: 이름표 안에 [남|여] 전환과 ✕ 지우기. 칸은 모두 48px */
.name-chip.is-edit { gap: 0; height: var(--tap); padding: 0 0 0 14px; border: 0; box-shadow: inset 0 0 0 1px var(--field-line); background: var(--surface); cursor: default; overflow: hidden; }
.name-chip.is-edit .chip-name { margin-right: 8px; }
.name-chip.is-edit .chip-meta { margin-right: 8px; }
.chip-gender { display: inline-flex; flex: none; height: var(--tap); padding: 0 2px; border-left: 1px solid var(--line); }
.chip-g, .chip-remove {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: var(--tap); padding: 0; background: none; border: 0;
  color: var(--muted); font: 800 var(--fs-b)/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.chip-g { width: var(--tap); } /* 남|여 두 칸 각각이 48px 칸. 누른 쪽 값으로 정한다 */
.chip-g span { display: inline-grid; place-items: center; min-width: 34px; height: 32px; border-radius: 8px; }
.chip-g[aria-pressed="true"] span { background: var(--ink); color: var(--bg); }
.name-chip[data-g="f"] .chip-g[aria-pressed="true"] span { background: var(--female); color: var(--surface); }
.chip-remove { width: var(--tap); border-left: 1px solid var(--line); }
.chips-hint { margin-top: 8px; font-size: var(--fs-s); }
.chips-hint:empty { display: none; }

.notice-list { margin-top: 8px; color: var(--warn); font-size: var(--fs-b); }
.notice-list li { position: relative; padding-left: 18px; }
.notice-list li::before { content: "!"; position: absolute; left: 4px; font-weight: 800; }
.notice-list:empty { display: none; }
.notice { margin-bottom: 8px; color: var(--warn); font-weight: 700; }

/* ───────── 사람 추가 · 카톡 명단 붙여넣기 ───────── */
/* 첫 실행 카드: 명부가 비었을 때 사람 추가 줄 위에 "우리 모임 등록하기"와 한 줄 (SPEC §13) */
.empty-card { margin-bottom: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-card .muted { margin-top: 8px; text-align: center; text-wrap: balance; }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: stretch; }
.add-row input[type="text"] { min-width: 0; }
.seg.seg-2 { grid-template-columns: repeat(2, 48px); }
.seg.seg-2 .seg-opt span { min-height: var(--tap); font-size: var(--fs-b); }
.add-row .btn { padding: 0 16px; }
.storage-note { margin-top: 8px; font-size: var(--fs-s); color: var(--warn); }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; }
#paste-toggle { padding: 0 16px; font-size: var(--fs-b); } /* 테두리 버튼(48px 이상). 글자 링크가 아니다 */
.link-row .link-btn { margin-left: -4px; }
.paste-panel { margin-top: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.paste-panel textarea { min-height: 140px; }
.paste-count { margin-top: 8px; font-size: var(--fs-s); }
.paste-count:empty { display: none; }
.paste-panel .btn-row { align-items: center; margin-top: 8px; }

/* ───────── 몇 인 플레이 (세그먼트) ───────── */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--field-line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg-opt { position: relative; display: block; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--field-line); }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: grid; place-items: center; min-height: 56px; font: 800 var(--fs-m)/1 var(--font); -webkit-tap-highlight-color: transparent; }
.seg-opt input:checked + span { background: var(--fairway); color: var(--on-fairway); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: -6px; }
.mix-line { margin-top: 8px; color: var(--muted); font-size: var(--fs-b); }
.play-manual { margin-top: 4px; }
.play-manual .muted { font-size: var(--fs-s); }
.play-manual .link-btn { margin-left: -8px; }
#k-auto { margin-left: -8px; }

/* ───────── 조 수 스테퍼(세부 설정 안) ───────── */
.stepper-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--field-line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper-btn { width: 56px; min-height: 56px; background: none; border: 0; color: var(--ink); font: 700 var(--fs-l)/1 var(--font); cursor: pointer; }
.stepper-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper input {
  width: 72px; min-height: 56px; padding: 0; border: 0; border-inline: 1px solid var(--line); border-radius: 0;
  text-align: center; font: 800 var(--fs-xl)/1 var(--font); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dist { font-size: var(--fs-b); font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper-row + .muted { margin-top: 8px; font-size: var(--fs-s); }

/* ───────── 추첨 · 오류 ───────── */
/* 오류 칸은 아래 고정 띠에 가리지 않게 스크롤 여백을 둔다 */
.error {
  margin-top: 12px; scroll-margin-bottom: calc(var(--bar-h, 0px) + 16px); padding: 12px 16px;
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  border: 1px solid var(--danger); border-radius: 10px;
  color: var(--danger); font-weight: 700;
}

/* ───────── 아래 고정 띠: 조 수 줄 + 조 추첨하기 (SPEC §11.2) ───────── */
/* 본문 아래에 띠 높이만큼 여백(--bar-h는 app.js가 띠 높이로 맞춘다). 키보드가 올라와도 띠를 숨기지 않는다:
   visualViewport가 있으면 app.js가 --kb(키보드가 가린 높이)를 넣어 띠를 키보드 바로 위에 붙인다. 없는 브라우저는 그대로 맨 아래. */
body[data-mode="main"] { padding-bottom: var(--bar-h, 88px); }
.draw-bar { position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 10; pointer-events: none; }
.draw-bar[data-kb] .draw-bar-inner { padding-bottom: 10px; } /* 키보드 위에서는 홈 막대 여백이 필요 없다 */
.draw-bar-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  max-width: 480px; margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px color-mix(in srgb, var(--ink) 8%, transparent);
}
.bar-text { flex: 1 1 auto; min-width: 0; }
.bar-summary { font-size: var(--fs-b); font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; }
.bar-note { margin-top: 2px; color: var(--warn); font-size: var(--fs-s); font-weight: 700; }
.draw-bar .btn { flex: none; min-width: 132px; padding: 0 20px; }
.draw-bar[data-stale] .btn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 45%, transparent); }

/* ───────── 세부 설정 (<details>, 기본 접힘) ───────── */
.settings { margin-top: 12px; }
.settings > summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 4px;
  border-top: 1px solid var(--line);
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin: 0 4px 4px 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.settings[open] > summary::after { margin: 4px 4px 0 0; transform: rotate(-135deg); }
.sum-title { flex: none; font-size: var(--fs-m); font-weight: 800; }
.settings[open] .sum-hint { display: none; }
.settings[open] .sum-title { flex: 1 1 auto; }
.sum-hint { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--muted); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.settings-body { padding: 4px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.set-group { padding-top: 16px; }
.set-group + .set-group { margin-top: 16px; border-top: 1px solid var(--line); }
.set-group > .h-small { margin-bottom: 4px; }
.set-group > .field:first-of-type { margin-top: 4px; }

.more { margin-top: 16px; border-top: 1px solid var(--line); }
.more > summary {
  display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin: 0 4px 4px 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.more[open] > summary::after { margin: 4px 4px 0 0; transform: rotate(-135deg); }
.more > summary .sum-title { font-size: var(--fs-b); }
.more[open] .sum-hint { display: none; }
.more[open] > summary .sum-title { flex: 1 1 auto; }
.more-body > .set-group:first-child { padding-top: 4px; }
.opt { border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; }
.toggle { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 12px 0; cursor: pointer; }
.toggle input { margin-top: 2px; }
.toggle-text { display: flex; flex-direction: column; min-width: 0; }
.toggle-text b { font-size: var(--fs-b); line-height: 1.4; }
.toggle-text small { color: var(--muted); font-size: var(--fs-s); line-height: 1.5; }
.toggle-inline { padding-top: 16px; }
.opt-panel { margin: 0 0 16px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.opt-panel .btn { margin-top: 8px; }
.preview { margin-top: 10px; color: var(--ink); font-size: var(--fs-b); font-variant-numeric: tabular-nums; }
.preview::before { content: "미리보기  "; color: var(--muted); font-size: var(--fs-s); }
.opt-panel > .preview:first-child { margin-top: 0; }
.preview.is-warn { color: var(--warn); font-weight: 700; }
.opt-panel > .muted { margin-top: 12px; font-size: var(--fs-s); }

.rows { display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: flex; align-items: center; gap: 6px; }
.rule-row .sel { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.rule-row .sel-group { flex: 0 0 88px; }
.rule-row-apart { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) var(--tap); }
.rule-arrow { color: var(--muted); font-size: var(--fs-m); font-weight: 700; }
.rule-block { padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.rule-block .chips { margin-top: 0; margin-bottom: 8px; }
.rule-block .chips li.muted { font-size: var(--fs-s); }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); background: none; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font: 700 var(--fs-l)/1 var(--font); cursor: pointer; }
/* 묶기 줄의 이름 칩(눌러서 빼는 작은 칩) */
.chip {
  display: inline-flex; align-items: center; gap: 0;
  max-width: 100%; min-height: var(--tap); padding: 0 0 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--fairway); border-radius: 6px;
  font-size: var(--fs-b);
}
.chip-name { font-weight: 700; }
.chip-x.icon-btn { width: 44px; height: var(--tap); font-size: var(--fs-m); }
.opt-panel .field { margin-top: 0; }

.banner { padding: 12px 16px; border: 1px solid; border-radius: 10px; font-weight: 700; }
.banner-danger { margin-top: 24px; border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }
.banner-danger .page-title { margin-top: 0; }
.banner-danger .muted { margin-top: 8px; font-weight: 400; }

/* ───────── 결과 (카드 1열) ───────── */
.result { margin-top: 28px; }
.result > h2, .result-meta { scroll-margin-top: 12px; }
.result > h2 { font-size: var(--fs-l); font-weight: 800; }
.result > h2:focus { outline: none; }
.result-meta { margin-top: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.result-meta span { display: block; }
.summary { margin: 0 0 14px; }
.summary-line { font-size: var(--fs-b); font-variant-numeric: tabular-nums; }
.summary-line + .summary-line { margin-top: 4px; }
.summary-line strong.ok { color: var(--fairway); }
.summary-line strong.some { color: var(--warn); }
.summary:empty { display: none; }

.group-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.group-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 2px solid var(--ink); }
.group-no { display: flex; align-items: baseline; gap: 4px; }
.group-no .num { font-size: var(--fs-xl); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.group-no .unit { font-size: var(--fs-m); font-weight: 700; }
.group-tee { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.group-tee .time { font-size: var(--fs-m); font-weight: 800; font-variant-numeric: tabular-nums; }
.group-tee .course { color: var(--muted); font-size: var(--fs-s); font-weight: 700; letter-spacing: .04em; }
.people { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 16px; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person > .avatar { width: 28px; height: 26px; border-radius: 6px; } /* 조 카드 이름 앞 얼굴(연출 계획의 캐릭터). 순위표 얼굴(.avatar)보다 작다 */
.p-main { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.p-name { font-size: var(--fs-m); font-weight: 700; }
.badge-f { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid var(--female); border-radius: 4px; color: var(--female); font-size: var(--fs-s); font-weight: 800; line-height: 1; }
.badge-aff { padding: 0 8px; border: 1px solid var(--field-line); border-radius: 999px; color: var(--muted); font-size: var(--fs-s); line-height: 22px; }
.p-hcp { flex: none; min-width: 3.4ch; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.p-tier {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 3px;
  font-size: var(--fs-s); font-weight: 800; line-height: 1;
}
.p-tier[data-t="0"] { background: var(--fairway); border-color: var(--fairway); color: var(--on-fairway); }
.p-tier[data-t="1"] { background: color-mix(in srgb, var(--fairway) 55%, var(--surface)); }
.p-tier[data-t="2"] { background: color-mix(in srgb, var(--fairway) 30%, var(--surface)); }
.p-tier[data-t="3"], .p-tier[data-t="4"] { background: color-mix(in srgb, var(--fairway) 14%, var(--surface)); }
.p-tier[data-t="none"] { border-style: dashed; border-color: var(--field-line); color: var(--muted); }

/* 결과 제목 바로 아래 버튼: 카톡용 글 복사(폭 가득, 초록) → 링크 보내기. 바뀐 뒤에는 둘 다 '옛 결과' 표시 */
.actions { display: grid; gap: 14px; margin: 12px 0 14px; }
.actions .btn { gap: 10px; }
.act-note { margin-top: 4px; color: var(--muted); font-size: var(--fs-s); line-height: 1.5; text-align: center; } /* 버튼 바로 아래 한 줄 설명 */
.stale-tag {
  flex: none; padding: 0 8px; background: var(--surface); border: 1px solid var(--warn); border-radius: 999px;
  color: var(--warn); font-size: var(--fs-s); font-weight: 800; line-height: 22px;
}
/* 조 카드 아래 다시 추첨: 글씨는 '다시 추첨' 하나 */
.btn-redo { min-height: 56px; margin-top: 16px; font-weight: 800; }
/* 옛 결과(추첨 뒤 명단·옵션이 바뀐 상태): 조 카드 위의 --warn 띠, 보내기 전 확인 단계 */
.stale-banner {
  margin: 0 0 14px; padding: 10px 14px;
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  border: 1px solid var(--warn); border-radius: 10px;
  color: var(--warn); font-weight: 700;
}
.stale-confirm { margin: 0 0 14px; border-color: var(--warn); }
/* 다시 추첨 확인 단계(화면 안). 결과 아래에서는 버튼 자리에, 아래 고정 띠에서 눌렀을 때는 띠 안에 뜬다 */
.redo-confirm { margin-top: 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.redo-confirm p { font-weight: 700; }
.redo-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.redo-btns .btn { min-height: var(--tap); }
.draw-bar-inner .redo-confirm { flex: 1 1 auto; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.draw-bar-inner .redo-btns { margin-top: 8px; }
.draw-bar-inner.is-confirm .bar-text, .draw-bar-inner.is-confirm #draw { display: none; }

/* ───────── 소개 글 · 광고 칸 ───────── */
.about { margin-top: 40px; }
.about p { color: var(--muted); font-size: var(--fs-s); line-height: 1.7; }
.ad-slot { display: block; margin-block: 32px; text-align: center; }
.ad-slot[hidden] { display: none !important; }

/* ───────── 공유 화면 (같은 폭) ───────── */
#shared .page-title:focus { outline: none; }
.cta { margin-top: 28px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--fairway); border-radius: var(--radius); }
.cta h2 { font-size: var(--fs-l); font-weight: 800; }
.cta p { margin-top: 4px; color: var(--muted); }
.cta .btn { margin-top: 16px; }
.cta .cta-sub { margin-top: 4px; text-align: center; }

/* ───────── 토스트 · 대화상자 ───────── */
.toast {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); z-index: 20; /* 위쪽: 아래 고정 띠를 가리지 않는다 */
  width: max-content; max-width: min(448px, calc(100vw - 32px)); padding: 12px 20px;
  background: var(--ink); color: var(--bg); border-radius: 999px;
  font-size: var(--fs-b); font-weight: 700; text-align: center;
  opacity: 0; transform: translate(-50%, -8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

dialog { width: calc(100vw - 32px); max-width: 448px; padding: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
dialog::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
dialog h2 { font-size: var(--fs-l); }
dialog .muted { margin-top: 4px; }
dialog textarea { margin-top: 12px; min-height: 160px; }
dialog .btn-row { justify-content: flex-end; }

/* ───────── 모임 바꾸기 · 등록·관리 · 캐릭터 고르기 (SPEC §13) ───────── */
.club-bar { margin-top: 12px; }
.club-switch {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: var(--tap); padding: 0 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--field-line); border-radius: 999px;
  font: 800 var(--fs-m)/1.2 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.club-switch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-caret { flex: none; color: var(--muted); font-size: var(--fs-b); }

/* 모임 목록: 모임 하나가 버튼 하나. 지금 모임은 초록 채움(이름표의 선택됨과 같은 모양) */
.club-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.club-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px;
  background: transparent; color: var(--ink); border: 1px solid var(--field-line); border-radius: var(--radius);
  font: 700 var(--fs-m)/1.3 var(--font); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.club-item[aria-current="true"] { background: var(--fairway); border-color: var(--fairway); color: var(--on-fairway); }
.club-item-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-item-side { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-b); font-weight: 400; font-variant-numeric: tabular-nums; }
.club-count { color: var(--muted); }
.club-item[aria-current="true"] .club-count { color: inherit; }
.club-now { padding: 0 8px; border: 1px solid currentColor; border-radius: 999px; font-size: var(--fs-s); font-weight: 800; line-height: 22px; }
.club-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
#clubs-dialog .confirm { margin-top: 12px; }

/* 등록·관리 창: 위쪽은 스크롤되는 본문, 아래는 늘 보이는 바닥(확인 단계 + 완료) */
.club-dialog[open] { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.dlg-body { flex: 1 1 auto; min-height: 0; padding: 16px 16px 12px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dlg-foot { flex: none; padding: 8px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.dlg-foot .confirm { margin: 0 0 8px; }
#club-dialog-title:focus { outline: none; }
.club-dialog .field { margin-top: 12px; }
.club-summary { margin-top: 12px; font-size: var(--fs-m); font-weight: 800; font-variant-numeric: tabular-nums; }
.club-dialog .add-row { margin-top: 12px; }
.club-dialog .link-row { margin-top: 12px; }
.club-members { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.club-members:empty { display: none; }
#club-members-empty { margin-top: 16px; }
/* 회원 한 줄: [캐릭터] 이름 … [남|여] [✕] */
.club-members .name-chip.is-edit { width: 100%; max-width: none; padding-left: 4px; border-radius: var(--radius); }
.club-members .name-chip.is-edit .chip-gender { margin-left: auto; }
.club-members .name-chip.is-edit .chip-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 이름이 길면 말줄임(소속이 먼저 줄고, 남|여·✕·캐릭터 버튼은 밀려나지 않는다) */
.btn-quiet-danger { margin-top: 16px; color: var(--danger); border-color: var(--danger); }

/* 캐릭터: 점선 원 "자동" / 얼굴 */
.char-btn { flex: none; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.char-btn .avatar { width: 40px; height: 38px; }
.char-auto { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2px dashed var(--field-line); border-radius: 50%; color: var(--muted); font-size: var(--fs-s); font-weight: 700; line-height: 1; }
.char-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
/* 칸 16개(자동 + 15명) = 4칸씩 네 줄. 창이 화면보다 길면 칸들만 창 안에서 스크롤하고 제목·닫기 버튼은 그대로 보인다(고른 칸의 테두리 링이 잘리지 않게 안쪽 여백 3px) */
#char-dialog[open] { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; }
#char-dialog .char-grid { flex: 1 1 auto; min-height: 0; margin: 9px 0 0; padding: 3px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#char-dialog .btn-row { flex: none; }
.char-cell { display: grid; place-items: center; min-height: 80px; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--field-line); border-radius: var(--radius); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.char-cell[aria-pressed="true"] { border-color: var(--fairway); box-shadow: 0 0 0 2px var(--fairway); }
.char-cell .avatar { width: 56px; height: 52px; }
.char-cell .char-auto { width: 52px; height: 52px; font-size: var(--fs-b); }

/* ───────── 파3 니어 애니메이션 (SPEC §12.2): 전체 화면 · 장면 → 순위표 시트 ───────── */
html.anim-open { overflow: hidden; }
.anim { position: fixed; inset: 0; z-index: 30; background: var(--board); color: var(--plate); overscroll-behavior: contain; animation: anim-fade .2s linear; }
.anim-stage { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 480px; height: 100%; margin: 0 auto; }
.anim-head { flex: none; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
.anim-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.anim-title { font-size: var(--fs-l); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.anim-count { color: color-mix(in srgb, var(--plate) 74%, var(--board)); font-size: var(--fs-s); font-weight: 700; }
.anim-leader { margin-top: 2px; min-height: 24px; overflow: hidden; color: color-mix(in srgb, var(--plate) 74%, var(--board)); font-size: var(--fs-s); line-height: 24px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.anim-leader .lead-n, .anim-leader .lead-d { color: var(--plate); font-weight: 800; }
.anim-progress { margin-top: 6px; height: 4px; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--plate) 18%, var(--board)); }
.anim-progress i { display: block; height: 100%; background: var(--flag); transform: scaleX(0); transform-origin: left center; }

.anim-scene { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.anim-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc-rough { fill: var(--scene-rough); }
.sc-tree { fill: var(--scene-tree); }
.sc-fair-a { fill: var(--scene-fair-a); }
.sc-fair-b { fill: var(--scene-fair-b); }
.sc-tee { fill: var(--scene-tee); }
.sc-mark { fill: var(--plate); }
.sc-sand { fill: var(--scene-sand); }
.sc-fringe { fill: var(--scene-fringe); }
.sc-green { fill: var(--scene-green); }
.sc-ring { fill: none; stroke: var(--ball); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.anim-pin { position: absolute; width: 28px; height: 56px; transform: translate(-12px, -52px); pointer-events: none; }
.anim-pin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pin-hole { fill: var(--board); }
.pin-pole { stroke: var(--plate); stroke-width: 1.6; stroke-linecap: round; }
.pin-flag { fill: var(--flag); transform-origin: 12px 11px; }
.anim-pin.is-hio .pin-flag { animation: anim-wave .35s ease-in-out 6; }

.anim-layer { position: absolute; inset: 0; pointer-events: none; }
.anim-actor { position: absolute; width: var(--cw, 64px); height: calc(var(--cw, 64px) * 1.4); }
.char { position: relative; width: 100%; height: 100%; }
.char-pose { position: absolute; inset: 0; display: none; width: 100%; height: 100%; }
img.char-pose { left: -20%; width: 140%; } /* AI 그림은 정사각: 가운데 5:7이 캐릭터 칸, 양옆은 스윙 때 클럽이 나가는 자리 */
.char[data-pose="address"] .char-pose[data-pose="address"],
.char[data-pose="backswing"] .char-pose[data-pose="backswing"],
.char[data-pose="finish"] .char-pose[data-pose="finish"] { display: block; }
.char[data-pose="address"] { animation: anim-bob 1.1s ease-in-out infinite; }
.anim-tag {
  position: absolute; left: 50%; top: calc(var(--cw, 64px) * 1.32 + 5px); transform: translateX(-50%);
  max-width: var(--slot, 72px); height: 22px; padding: 0 7px; overflow: hidden;
  background: var(--plate); color: var(--plate-ink); border-radius: 999px;
  font-size: var(--fs-s); font-weight: 700; line-height: 22px; text-overflow: ellipsis; white-space: nowrap;
}

.anim-ball, .anim-shadow { position: absolute; left: 0; top: 0; width: var(--bd, 8px); height: var(--bd, 8px); border-radius: 50%; will-change: transform; }
.anim-ball { background: var(--ball); box-shadow: 0 0 0 1px var(--ball-edge); }
.anim-ball.is-best { box-shadow: 0 0 0 2px var(--flag), 0 0 0 5px color-mix(in srgb, var(--flag) 35%, transparent); }
.anim-ball[data-state="in-hole"] { visibility: hidden; }
.anim-shadow { height: calc(var(--bd, 8px) * .55); width: calc(var(--bd, 8px) * 1.3); background: color-mix(in srgb, var(--board) 70%, transparent); }
.anim-puff, .anim-ring { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; }
.anim-puff { background: color-mix(in srgb, var(--plate) 70%, transparent); animation: anim-puff .5s ease-out forwards; }
.anim-ring { border: 2px solid var(--ball); animation: anim-ring .65s ease-out forwards; }

.anim-label {
  position: absolute; display: flex; flex-direction: column; width: max-content; max-width: 170px; padding: 4px 10px 5px;
  background: var(--plate); color: var(--plate-ink); border-radius: 10px;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--board) 45%, transparent);
  line-height: 1.25; animation: anim-pop .22s ease-out; transition: opacity .3s ease;
}
.anim-label.is-out { opacity: 0; }
.anim-label .l-name { overflow: hidden; font-size: var(--fs-s); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.anim-label .l-dist { font-size: var(--fs-s); font-variant-numeric: tabular-nums; white-space: nowrap; }
.anim-label .l-off { font-size: var(--fs-s); font-weight: 800; white-space: nowrap; }
.anim-label.is-off { border: 1px dashed var(--plate-ink); }
.anim-label.is-hio { box-shadow: 0 0 0 3px var(--flag); }
.anim-banner {
  position: absolute; left: 50%; top: 44%; margin: 0; padding: 6px 22px; transform: translate(-50%, -50%);
  background: var(--flag); color: var(--plate); border-radius: 999px;
  font-size: var(--fs-xl); font-weight: 800; animation: anim-pop .35s ease-out;
}

.anim-controls {
  flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.anim-controls .btn { min-height: 56px; }
.anim-controls .btn[aria-pressed="true"] { background: var(--fairway); border-color: var(--fairway); color: var(--on-fairway); }

/* 순위표 시트: 아래에서 올라온다. 흰 이름판이 줄지어 있는 리더보드 */
.anim-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(52px + env(safe-area-inset-top));
  display: flex; flex-direction: column; width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--board); border-top: 2px solid color-mix(in srgb, var(--plate) 38%, var(--board)); border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 28px color-mix(in srgb, var(--board) 70%, transparent);
  animation: anim-up .38s cubic-bezier(.2, .8, .2, 1);
}
.anim-sheet-head { flex: none; padding: 16px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left)); }
.anim-sheet-head h2 { font-size: var(--fs-l); font-weight: 800; }
.anim-sheet-head h2:focus { outline: none; }
.anim-sheet-sub { margin-top: 2px; color: color-mix(in srgb, var(--plate) 74%, var(--board)); font-size: var(--fs-s); }
.anim-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
.anim-bracket { margin-top: 14px; }
.anim-bracket-h { padding-bottom: 6px; border-bottom: 2px solid color-mix(in srgb, var(--plate) 38%, var(--board)); font-size: var(--fs-b); font-weight: 800; font-variant-numeric: tabular-nums; }
.anim-rank-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.anim-rank { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 12px 4px 10px; background: var(--plate); color: var(--plate-ink); border-radius: 10px; }
.anim-rank[data-rank="1"] { box-shadow: inset 5px 0 0 var(--flag); }
.r-no { flex: none; min-width: 2.7ch; font-size: var(--fs-m); font-weight: 800; font-variant-numeric: tabular-nums; }
.r-no small { margin-left: 1px; font-size: var(--fs-s); font-weight: 700; }
.avatar { flex: none; display: block; width: 36px; height: 34px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--scene-fair-a) 55%, var(--plate)); }
.avatar-svg, .avatar-art { display: block; width: 100%; height: 100%; }
.avatar-art { object-fit: cover; object-position: 50% 0; } /* AI 그림은 위쪽(머리·어깨)을 보여 준다 */
.r-name { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: var(--fs-m); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.r-side { flex: none; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; line-height: 1.2; }
.r-dist { font-size: var(--fs-m); font-weight: 800; font-variant-numeric: tabular-nums; }
.r-tag { padding: 0 6px; border: 1.5px solid var(--plate-ink); border-radius: 4px; font-size: var(--fs-s); font-weight: 800; line-height: 18px; }
.r-tag.is-off { border-style: dashed; font-weight: 700; }
.anim-sheet-foot { flex: none; padding: 10px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid color-mix(in srgb, var(--plate) 22%, var(--board)); }
/* 1.5초 뒤 저절로 결과로 넘어간다는 표시: '결과 보기' 버튼 아래 줄이 차오른다(순위표를 만지면 멈추고 사라짐) */
#anim-done { position: relative; overflow: hidden; }
#anim-done.is-auto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--on-fairway); opacity: .75; transform: scaleX(0); transform-origin: left center; animation: anim-auto var(--auto-ms, 1.5s) linear forwards; }

/* 순위표가 올라오면 머리의 진행 줄·1위 줄은 숨긴다(시트가 일부를 덮어 글이 잘려 보이지 않게) */
.anim[data-phase="sheet"] .anim-leader, .anim[data-phase="sheet"] .anim-progress { visibility: hidden; }

/* 움직임을 줄이는 설정: 장면 없이 순위표만 위로 올라오지 않고 페이드 */
.anim[data-reduced] .anim-stage { display: none; }
.anim[data-reduced] .anim-sheet { top: 0; border-radius: 0; border-top: 0; box-shadow: none; animation: anim-fade .2s linear; }

@keyframes anim-auto { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes anim-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes anim-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes anim-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes anim-puff { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes anim-ring { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes anim-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes anim-wave { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-14deg); } }

/* hover 색은 마우스가 있는 기기에서만. 폰에서는 눌렀던 자리에 hover가 남아 회색으로 보이기 때문이다. */
@media (hover: hover) {
  .head-nav a:hover { color: var(--ink); text-decoration: underline; }
  .btn:hover { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
  .btn-primary:hover { background: color-mix(in srgb, var(--fairway) 88%, var(--ink)); }
  button.name-chip[aria-pressed="false"]:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .chip-remove:hover { color: var(--danger); }
  .club-item:not([aria-current]):hover, .char-cell:hover, .club-switch:hover { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
  .stepper-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
  .icon-btn:hover { color: var(--danger); border-color: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
  .anim-label, .anim-banner, .char, .anim-pin .pin-flag { animation: none !important; } /* 순위표 페이드(불투명도만)는 남긴다 */
  .anim-label { transition: none; }
}

/* 화면에는 안 보이고 화면 낭독기에는 읽히는 글 */
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ───────── 보내기 줄 · 누구세요? · 나 표시 ───────── */
:root { --kakao: #FEE500; --kakao-ink: #191600; --me: #FFD84D; --me-ink: #2A2100; }
.send-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.send-row .btn { width: 100%; padding-inline: 8px; }
.btn-kakao { background: var(--kakao); border-color: var(--kakao); color: var(--kakao-ink); font-weight: 800; }
.btn-ghost { background: none; border-color: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.who { padding-top: 8px; }
.who-kicker { margin-top: 16px; color: var(--fairway); font-size: var(--fs-s); font-weight: 800; }
.who .page-title { margin-top: 4px; font-size: var(--fs-xl); }
.who-sub { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.who-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 20px 0 12px; }
.who-name { min-height: 52px; padding: 6px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; font-size: var(--fs-m); font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.who-name:active { background: var(--fairway); border-color: var(--fairway); color: var(--on-fairway); }

.me-card { margin-top: 16px; padding: 18px 16px 8px; background: var(--board); border-radius: var(--radius); color: #FFFFFF; text-align: center; }
.me-card:focus { outline: none; }
.me-line { font-size: var(--fs-m); }
.me-line b { color: var(--me); }
.me-group { margin-top: 2px; font-size: 64px; font-weight: 900; line-height: 1; color: var(--me); }
.me-group small { margin-left: 2px; font-size: var(--fs-l); color: #FFFFFF; }
.me-mates { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: var(--fs-s); line-height: 1.5; }
.me-card .link-btn { color: rgba(255, 255, 255, .85); font-size: var(--fs-s); }

.group-card.has-me { border: 2px solid var(--me); }
.person.is-me { background: color-mix(in srgb, var(--me) 22%, var(--surface)); }
.badge-me { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--me); border-radius: 4px; color: var(--me-ink); font-size: var(--fs-s); font-weight: 800; line-height: 1; }
.anim-actor.is-me .anim-tag { background: var(--me); color: var(--me-ink); }
.anim-actor.is-me::after { content: '▼'; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); color: var(--me); font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.anim-label.is-me { outline: 3px solid var(--me); }
.anim-rank.is-me { box-shadow: 0 0 0 3px var(--me) inset; background: color-mix(in srgb, var(--me) 35%, var(--plate)); }

/* ───────── 디자인 v2 (2026-10-25): 클럽하우스 리더보드 ─────────
   보드 그린 머리줄 · 깃발 로고 · 첫 줄 티박스 그림 · 조 카드 머리는 보드 그린 + 금색 번호 */
:root { --medal: #F2C94C; }
.site-head { background: var(--board); border-bottom: 0; }
.site-head .brand { color: #FFFFFF; font-size: var(--fs-l); letter-spacing: -0.02em; }
.site-head .head-nav a { color: rgba(255, 255, 255, .82); }
.brand-flag { width: 20px; height: 24px; flex: none; }
.bf-hole { fill: rgba(0, 0, 0, .35); }
.bf-pole { stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; }
.bf-flag { fill: var(--flag); }

.hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 168px; margin-top: 14px; overflow: hidden; border-radius: 16px;
  background:
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 255, 255, .05) 18px 36px),
    linear-gradient(180deg, #2F7A4E 0%, #3E9A62 62%, #2C6B45 62%, #2C6B45 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 14px 16px 0; color: #FFFFFF; font-size: var(--fs-b); line-height: 1.4; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.hero-copy b { font-size: var(--fs-l); font-weight: 900; letter-spacing: -0.02em; }
.hero-tee { position: absolute; right: 6px; bottom: -4px; display: flex; align-items: flex-end; }
.hero-tee img { width: 92px; height: 92px; margin-left: -26px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)); }
@media (max-width: 380px) { .hero-tee img { width: 80px; height: 80px; margin-left: -24px; } }

.h-block { display: flex; align-items: center; gap: 8px; }
.h-block::before { content: ''; width: 4px; height: 1em; border-radius: 2px; background: var(--fairway); flex: none; }

.btn-primary { box-shadow: 0 2px 0 color-mix(in srgb, var(--fairway) 60%, #000); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.group-card { border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.group-head { background: var(--board); color: #FFFFFF; border-bottom: 0; }
.group-no .num { color: var(--medal); }
.group-head .group-tee { color: rgba(255, 255, 255, .85); }

/* ───────── 한 명씩 넘기기 · 내 공 ───────── */
.anim-stage { position: relative; }
.anim-choose {
  position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: grid; gap: 10px; padding: 18px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--board) 92%, transparent); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.anim-choose-h { color: #FFFFFF; font-size: var(--fs-l); font-weight: 900; text-align: center; }
.anim-choose .btn { flex-direction: column; gap: 2px; }
.anim-choose .btn small { font-size: var(--fs-s); font-weight: 400; opacity: .85; }
#anim-next { grid-column: 2; }
#anim-next:not([hidden]) { animation: anim-nudge 1.2s ease-in-out infinite; }
@keyframes anim-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.anim-actor.is-turn .anim-tag { background: var(--flag); color: #FFFFFF; }
.anim-actor.is-turn .char { animation: anim-bob .6s ease-in-out infinite; }
.anim-ball.is-me { background: var(--me); box-shadow: 0 0 0 2px var(--me-ink), 0 0 0 7px color-mix(in srgb, var(--me) 55%, transparent); z-index: 2; }
.anim-label.is-me { z-index: 3; padding: 6px 12px 7px; background: var(--me); color: var(--me-ink); outline: 3px solid var(--me-ink); }
.anim-label.is-me .l-name { font-size: var(--fs-m); }
.anim-label.is-me .l-dist { font-size: var(--fs-b); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { #anim-next:not([hidden]) { animation: none; } }
.anim-actor.is-me.is-turn .anim-tag { background: var(--me); color: var(--me-ink); }
#anim-mode-step { background: var(--me); border-color: var(--me); color: var(--me-ink); box-shadow: none; }

/* ───────── 오프닝 · 한마디 · 시간없다 빨리 ───────── */
.opening {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(200% 34% at 50% 112%, #3E9A62 0 46%, transparent 47%),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, .035) 22px 44px),
    var(--board);
  color: #FFFFFF; transition: opacity .28s ease, transform .28s ease;
}
.opening.is-out { opacity: 0; transform: translateY(-12px); }
html.opening-open { overflow: hidden; }
.opening-in { width: 100%; max-width: 420px; text-align: center; }
.opening-kicker { color: var(--me); font-size: var(--fs-s); font-weight: 800; letter-spacing: .12em; }
.opening-title { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 52px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.opening-title .brand-flag { width: 36px; height: 44px; }
.opening-copy { margin-top: 10px; font-size: var(--fs-m); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.opening-copy b { color: #FFFFFF; font-size: var(--fs-l); font-weight: 900; }
.opening-tee { display: flex; justify-content: center; margin: 14px 0 4px; }
.opening-tee img { width: 96px; height: 96px; margin: 0 -18px; animation: anim-bob 1.4s ease-in-out infinite; }
.opening-tee img:nth-child(2n) { animation-delay: -.5s; }
.opening-points { display: grid; gap: 6px; margin: 10px 0 18px; padding: 0; list-style: none; font-size: var(--fs-b); text-align: left; }
.opening-points li { padding: 10px 14px; background: rgba(255, 255, 255, .08); border-radius: 12px; }
.opening-go { background: var(--me); border-color: var(--me); color: var(--me-ink); font-weight: 900; }
.opening-foot { margin-top: 12px; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.5; }
@media (max-height: 680px) { .opening-tee img { width: 72px; height: 72px; } .opening-title { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { .opening-tee img { animation: none; } .opening { transition: none; } }

.anim-quip {
  position: absolute; left: 50%; top: 52%; z-index: 4; margin: 0; padding: 7px 16px; transform: translateX(-50%);
  background: rgba(15, 59, 40, .88); color: #FFFFFF; border-radius: 999px; white-space: nowrap;
  font-size: var(--fs-m); font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.anim-quip.is-pop { animation: quip-pop .3s ease-out; }
@keyframes quip-pop { from { transform: translateX(-50%) scale(.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
#anim-mode-fast { border-color: var(--flag); color: var(--flag); }

/* ═════════ 디자인 v3 (2026-10-25): 프리텐다드 · 숨 쉬는 간격 · 카드 · 로고 ═════════
   앞 절들의 값을 이 절이 덮는다. 간격 단계 8 / 12 / 16 / 20 / 28. */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --bg: #EEF2EC;
  --radius: 16px;
  --card-radius: 20px;
  --card-shadow: 0 1px 2px rgba(23, 37, 30, .05), 0 6px 18px rgba(23, 37, 30, .05);
  --line: #E1E7E1;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B1410; --line: #22352B; --card-shadow: none; }
}
body { letter-spacing: -0.01em; line-height: 1.6; }
h1, h2, h3 { letter-spacing: -0.025em; }
.btn, input, select, textarea, .name-chip, .seg-opt span, .chip-g, .chip-remove, .stepper-btn, .stepper input { font-family: var(--font); letter-spacing: -0.01em; }

/* 로고: 공이 그리는 점선 궤적이 글자 위로 넘어가 핀에 꽂힌다 */
.logo { display: block; overflow: visible; }
.logo-word { font-family: var(--font); font-size: 50px; font-weight: 900; letter-spacing: -3px; fill: currentColor; }
.logo-arc { fill: none; stroke: var(--me); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 7; }
.logo-ball { fill: #FFFFFF; stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; }
.logo-pole { stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.logo-flag { fill: var(--flag); }
.logo-hole { fill: currentColor; opacity: .35; }
.logo-head { width: 92px; height: auto; color: #FFFFFF; }
.logo-big { width: min(250px, 70vw); height: auto; margin: 0 auto; color: #FFFFFF; }

/* 머리줄 */
.site-head { background: var(--board); }
.head-row { min-height: 60px; }
.site-head .brand { padding: 4px 0; }
.site-head .head-nav a { font-size: var(--fs-s); font-weight: 600; color: rgba(255, 255, 255, .78); }

/* 첫 줄 그림(메인) */
.hero {
  height: auto; min-height: 196px; margin-top: 16px; padding: 22px 20px 20px; border-radius: 24px; justify-content: flex-start;
  background:
    radial-gradient(180% 46% at 70% 118%, #4FAE72 0 50%, transparent 51%),
    linear-gradient(160deg, #165A3B 0%, #0F3B28 100%);
  box-shadow: var(--card-shadow);
}
.hero-kicker { position: relative; z-index: 1; color: var(--me); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.hero-title { position: relative; z-index: 1; margin-top: 6px; color: #FFFFFF; font-size: 26px; font-weight: 900; line-height: 1.28; letter-spacing: -0.035em; }
.hero-sub { position: relative; z-index: 1; margin-top: 8px; max-width: 52%; color: rgba(255, 255, 255, .72); font-size: var(--fs-s); line-height: 1.5; }
.hero-copy { display: none; }
.hero-tee { right: 8px; bottom: 2px; }
.hero-tee img { width: 104px; height: 104px; margin-left: -34px; }
@media (max-width: 380px) { .hero-tee img { width: 88px; height: 88px; margin-left: -30px; } .hero-sub { max-width: 46%; } }

/* 모임 바꾸기 */
.club-bar { margin-top: 20px; }

/* 덩어리 = 카드 */
#main-view .block, .settings, .result, .cta, .who-list-wrap {
  margin-top: 16px; padding: 20px; background: var(--surface); border: 0; border-radius: var(--card-radius); box-shadow: var(--card-shadow);
}
.h-block { margin-bottom: 14px; font-size: 19px; font-weight: 800; }
.h-block::before { width: 4px; height: 18px; }
.today-head { margin-bottom: 4px; }
.today-head .h-block { margin-bottom: 0; }
.count-row { margin-top: 6px; }
.count { font-size: var(--fs-b); color: var(--muted); }
.count strong { color: var(--ink); font-size: var(--fs-m); font-weight: 800; }
.chips { gap: 10px; margin-top: 14px; }
.name-chip { min-height: 46px; padding: 0 16px; font-weight: 600; border-color: var(--line); background: var(--bg); }
button.name-chip[aria-pressed="true"] { box-shadow: 0 2px 6px color-mix(in srgb, var(--fairway) 30%, transparent); }
.chips-hint { margin-top: 14px; line-height: 1.55; }
.seg { border-radius: 14px; border-color: var(--line); background: var(--bg); padding: 4px; gap: 4px; }
.seg-opt + .seg-opt { border-left: 0; }
.seg-opt span { min-height: 52px; border-radius: 10px; font-weight: 700; }
.seg-opt input:checked + span { box-shadow: 0 2px 6px color-mix(in srgb, var(--fairway) 30%, transparent); }
.mix-line { margin-top: 12px; font-size: var(--fs-s); }
.empty-card { margin-bottom: 16px; padding: 18px; background: var(--bg); border: 0; }
.empty-card .muted { margin-top: 10px; font-size: var(--fs-s); }
.add-row { gap: 10px; }
.link-row { margin-top: 16px; }
input[type="text"], input[type="number"], select, textarea { border-color: var(--line); background: var(--bg); border-radius: 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--fairway); background: var(--surface); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fairway) 22%, transparent); }
.btn { border-radius: 14px; font-weight: 700; }
.btn:not(.btn-primary):not(.btn-kakao):not(.opening-go) { border-color: var(--line); }

/* 아래 고정 띠 */
.draw-bar-inner { border-top: 0; box-shadow: 0 -6px 20px rgba(23, 37, 30, .08); border-radius: 20px 20px 0 0; }

/* 결과 */
.result h2 { font-size: 22px; font-weight: 900; }
.result-meta { margin-top: 4px; color: var(--muted); }
.actions { gap: 16px; margin: 18px 0 20px; }
.act-note { margin-top: 8px; }
.group-grid { gap: 14px; }
.group-card { border: 0; border-radius: 18px; box-shadow: var(--card-shadow); background: var(--surface); }
.result .group-card { box-shadow: 0 0 0 1px var(--line); }
.group-head { padding: 12px 18px; }
.person { min-height: 50px; padding: 6px 18px; border-top-color: var(--line); }
.p-name { font-weight: 600; }

/* 보내기 줄 */
.send-row { gap: 10px; }
.btn-kakao { gap: 6px; }
.kakao-mark { width: 20px; height: 20px; flex: none; fill: var(--kakao-ink); }

/* 오프닝 */
.opening-in { padding: 8px 4px; }
.opening-kicker { font-size: 13px; letter-spacing: .14em; }
.opening-title { display: block; margin: 14px 0 0; }
.opening-copy { margin-top: 14px; font-size: var(--fs-b); color: rgba(255, 255, 255, .78); }
.opening-copy b { display: inline-block; margin-top: 4px; font-size: 24px; letter-spacing: -0.035em; }
.opening-tee { margin: 20px 0 8px; }
.opening-points { gap: 8px; margin: 14px 0 22px; font-size: 15px; }
.opening-points li { padding: 12px 16px; border-radius: 14px; }
.opening-go { min-height: 58px; font-size: 18px; border-radius: 16px; }
.opening-foot { margin-top: 14px; font-size: 12px; }

/* 누구세요? · 내 조 카드 */
.who .page-title { font-size: 30px; font-weight: 900; letter-spacing: -0.04em; }
.who-list { gap: 10px; margin: 24px 0 16px; }
.who-name { min-height: 56px; border: 0; background: var(--surface); box-shadow: var(--card-shadow); font-weight: 700; border-radius: 16px; }
.me-card { padding: 24px 18px 12px; border-radius: 24px; background: linear-gradient(160deg, #165A3B 0%, #0F3B28 100%); }
.me-group { font-size: 76px; letter-spacing: -0.04em; }
/* v3 다듬기: 이름표는 연한 초록 + 체크, 안 고른 것은 흐리게 */
.logo-head { width: 104px; }
.hero-sub { max-width: 60%; }
button.name-chip { background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); }
button.name-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--fairway) 12%, var(--surface)); border-color: var(--fairway); color: var(--fairway);
  box-shadow: none; font-weight: 700;
}
button.name-chip[aria-pressed="true"]::before { content: '✓'; margin-right: -2px; font-weight: 900; }
button.name-chip[aria-pressed="true"] .chip-meta { color: color-mix(in srgb, var(--fairway) 70%, var(--surface)); }
@media (prefers-color-scheme: dark) { button.name-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--fairway) 22%, var(--surface)); } }
#main-view .settings { padding: 4px 20px; }
.settings > summary { border-top: 0; border-bottom: 0; }
.settings-body { padding: 4px 0 16px; background: none; border: 0; }

/* ───────── 오프닝 v4: 젠스파크 배경·타이틀 그림 (10-25) ───────── */
.opening { background: url(../img/opening/bg.webp) center 30% / cover no-repeat, var(--board); }
.opening-title img { display: block; width: min(86vw, 340px); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.opening-kicker, .opening-copy { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.opening-points li { background: rgba(10, 40, 26, .55); backdrop-filter: blur(4px); }
.opening-foot { color: rgba(255, 255, 255, .75); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.site-head .logo-head { width: 108px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
/* 오프닝 등장: 타이틀이 위에서 떨어져 통 튀고, 나머지가 차례로 올라온다 */
@keyframes op-drop { 0% { transform: translateY(-120%) scale(.9); opacity: 0; } 55% { transform: translateY(6%) scale(1.04); opacity: 1; } 72% { transform: translateY(-3%) scale(.98); } 86% { transform: translateY(1%) scale(1.01); } 100% { transform: none; opacity: 1; } }
@keyframes op-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes op-pop { 0% { transform: translateY(24px) scale(.6); opacity: 0; } 70% { transform: translateY(-4px) scale(1.06); opacity: 1; } 100% { transform: none; opacity: 1; } }
.opening:not([hidden]) .opening-title img { animation: op-drop .9s cubic-bezier(.2, .8, .3, 1) .15s both; }
.opening:not([hidden]) .opening-kicker { animation: op-rise .5s ease-out 0s both; }
.opening:not([hidden]) .opening-copy { animation: op-rise .5s ease-out .95s both; }
.opening:not([hidden]) .opening-tee { animation: op-pop .55s cubic-bezier(.3, 1.4, .5, 1) 1.2s both; }
.opening:not([hidden]) .opening-points { animation: op-rise .5s ease-out 1.5s both; }
.opening:not([hidden]) .opening-go { animation: op-rise .5s ease-out 1.7s both; }
.opening:not([hidden]) .opening-foot { animation: op-rise .5s ease-out 1.8s both; }
@media (prefers-reduced-motion: reduce) { .opening:not([hidden]) :is(.opening-title img, .opening-kicker, .opening-copy, .opening-tee, .opening-points, .opening-go, .opening-foot) { animation: none; } }
.opening-tee { margin-bottom: 28px; }
.beta-note { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 216, 77, .14); border: 1px solid rgba(255, 216, 77, .45); font-size: 13px; line-height: 1.55; }
.beta-note b:first-child { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--me); color: var(--me-ink); font-size: 12px; }
/* 카톡 명단 붙여넣기 버튼은 뺌(10-25 선배). adder.js가 요소를 찾으므로 마크업은 두고 숨긴다 */
[data-ad="paste-toggle"], [data-ad="paste-panel"] { display: none !important; }
.kakao-note { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(254, 229, 0, .16); border: 1px solid rgba(254, 229, 0, .5); font-size: 13px; line-height: 1.55; }
