  /* ====== Bottom navigation (glass) ====== */
  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: flex-end;  /* 5개 라벨 바닥 기준 정렬 — 플레이 라벨이 나머지와 같은 높이 */
    justify-content: space-around;
    padding: 6px;
    /* 거의 투명 — 배경 cream 이 그대로 비치도록. blur 만 살짝. */
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(20, 83, 45, 0.10);
    touch-action: none;
  }
  /* nav + 모든 자식 — iOS 의 text 선택, 돋보기 (loupe), tap highlight 차단.
     이걸로 long-press magnifier (homebar 위로 떠있는 동그란 확대경) 및 텍스트 하늘색 highlight 둘 다 차단. */
  .bottom-nav, .bottom-nav * {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  /* Sliding indicator — active 탭 뒤에 둥근 다크 그린 pill. tab 사이를 빠르게 슬라이드. */
  .bn-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: calc((100% - 12px) / 5);
    left: 6px;
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
    border-radius: 999px;
    /* 탭 패널 슬라이드(0.32s)와 동일 duration·easing 으로 맞춤 — 스와이프 전환 시 indicator 가 화면과 함께 움직임 */
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.15s ease-out, opacity 0.18s ease;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.25);
  }
  /* 5칸(홈·기록·[플레이]·탐색·프로필) — 인스타식 순서. 중앙 플레이는 인디케이터 대상 아님. [P1 홈바 개편] */
  /* 슬롯: 홈(feed)=0 · 기록(record)=1 · [FAB]=2 · 탐색(explore)=3 · 프로필(profile)=4. */
  body.tab-feed .bn-indicator    { transform: translateX(0%); }
  body.tab-record .bn-indicator  { transform: translateX(96.7%); }
  body.tab-explore .bn-indicator { transform: translateX(303.3%); }
  body.tab-profile .bn-indicator { transform: translateX(401.1%); }
  body.tab-game .bn-indicator    { opacity: 0; }   /* game=플레이 서피스(nav 버튼 없음) — 인디케이터 숨김(플레이 중엔 nav 자체가 숨겨짐) */
  /* Preview (사용자가 탭 누르고 있을 때) — active 보다 우선. 손가락 따라 indicator 슬라이드. */
  body.preview-feed .bn-indicator    { transform: translateX(0%) !important; box-shadow: none !important; }
  body.preview-record .bn-indicator  { transform: translateX(96.7%) !important; box-shadow: none !important; }
  body.preview-explore .bn-indicator { transform: translateX(303.3%) !important; box-shadow: none !important; }
  body.preview-profile .bn-indicator { transform: translateX(401.1%) !important; box-shadow: none !important; }
  /* Preview 모드 — 모든 탭 비활성 색, preview 탭만 white. */
  body.preview-feed .bn-tab,
  body.preview-explore .bn-tab,
  body.preview-record .bn-tab,
  body.preview-profile .bn-tab {
    color: var(--green-900) !important;
  }
  body.preview-feed .bn-tab[data-tab="feed"],
  body.preview-explore .bn-tab[data-tab="explore"],
  body.preview-record .bn-tab[data-tab="record"],
  body.preview-profile .bn-tab[data-tab="profile"] {
    color: white !important;
  }
  /* 플레이 시트 열림 — 기존 탭 하이라이트 해제(인디케이터 숨김·탭 텍스트 비활성색), 플레이 FAB 하이라이트. */
  body.play-open .bn-indicator { opacity: 0; }
  body.play-open .bn-tab { color: var(--green-900) !important; }
  body.play-open .bn-play-fab { background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%); border-color: transparent; box-shadow: 0 6px 16px rgba(20,83,45,.35); }
  body.play-open .bn-play-img { filter: brightness(0) invert(1); }   /* 라인아트 볼 → 흰색(초록 FAB 위) */
  body.play-open .bn-play .bn-label { color: var(--green-900); font-weight: 800; }
  /* 플레이 시트 열리면 뒤 배경(홈 콘텐츠)만 블러. 헤더(로고줄)는 position:fixed 라 .container 에 filter 걸면
     containing block 이 바뀌어 아래로 밀림 → 헤더를 filter 대상에서 제외(:not(header))해 고정 유지.
     (backdrop-filter 는 iOS WKWebView 에서 불안정 → 콘텐츠에 직접 filter:blur.) */
  .container > :not(header) { transition: filter .2s ease; }
  body.play-open .container > :not(header) { filter: blur(6px); }

  .bn-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--gray-500);
    transition: color 0.25s ease-out;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
  }
  .bn-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bn-tab .bn-icon { width: 100%; height: 100%; display: block; }
  .bn-tab .bn-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .bn-tab:active { transform: scale(0.94); }

  /* 탭 콘텐츠 보임/숨김 — body class 로 컨트롤 */
  /* Tab panels — 슬라이딩 horizontal track. 활성 panel = position:relative (높이 영향), 그 외 = absolute (offscreen). */
  .tab-content { display: block; }  /* panel.active 클래스로 visibility 제어 — 옛 display:none 비활성화 */
  .tab-stage-wrapper {
    position: relative;
    /* 높이는 active panel 의 자연 높이를 따라감 (relative + others absolute) */
  }
  .tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    pointer-events: none;
  }
  .tab-panel.active {
    position: relative;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
  /* previewing 패널은 dragging-tab 종료 후에도 visible (commit 애니메이션 동안 끝까지 보임) */
  .tab-panel.previewing { visibility: visible; pointer-events: none; }
  /* 드래그 중에만 transition off — 손가락 따라 즉시 반응 */
  body.dragging-tab .tab-panel.previewing,
  body.dragging-tab .tab-panel.active { transition: none; }
  /* syncActivePanel 호출 직전/직후 inline transform reset 시 jump 방지 — 1 frame 동안 transition off */
  body.no-tab-transition .tab-panel { transition: none !important; }
  /* FOUC 방지 — 탭 패널 wrap(setupTabPanels) 완료 전엔 원본 피드/통계/프로필 섹션이
     normal flow 로 쌓여 보이는 깨진 레이아웃이 노출됨(특히 로딩 느릴 때). tabs-ready 붙기 전엔 숨김. */
  body:not(.tabs-ready) #feedTab,
  body:not(.tabs-ready) #recordTab,
  body:not(.tabs-ready) #profileTab { display: none !important; }
  /* .container 가로 overflow 클립 — panel 이 가로 100% 넘게 translateX 해도 spillover 없음. */
  /* overflow-x:hidden 은 브라우저가 overflow-y 를 auto 로 강제 → 암묵적 세로 스크롤 컨테이너가 생겨
     네이티브 페이지 스크롤을 가로채는 버그(가장자리에서만 스크롤됨)가 발생. clip 은 스크롤 컨테이너를
     만들지 않고 가로만 잘라냄(translateX 한 패널 spillover 차단은 그대로 유지). */
  /* 양축 clip — 비활성 탭 패널(position:absolute, top:0)이 세로로 길어도 페이지 스크롤 높이를
     늘리지 않도록 세로도 잘라냄. clip 은 스크롤 컨테이너를 만들지 않아(overflow:hidden 과 달리)
     네이티브 페이지 세로 스크롤은 그대로 유지. 활성 패널은 position:relative(in-flow)라 안 잘림. */
  .container { position: relative; overflow: clip; }

  /* Game 탭이 아닐 때 — 모든 게임 흐름 카드 숨김 */
  body:not(.tab-game) #entryMethodCard,
  body:not(.tab-game) #liveSubPickerCard,
  body:not(.tab-game) #entryPickerCard,
  body:not(.tab-game) #ocrPickerCard,
  body:not(.tab-game) #networkPickerCard,
  body:not(.tab-game) #gameCard,
  body:not(.tab-game) #scorecardCard,
  body:not(.tab-game) #settlementCard,
  body:not(.tab-game) #ocrCard,
  body:not(.tab-game) #historyCard,
  body:not(.tab-game) #pickerBackWrap,
  body:not(.tab-game) #step2BackWrap { display: none !important; }

  /* 비활성 탭 — 다크 그린 (cream 배경 위에서 가독성). */
  .bn-tab { color: var(--green-900); }
  /* 활성 탭 — 흰색 (다크 인디케이터 위에서 반전). */
  body.tab-feed .bn-tab[data-tab="feed"],
  body.tab-explore .bn-tab[data-tab="explore"],
  body.tab-record .bn-tab[data-tab="record"],
  body.tab-profile .bn-tab[data-tab="profile"] {
    color: white;
  }
  body.tab-feed .bn-tab[data-tab="feed"] .bn-label,
  body.tab-explore .bn-tab[data-tab="explore"] .bn-label,
  body.tab-record .bn-tab[data-tab="record"] .bn-label,
  body.tab-profile .bn-tab[data-tab="profile"] .bn-label {
    font-weight: 800;
  }

  /* Profile 탭 — avatar (이름/사진 있을 때 SVG 대신 표시) */
  .bn-profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-700);
    color: white;
    font-size: 11px;
    font-weight: 800;
    object-fit: cover;       /* img 사용 시 */
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.85);
  }
  /* 활성 탭 (profile) — avatar 의 border 더 강조 */
  body.tab-profile .bn-tab[data-tab="profile"] .bn-profile-avatar {
    border-color: white;
  }
  /* avatar 가 표시될 때 SVG 숨김 — JS 가 토글 */
  .bn-tab .bn-profile-avatar { display: none; }
  .bn-tab.has-profile-avatar .bn-icon { display: none; }
  .bn-tab.has-profile-avatar .bn-profile-avatar { display: flex; }

  /* Nav 노출 조건:
     - Game 탭 + 홈 상태 (away-from-home 아님) → 보임
     - Feed / Record / Profile 탭 → 항상 보임
     - Game 탭 + wizard/scorecard 등 → 숨김 */
  body.tab-game.away-from-home:not(.picker-nav-visible) .bottom-nav,
  body.no-nav .bottom-nav { display: none !important; }

  /* Body padding-bottom — nav 영역(62px) + nav bottom offset(12px) + safe area(0-34px) + 여유(20px) */
  body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  /* nav 가 숨겨질 땐(라운딩 진행 / no-nav) 여백 줄이기 */
  body.tab-game.away-from-home:not(.picker-nav-visible), body.no-nav { padding-bottom: 40px; }

  /* ====== Profile 탭 큰 카드 ====== */
  .profile-card-big {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 4px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 16px;
  }
  /* ====== 프로필 헤더 — 플랫(테두리 없음) ====== */
  .pf-head { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 10px 2px 4px; }
  .pf-head .profile-avatar-big { width: 116px; height: 116px; font-size: 46px; flex-shrink: 0; }
  .pf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-top: 8px; }
  .pf-name-row { display: flex; align-items: center; gap: 6px; width: 100%; }
  .pf-name { font-size: 23px; font-weight: 900; color: var(--gray-900, #111827); letter-spacing: -0.4px; }
  /* 이름 = 클릭 시 편집 모달. 좌측 정렬(아이디·핸디캡과 왼쪽 끝 일치) 위해 버튼 기본값 제거. */
  .pf-name-btn { background: none; border: none; padding: 0; margin: 0; font-family: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .pf-name-btn:active { opacity: 0.6; }
  .pf-hcp { background: var(--green-50, #eaf6ee); color: var(--green-700, #15803d); border: none; border-radius: 999px; padding: 4px 13px; font-size: 12.5px; font-weight: 800; font-family: inherit; cursor: pointer; }
  /* 핸디캡 — 박스 없이 텍스트 (아이디 아래) */
  .pf-hcp-text { background: none; border: none; padding: 0; margin-top: 3px; color: var(--gray-500, #6b7280); font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer; display: block; text-align: left; }
  .pf-handle { background: none; border: none; padding: 0; margin-top: 3px; color: var(--green-700, #15803d); font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer; display: block; text-align: left; }
  .pf-loc { background: none; border: none; padding: 0; color: var(--gray-500, #6b7280); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 3px; }
  .pf-share { position: absolute; right: 2px; bottom: 4px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.55); border: 1px solid var(--gray-200, #e5e7eb); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; color: var(--gray-700, #374151); font-family: inherit; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  .pf-share:active { transform: scale(0.97); }
  /* 스탯박스 — 부드러운 카드 */
  .pf-statbox { margin-top: 6px; background: transparent; border: none; box-shadow: none; }
  /* 프로필 탭 (활동/포토/태그) */
  .pf-tabs { display: flex; margin: 22px 0 0; border-bottom: 1px solid var(--gray-200, #e5e7eb); }
  .pf-tab { flex: 1; background: none; border: none; padding: 12px 0; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--gray-400, #9ca3af); cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
  .pf-tab.active { color: var(--gray-900, #111827); }
  .pf-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--green-800, #166534); border-radius: 2px; }
  .pf-panel { padding-top: 16px; }
  .pf-empty { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--gray-500, #6b7280); font-size: 13px; padding: 20px 8px; line-height: 1.6; }
  /* 프로필 활동 추가 FAB */
  .pf-fab-wrap { position: fixed; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 88; display: none; flex-direction: column; align-items: flex-end; gap: 12px; }
  body.tab-profile .pf-fab-wrap { display: flex; }
  body.tab-profile #profileTabContent { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.tab-explore #exploreTabContent { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }   /* 코스리뷰 페이지네이션이 홈바에 겹치지 않게 하단 여백 */
  body.viewing-history .pf-fab-wrap, body.viewing-spectate .pf-fab-wrap,
  body.viewing-settings .pf-fab-wrap, body.viewing-notif .pf-fab-wrap,
  body.gc-modal-open .pf-fab-wrap { display: none !important; }
  .pf-fab-backdrop { position: fixed; inset: 0; z-index: 87; display: none; }
  body.pf-fab-open .pf-fab-backdrop { display: block; }
  .pf-fab-btn { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--green-700, #15803d); color: #fff; font-size: 30px; font-weight: 300; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(20,83,45,0.35); display: flex; align-items: center; justify-content: center; transition: transform 0.22s cubic-bezier(0.32,0.72,0,1); -webkit-tap-highlight-color: transparent; }
  .pf-fab-wrap.open .pf-fab-btn { transform: rotate(45deg); }
  .pf-fab-menu { display: none; flex-direction: column; gap: 2px; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); border: 1px solid rgba(255,255,255,0.7); border-radius: 14px; padding: 8px; box-shadow: 0 10px 28px rgba(20,83,45,0.2); }
  .pf-fab-wrap.open .pf-fab-menu { display: flex; animation: pfFabIn 0.22s cubic-bezier(0.32,0.72,0,1); }
  @keyframes pfFabIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
  .pf-fab-title { font-size: 11px; font-weight: 800; color: var(--gray-400, #9ca3af); padding: 2px 12px 4px; }
  .pf-fab-item { display: flex; align-items: center; gap: 10px; background: none; border: none; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--gray-800, #1f2937); padding: 10px 16px 10px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .pf-fab-item:active { background: var(--gray-100, #f1f3f2); }
  .pf-fab-ico { font-size: 18px; }
  .pf-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .pf-photo-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; background: var(--gray-100, #f1f3f2); }
  /* 프로필 아이콘(공유 / 설정) — 이름 줄에 인라인, 우측 정렬(이름과 수직 중앙 일치) */
  .pf-topbar { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
  .pf-icon-btn { background: none; border: none; padding: 8px; color: var(--gray-600, #4b5563); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
  .pf-icon-btn:active { background: var(--gray-100, #f1f3f2); }
  /* 설정 모달 */
  .set-modal { max-width: 460px; width: 100%; }
  .set-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .set-head h3 { font-size: 18px; font-weight: 800; color: var(--green-900, #14532d); margin: 0; }
  .set-section-label { font-size: 12px; font-weight: 800; color: var(--gray-400, #9ca3af); margin: 16px 2px 6px; letter-spacing: 0.2px; }
  #settingsBody { max-width: 520px; margin: 0 auto; padding: 0 2px 28px; }
  .set-card { background: rgba(238, 247, 240, 0.72); border: 1px solid rgba(21, 128, 61, 0.14); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(20, 83, 45, 0.07), inset 0 1px 0 rgba(255,255,255,0.75); }
  .set-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(247,251,247,0.68)); border: none; border-bottom: 1px solid rgba(21,128,61,0.09); border-radius: 0; appearance: none; -webkit-appearance: none; font-family: inherit; text-align: left; cursor: pointer; transition: background .16s ease, transform .16s ease; -webkit-tap-highlight-color: transparent; }
  .set-row:last-child { border-bottom: none; }
  .set-row:hover { background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(234,246,237,0.9)); }
  .set-row:active { background: var(--green-50, #eaf6ee); transform: scale(0.992); }
  .set-row-static { cursor: default; }
  .set-row-static:active { background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(247,251,247,0.68)); transform: none; }
  .set-row-title { font-size: 15px; font-weight: 700; color: var(--gray-900, #111827); }
  .set-row-sub { font-size: 12px; color: var(--gray-500, #6b7280); margin-top: 2px; }
  .set-row-danger { background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(254,242,242,0.72)); }
  .set-row-danger:hover, .set-row-danger:active { background: rgba(254,226,226,0.78); }
  .set-row-danger .set-row-title { color: var(--red, #dc2626); }
  .set-arrow { width: 27px; height: 27px; flex: 0 0 27px; display: inline-flex; align-items: center; justify-content: center; color: var(--green-700, #15803d); background: rgba(21,128,61,0.09); border-radius: 50%; font-size: 19px; line-height: 1; font-weight: 700; }
  .set-row-danger .set-arrow { color: var(--red, #dc2626); background: rgba(220,38,38,0.08); }
  .set-badge { font-size: 11px; font-weight: 800; color: var(--green-700, #15803d); background: var(--green-50, #eaf6ee); padding: 3px 9px; border-radius: 999px; }
  .set-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 2px 14px; }
  /* 알림 토글 스위치 */
  .nt-switch { flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; border: none; background: var(--gray-300, #d1d5db); position: relative; cursor: pointer; padding: 0; transition: background .2s ease; -webkit-tap-highlight-color: transparent; }
  .nt-switch.on { background: var(--green-600, #16a34a); }
  .nt-switch .nt-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform .2s ease; }
  .nt-switch.on .nt-knob { transform: translateX(18px); }
  .profile-avatar-big {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--green-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 14px;
  }
  .profile-avatar-big.no-profile {
    background: var(--gray-200);
    color: var(--gray-600);
  }
  /* 클릭해서 사진 업로드 — label 로 감싸서 input file 트리거.
     overflow: visible — 카메라 뱃지가 원형 밖으로 살짝 나오도록.
     배경 이미지는 border-radius:50% 가 자동 clip 처리. */
  .profile-avatar-big.profile-avatar-clickable {
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: visible;
  }
  .profile-avatar-big.profile-avatar-clickable:active {
    transform: scale(0.96);
  }
  .profile-avatar-big.profile-avatar-clickable:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
  /* 우하단 카메라 뱃지 — 원형 밖으로 살짝 튀어나오도록 (sin45° 위치).
     원형 r=42px 기준 우하단 ~30° 위치에 자리. */
  .profile-avatar-edit-badge {
    position: absolute;
    /* 84x84 원형 가장자리(약 4시 방향) 에 걸쳐서 절반은 원 밖으로 */
    right: -4px;
    bottom: -4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-700, #374151);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    pointer-events: none; /* label 이 클릭 처리 */
    z-index: 2;
  }
  .profile-avatar-edit-badge .pack-icon { width: 17px; height: 17px; }
  .pm-item .pack-icon { width: 20px; height: 20px; margin-right: 9px; vertical-align: -4px; }
  .profile-avatar-file-input {
    /* hidden 속성 + 안전 보강 */
    display: none !important;
  }

  /* ===== 친구 시스템 — modal 안 컴포넌트 ===== */
  .friend-modal { max-height: 90vh; overflow-y: auto; }
  .friend-my-code-box {
    background: linear-gradient(135deg, var(--green-50, #ecfdf5), white);
    border: 1px solid var(--green-200, #a7f3d0);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
  }
  .fmcb-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600, #4b5563);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
  }
  .fmcb-code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 24px;
    font-weight: 800;
    color: var(--green-900, #14532d);
    letter-spacing: 2px;
    margin-bottom: 10px;
    user-select: all; /* tap 으로 전체 선택 가능 */
  }
  .fmcb-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
  }
  .fmcb-btn {
    background: white;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    font-family: inherit;
  }
  .fmcb-btn:active {
    transform: scale(0.96);
    background: var(--gray-50, #f9fafb);
  }
  .friend-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
  }
  .friend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: rgba(255,255,255,0.5);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 4px 16px rgba(20,83,45,0.05);
  }
  .friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
  }
  .friend-info { flex: 1; min-width: 0; }
  .friend-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1px;
  }
  .friend-hcp {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-50, #ecfdf5);
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 4px;
  }
  .friend-stats {
    font-size: 11.5px;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .friend-remove-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 22px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease;
  }
  .friend-remove-btn:active {
    background: var(--gray-100);
    color: var(--gray-700);
  }

  /* Profile 탭 — 친구 코드 미니 chip + 친구 카운트 */
  .profile-friend-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--green-50, #ecfdf5);
    color: var(--green-900);
    border: 1px solid var(--green-100, #d1fae5);
    border-radius: 999px;
    padding: 4px 10px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 6px;
    cursor: pointer;
  }
  .profile-friend-code-chip:active {
    transform: scale(0.96);
    background: var(--green-100);
  }
  .profile-friend-code-chip .pfcc-label {
    font-family: -apple-system, sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0;
    margin-right: 2px;
  }

  /* Profile 탭 — 약관 / 개인정보 footer 링크. 스크롤 끝에서 homebar 위로 보이도록 추가 여백. */
  .profile-install-btn {
    width: 100%; margin-top: 16px; padding: 13px; border: 1.5px solid var(--green-600, #2e8b57);
    border-radius: 12px; background: var(--green-50, #eef7f0); color: var(--green-900, #14532d);
    font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    -webkit-tap-highlight-color: transparent;
  }
  .profile-install-btn:active { transform: scale(0.98); }
  .profile-install-btn span { font-size: 17px; }
  .profile-legal-links {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100, #f3f4f6);
    font-size: 12px;
    color: var(--gray-400);
  }
  .profile-legal-links a {
    color: var(--gray-500);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .profile-legal-links .pll-dot { margin: 0 8px; color: var(--gray-300); }

  .profile-name-big {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
  }
  /* 이름 + 핸디캡 한 줄 */
  .profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    max-width: 100%;
    margin-bottom: 2px;
  }
  .profile-name-row .profile-name-big {
    margin-bottom: 0;
    font-size: 19px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-hcp-big {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--green-700);
    background: var(--green-50);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--green-200);
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .profile-hcp-big:active { transform: scale(0.96); }
  .profile-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  /* 프로필 카드 — 좌(아바타/이름/핸디캡) + 우(라이프베스트·평균타수 2x1 세로) */
  .profile-top-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }
  .profile-id-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .profile-stats-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  .profile-stats-col .profile-stat-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 6px;
    background: var(--gray-50, #f9fafb);
  }
  /* 라베/평균/타수 — 팔로잉/팔로워와 동일 크기, 모두 한 줄 */
  .profile-stats-col .profile-stat-label { font-size: 10.5px; white-space: nowrap; }
  .profile-stats-col .profile-stat-value { font-size: 18px; white-space: nowrap; }
  .profile-stats-col .profile-stat-sub { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .profile-mini-row { display: flex; gap: 8px; }
  .profile-handle-chip {
    display: inline-block;
    max-width: 100%;
    margin: 7px 0 6px;
    padding: 4px 12px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 999px;
    color: var(--green-900);
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
  }
  .profile-handle-chip:active { transform: scale(0.98); }
  .profile-mini {
    flex: 1;
    min-width: 0;
    background: var(--gray-50, #f9fafb);
    border: none;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    -webkit-tap-highlight-color: transparent;
  }
  .profile-mini:active { transform: scale(0.97); }
  /* 라벨(위) + 숫자(아래) — 라베/평균과 동일 포맷, 모두 한 줄 */
  .profile-mini .pm-label { font-size: 10.5px; font-weight: 700; color: var(--gray-500); white-space: nowrap; margin-bottom: 2px; }
  .profile-mini .pm-value { font-size: 18px; font-weight: 900; color: var(--green-900); white-space: nowrap; }
  /* ===== 프로필 탭 리디자인 ===== */
  .profile-page-sub { font-size: 13px; color: var(--gray-500); font-weight: 500; margin: -4px 0 2px; }
  /* 카드 패딩을 최소화(4px)했으므로 헤더(아바타+이름)만 자체 여백을 가져 답답하지 않게 */
  .profile-id-head { display: flex; align-items: center; gap: 16px; padding: 16px 16px 6px; }
  .profile-id-info { flex: 1; min-width: 0; }
  .profile-id-info .profile-name-row { justify-content: flex-start; }
  .profile-id-info .profile-handle-chip { margin: 8px 0 0; }
  .profile-id-info .profile-login-row { margin-top: 10px; }
  /* 스탯 박스들 — 카드 가장자리(4px)까지 꽉 차게 넓고 크게 */
  .profile-stats-4 { display: flex; gap: 7px; margin-top: 6px; }
  .profile-stat4 {
    flex: 1; min-width: 0; position: relative;
    display: flex; flex-direction: column; align-items: center;
    /* 글라스 — 통계 화면 카드와 통일 */
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 83, 45, 0.05);
    padding: 18px 6px 20px; min-height: 112px; text-align: center; font-family: inherit; overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }
  button.profile-stat4 { cursor: pointer; }
  button.profile-stat4:active { transform: scale(0.97); }
  /* 라벨 모두 한 줄 — 좁아도 폰트를 줄여 '라이프 베스트' 한 줄에 들어가게, 정렬 통일 */
  /* 라벨은 최대한 1줄 — 폰트·자간을 줄여 보통 기기선 한 줄, 아주 좁을 때만 줄바꿈(잘림 없음). */
  .profile-stat4 .s4-label { font-size: 9.5px; font-weight: 700; color: var(--gray-500); white-space: normal; word-break: keep-all; overflow-wrap: break-word; line-height: 1.2; letter-spacing: -0.3px; }
  .profile-stat4 .s4-value { font-size: 27px; font-weight: 900; color: var(--green-900); line-height: 1.05; margin-top: 7px; }
  .profile-stat4 .s4-sub { font-size: 9px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 7px; }
  .profile-stat4 .s4-ico { position: absolute; right: 8px; bottom: 7px; color: var(--green-700); opacity: 0.15; }
  /* 팔로잉 칸 우상단 — 진한 친구추가 아이콘. */
  .profile-stat4 .s4-add-ico { position: absolute; right: 7px; bottom: 7px; color: var(--green-900, #14532d); line-height: 0; }
  .profile-stat4 .s4-add-ico .pack-icon { width: 18px; height: 18px; }
  .profile-action-cards { display: flex; gap: 10px; margin-top: 14px; }
  .profile-action-card {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
    background: white; border: 1px solid var(--gray-100); border-radius: 14px;
    padding: 14px 12px; cursor: pointer; font-family: inherit; text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); -webkit-tap-highlight-color: transparent;
  }
  .profile-action-card:active { transform: scale(0.98); }
  .pac-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green-700); color: white; display: flex; align-items: center; justify-content: center; }
  .pac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .pac-title { font-size: 14px; font-weight: 800; color: var(--gray-900); }
  .pac-desc { font-size: 10px; color: var(--gray-500); line-height: 1.3; margin-top: 2px; word-break: keep-all; }
  .pac-chev { color: var(--gray-300); font-size: 20px; flex-shrink: 0; }
  .profile-cta-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 16px; padding: 18px 20px; border-radius: 18px; overflow: hidden;
    background: linear-gradient(120deg, #eef5ea 0%, #dcebd5 100%);
  }
  .pcb-text { min-width: 0; }
  .pcb-title { font-size: 19px; font-weight: 900; color: var(--green-900); letter-spacing: -0.3px; }
  .pcb-sub { font-size: 12.5px; color: #5b6b5f; margin: 4px 0 12px; }
  .pcb-btn { background: #14532d; color: white; border: none; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 800; font-family: inherit; cursor: pointer; }
  .pcb-btn:active { transform: scale(0.97); }
  .pcb-illo { width: 116px; height: 88px; flex-shrink: 0; }
  /* ===== 피드/통계/프로필 — 탭 배경 크림(투명) + 박스 글라스 ===== */
  #feedTab, #exploreTab, #recordTab, #profileTab {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    /* .card 의 좌우/상단 padding 제거 — body 의 좌우 16px 만 남겨 Game 탭과 시작점 일치(이중 패딩 제거).
       하단은 플로팅 하단 네비(홈바)에 마지막 카드가 가리지 않도록 넉넉히 확보. */
    padding: 6px 0 80px !important;
    margin: 0 !important;
  }
  .profile-card-big,
  .profile-action-card,
  .live-card,
  .fcs-preview-item,
  #recordTabContent .profile-stat-box,
  #recordTabContent .recent-round-item,
  .record-future-item {
    background: rgba(255, 255, 255, 0.74) !important;
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 4px 16px rgba(20, 83, 45, 0.05) !important;
  }
  .profile-card-big .profile-stat4 {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .profile-cta-banner { background: linear-gradient(120deg, rgba(238,245,234,0.85), rgba(216,234,210,0.85)) !important; }
  /* 친구 모달 — 팔로워/팔로잉 탭 */
  .follow-tabs { display: flex; gap: 6px; margin: 4px 0 14px; }
  .follow-tab {
    flex: 1;
    padding: 9px 8px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    font-family: inherit;
  }
  .follow-tab.active { background: var(--green-700); color: white; border-color: var(--green-700); }
  .follow-tab span { opacity: 0.85; font-size: 12px; font-weight: 600; }
  /* 친구 행 — 프로필 영역 클릭 가능 */
  .friend-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }
  .friend-row-main:active { opacity: 0.6; }
  /* 친구 공개 프로필 — 독립 풀스크린 페이지 */
  #publicProfileModal { padding:0; align-items:flex-start; overflow-y:auto; background:var(--app-bg,#F7F9F7); }
  #publicProfileModal .public-profile-page { width:100%; max-width:560px !important; min-height:100dvh; max-height:none !important; margin:0 auto; padding:calc(env(safe-area-inset-top,0px) + 14px) 18px calc(env(safe-area-inset-bottom,0px) + 28px); overflow:visible; box-sizing:border-box; border:0; border-radius:0; background:var(--app-bg,#F7F9F7); box-shadow:none; animation:none; }
  .pp-page-nav { display:flex; align-items:center; justify-content:space-between; min-height:48px; }
  .pp-page-back, .pp-page-more { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:rgba(255,255,255,.62); color:var(--green-900); font-family:inherit; font-size:28px; font-weight:700; cursor:pointer; }
  .pp-page-more { font-size:20px; letter-spacing:1px; }
  .pp-head { display:grid; grid-template-columns:92px minmax(0,1fr); align-items:center; gap:18px; padding:34px 5px 26px; text-align:left; }
  .pp-avatar {
    width: 92px; height: 92px; border-radius: 50%;
    background: var(--green-700); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 900; margin:0;
  }
  .pp-name { font-size:22px; font-weight:900; color:var(--gray-900); }
  .pp-handle { margin-top:5px; color:var(--green-700); font-size:12px; font-weight:750; }
  .pp-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
  .pp-metric { min-width:0; padding:15px 10px; border:1px solid rgba(21,128,61,.08); border-radius:16px; background:rgba(255,255,255,.58); }
  .pp-metric b { display:block; overflow:hidden; color:var(--green-900); font-size:22px; font-weight:900; text-overflow:ellipsis; white-space:nowrap; }
  .pp-metric span { display:block; margin-top:4px; color:var(--gray-500); font-size:11px; font-weight:700; }
  /* 팔로우/본인일 때 팔로워·팔로잉 칸은 클릭 가능 — .pp-metric 박스 스타일 위에 버튼 리셋만 얹는다 */
  button.pp-metric-btn { width:100%; margin:0; font-family:inherit; text-align:center; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background .12s ease, border-color .12s ease; }
  button.pp-metric-btn:active { background:rgba(21,128,61,.08); border-color:rgba(21,128,61,.18); }
  /* '○○님이 팔로우합니다' 소셜 프루프 줄 (팔로워/팔로잉 ↔ +팔로우 사이) */
  .pp-followedby { margin:11px 2px 0; }
  .pp-followedby-btn { width:100%; display:flex; align-items:center; gap:4px; padding:0; border:none; background:transparent; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--gray-600,#4b5563); text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; line-height:1.5; }
  .pp-followedby-btn b { font-weight:800; color:var(--gray-800,#1f2937); }
  .pp-followedby-btn .pp-fb-arrow { margin-left:auto; color:var(--gray-400,#9ca3af); font-size:16px; font-weight:700; flex:0 0 auto; }
  /* 팔로워 목록 서브뷰 행 */
  .pp-follow-row { display:flex; align-items:center; gap:11px; padding:10px 4px; cursor:pointer; -webkit-tap-highlight-color:transparent; border-bottom:1px solid rgba(20,83,45,.06); }
  .pp-follow-av { flex:0 0 auto; width:42px; height:42px; border-radius:50%; background:var(--green-700,#15803d); color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:800; }
  .pp-follow-info { flex:1; min-width:0; }
  .pp-follow-nm { font-size:14px; font-weight:800; color:var(--gray-900,#111827); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pp-follow-h { margin-top:1px; font-size:11.5px; font-weight:600; color:var(--gray-500,#6b7280); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pp-follow-btn { flex:0 0 auto; min-height:34px; padding:0 14px; border-radius:11px; font-size:12.5px; }
  /* ＋팔로우 — 연한 초록 fill(아는 친구 초대 박스와 동일 톤), 테두리 없음. */
  .pp-follow-btn:not(.ghost), .suggest-follow:not(.ghost) { background:var(--green-50,#eef7f0) !important; color:var(--green-700,#15803d) !important; border:none !important; box-shadow:none !important; font-weight:800; }
  .pp-follow-btn:not(.ghost):hover, .suggest-follow:not(.ghost):hover { background:#d7efdf !important; }
  /* ✓팔로잉(done) — 톤다운한 연회색, 테두리·그림자 없음. */
  .pp-follow-btn.ghost, .suggest-follow.ghost { background:#f2f4f3 !important; color:#9ca3af !important; border:none !important; box-shadow:none !important; font-weight:700; }
  .pp-follow-btn:not(.ghost):active, .suggest-follow:active, .pp-follow-btn.ghost:active { transform:scale(.96); }
  /* ===== 중앙 플레이 슬롯(네비 통합) + 픽커 바텀시트 ===== */
  /* 5칸 중 가운데 — 위로 솟은 초록 원형 FAB + '플레이' 라벨. 항상 노출(모든 탭). */
  .bn-play { flex:1; margin:0 1.1%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:2px; padding:6px 4px; background:transparent; border:none; cursor:pointer; font-family:inherit; position:relative; z-index:2; -webkit-tap-highlight-color:transparent; }  /* 좌우 마진(%,기기독립) → 플레이 양옆 간격. 인디케이터 오프셋도 이에 맞춰 보정됨 */
  .bn-play-fab { width:56px; height:56px; margin-top:-26px; border-radius:50%; background:#fff; box-shadow:0 6px 16px rgba(20,83,45,.18); border:1px solid rgba(20,83,45,.08); display:flex; align-items:center; justify-content:center; transition:transform .12s ease; }
  .bn-play-icon { display:flex; flex-direction:column; align-items:center; }
  .bn-play-img { display:block; height:40px; width:auto; margin-top:-3px; }   /* 라인아트 골프공+티(단일 아이콘) */
  .bn-play .bn-label { font-size:10px; font-weight:800; letter-spacing:.02em; color:var(--green-900); }  /* 비활성 탭 라벨과 동일 그린 */
  .bn-play:active .bn-play-fab { transform:scale(.92); }
  /* 플레이 픽커 — 하단 시트(큰 카드). 제목·부제 + 실시간/OCR/참가 3개 큰 카드. */
  .play-sheet-overlay { position:fixed; inset:0; z-index:200; background:rgba(20,30,24,.32); opacity:0; pointer-events:none; transition:opacity .2s ease; display:flex; align-items:flex-end; }
  .play-sheet-overlay.open { opacity:1; pointer-events:auto; }
  /* 홈바 위에 뜨는 팝업 — 하단 네비를 가리지 않도록 margin-bottom 으로 띄움. 좌우 여백 + 전체 라운드. */
  .play-sheet { position:relative; width:calc(100% - 24px); margin:0 12px calc(env(safe-area-inset-bottom,0px) + 114px); background:#F7F9F7; border-radius:28px; padding:28px 17px 23px; box-shadow:0 12px 34px rgba(0,0,0,.20); transform:translateY(24px) scale(.98); opacity:0; transition:transform .26s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
  .play-sheet-overlay.open .play-sheet { transform:translateY(0) scale(1); opacity:1; }
  .play-sheet-handle { display:none; }
  .play-sheet-x { position:absolute; top:13px; right:13px; width:37px; height:37px; border:none; background:transparent; color:var(--gray-400,#9ca3af); font-size:28px; line-height:1; cursor:pointer; -webkit-tap-highlight-color:transparent; z-index:1; }
  .play-sheet-title { text-align:center; margin:3px 0 5px; font-size:26px; font-weight:900; color:var(--gray-900,#111827); }
  .play-sheet-sub { text-align:left; margin:2px 4px 18px; font-size:19px; font-weight:800; color:var(--gray-900,#111827); }
  /* 부차 액션 그룹 라벨 — 큰 카드(시작)와 작은 2열(참가·단체전) 사이 구분. */
  .play-sheet-subhead { text-align:left; margin:19px 4px 11px; font-size:12.5px; font-weight:700; letter-spacing:.2px; color:var(--gray-400,#9ca3af); }
  .play-card { display:flex; align-items:center; gap:16px; width:100%; padding:24px 17px; margin-bottom:14px; background:#fff; border:1px solid rgba(20,83,45,.06); border-radius:21px; box-shadow:0 4px 14px rgba(20,83,45,.06); font-family:inherit; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:transform .12s ease; }
  .play-card:last-child { margin-bottom:0; }
  .play-card:active { transform:scale(.985); }
  /* 그린 라인아트 아이콘(흰배경 제거·타이트 크롭됨) — in-flow, 박스 꽉 채움 */
  .play-card-ic { position:relative; flex:0 0 auto; width:76px; height:76px; display:flex; align-items:center; justify-content:center; }
  .play-card-ic svg { width:37px; height:37px; }
  .play-card-ic .pc-img { width:76px; height:76px; object-fit:contain; }
  .pc-ic-green { background:transparent; }
  .pc-ic-amber { background:transparent; }
  .pc-live-badge { position:absolute; top:-2px; left:-4px; display:inline-flex; align-items:center; gap:3px; padding:2px 8px; background:var(--green-700,#15803d); color:#fff; font-size:11px; font-weight:800; letter-spacing:.3px; border-radius:999px; }
  .pc-live-dot { width:5px; height:5px; border-radius:50%; background:#fff; }
  .play-card-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
  .pc-title { font-size:20px; font-weight:900; color:var(--gray-900,#111827); word-break:keep-all; }
  .pc-sub { font-size:14.5px; font-weight:600; color:var(--gray-500,#6b7280); line-height:1.45; white-space:nowrap; }
  .pc-chev { flex:0 0 auto; color:var(--gray-300,#d1d5db); font-size:25px; font-weight:700; }
  /* 라운드 참가 — '시작'이 아니므로 큰 카드 대신 하단 얇은 링크. 아이콘 없음(단체팀과 충돌 회피). */
  /* 부차 액션(단체전·네트워크 참가) — 라이브/OCR 큰 카드 아래 작은 2열. */
  .play-mini-row { display:flex; gap:11px; margin-top:0; }
  .play-card-sm { flex:1 1 0; min-width:0; display:flex; flex-direction:row; align-items:center; text-align:left; gap:10px; padding:11px 12px; background:#fff; border:1px solid rgba(20,83,45,.06); border-radius:14px; box-shadow:0 3px 10px rgba(20,83,45,.05); font-family:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:transform .12s ease; }
  .play-card-sm:active { transform:scale(.98); }
  .play-card-sm .pcs-img { width:30px; height:30px; flex:0 0 auto; object-fit:contain; }
  .play-card-sm .pcs-txt { display:flex; flex-direction:column; gap:1px; min-width:0; }
  .play-card-sm .pcs-title { font-size:14px; font-weight:800; color:var(--gray-900,#111827); word-break:keep-all; display:inline-flex; align-items:center; gap:6px; }
  /* 제목 줄에만 얹히는 작은 인라인 아이콘(카드 높이 안 먹음). 부제는 아랫줄 전체폭 유지. */
  .play-card-sm .pcs-ic { width:15px; height:15px; flex:0 0 auto; color:var(--green-700,#15803d); }
  .play-card-sm .pcs-sub { font-size:11px; font-weight:600; color:var(--gray-500,#6b7280); line-height:1.3; word-break:keep-all; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .play-join-link { display:block; width:100%; margin:6px 0 0; padding:14px 8px 4px; border:0; background:none; font-family:inherit; font-size:13.5px; font-weight:600; color:var(--gray-500,#6b7280); text-align:center; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .play-join-link b { color:var(--green-700,#15803d); font-weight:800; margin-left:2px; }
  .play-join-link:active { opacity:.6; }
  .pp-actions { display:grid; grid-template-columns:1fr; gap:9px; margin-top:12px; }
  .pp-actions .promote-btn { width:100%; min-height:50px; border-radius:15px; }
  .pp-section-card { margin-top:16px; padding:18px; border:1px solid rgba(21,128,61,.08); border-radius:18px; background:rgba(255,255,255,.58); }
  button.pp-section-card { width:100%; color:inherit; font-family:inherit; text-align:left; cursor:pointer; }
  button.pp-section-card:active { background:rgba(238,247,240,.82); }
  .pp-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:17px; }
  .pp-section-title { color:var(--gray-900); font-size:16px; font-weight:850; }
  .pp-section-sub { margin-top:3px; color:var(--gray-400); font-size:10.5px; }
  .pp-section-arrow { color:var(--green-700); font-size:22px; }
  .pp-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
  .pp-stat-label { color:var(--gray-500); font-size:11px; font-weight:700; }
  .pp-stat-value { margin-top:7px; color:var(--green-900); font-size:28px; font-weight:900; }
  .pp-round-list-head { margin:28px 2px 14px; color:var(--gray-900); font-size:20px; font-weight:900; }
  /* [P1] 친구 프로필의 피드 활동(.act-list)을 홈 피드와 동일 폭으로 — 모달 페이지 좌우 18px 패딩 밖으로 브레이크아웃(카드 자체 14 인셋만). */
  #publicProfileModal .act-list { margin-left:-18px; margin-right:-18px; }
  .pp-round-mask-note { margin:-7px 2px 14px; color:var(--gray-500); font-size:11px; line-height:1.45; }
  .pp-round-item { margin-bottom:9px; padding:15px; border:1px solid rgba(21,128,61,.08); border-radius:16px; background:rgba(255,255,255,.62); }
  .pp-round-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
  .pp-round-course { color:var(--gray-900); font-size:14px; font-weight:850; }
  .pp-round-date { margin-top:3px; color:var(--gray-400); font-size:10.5px; }
  .pp-round-score { flex:0 0 auto; color:var(--green-800); font-size:19px; font-weight:900; }
  .pp-round-mates { margin-top:10px; padding-top:9px; border-top:1px solid rgba(21,128,61,.08); color:var(--gray-500); font-size:11px; }
  .pp-round-empty { padding:44px 12px; color:var(--gray-400); font-size:13px; text-align:center; }
  .follow-search { display: flex; gap: 8px; }
  .follow-search input {
    flex: 1; min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
  }
  .follow-search input:focus { outline: none; border-color: var(--green-700); }
  .follow-search-wrap { position: relative; margin-bottom: 10px; }
  /* 검색 결과 — 드롭다운(목록 가림) 대신 검색박스 아래 인라인으로 표시(아래 목록을 밀어냄). */
  #followSearchResult:not(:empty) {
    margin-top: 8px;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 4px 8px;
  }
  #followSearchResult .friend-row { background: transparent; box-shadow: none; }
  /* 친구 모달을 크림 톤으로 → 글라스 행이 살아나게 */
  .modal.friend-modal { background: rgba(250,248,242,0.96); }
  /* 공개 프로필 팝업 — 활동 피드 카드처럼 글라스 */
  /* ===== 팔로우 / 팔로잉 버튼 — 시각적으로 명확히 구분 ===== */
  /* 팔로우(아직 안 함) — 채워진 초록 CTA, 누르고 싶은 느낌. */
  .promote-btn {
    flex-shrink: 0; font-family: inherit; font-size: 13px; font-weight: 800;
    padding: 8px 16px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--green-700, #15803d); color: #fff; white-space: nowrap;
    box-shadow: 0 3px 10px rgba(20,83,45,0.28);
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
  }
  .promote-btn:not(.ghost):active { transform: scale(0.94); box-shadow: 0 1px 4px rgba(20,83,45,0.3); }
  .promote-btn:not(.ghost):hover { background: var(--green-900, #14532d); }
  /* 팔로잉(이미 함) — 눌려있는 듯한 muted inset. 클릭 유도 없음. */
  .promote-btn.ghost {
    background: var(--gray-100, #f1f3f2); color: var(--gray-500, #6b7280);
    border: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.10);
    font-weight: 700;
  }
  .promote-btn.ghost:active { transform: scale(0.97); }
  /* ===== 추천 친구 — 가로 스크롤 카드 ===== */
  .suggest-list { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 4px 16px; scrollbar-width: none; }   /* [P1] inset 좌16/우0 — 첫 카드 16, 우측은 화면 끝까지 블리드(가로 스크롤) */
  .suggest-list::-webkit-scrollbar { display: none; }
  /* 글라스 스타일 — 반투명 + blur (bottom-nav 와 동일 톤). */
  .suggest-card { flex: 0 0 auto; width: 116px; background: var(--app-surface,#fff); border: 1px solid var(--line,#eceeec); border-radius: 14px; padding: 10px 5px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: 0 4px 14px rgba(20,83,45,0.06); }
  .suggest-card-main { background: none; border: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; font-family: inherit; -webkit-tap-highlight-color: transparent; }
  .suggest-av-wrap { position: relative; display: inline-block; margin-bottom: 2px; }
  .suggest-avatar { width: 52px; height: 52px; border-radius: 50%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; }
  .suggest-avatar-i { background: #166534; }
  /* 공통 친구 칩 — 아바타 우측상단 코너에 걸치도록 */
  .suggest-common { position: absolute; top: -4px; right: -19px; opacity: 0.9; background: #fff; border: 1px solid rgba(21,128,61,.2); border-radius: 999px; padding: 1px 6px; font-size: 9.5px; font-weight: 800; color: var(--green-700,#15803d); white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .suggest-name { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; font-size: 13px; font-weight: 800; color: var(--gray-900, #111827); }
  .suggest-name .sn-txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .suggest-gh { flex: 0 0 auto; font-size: 10px; font-weight: 800; color: var(--green-700,#15803d); background: var(--green-50,#eef7f0); border-radius: 6px; padding: 1px 5px; }
  .suggest-sub { font-size: 10px; color: var(--gray-500, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* 팔로우 전 — 흰 바탕 + 초록 폰트/테두리(목업) */
  .suggest-follow { margin-top: 7px; padding: 6px 14px; font-size: 11.5px; }
  /* 카카오 로그인 */
  .kakao-login-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #FEE500;
    color: #191600;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
  }
  .kakao-login-btn:active { opacity: 0.85; }
  /* Sign in with Apple — 애플 브랜드 가이드(검정 배경, 흰 로고+텍스트). */
  .apple-login-btn {
    width: 100%; margin-top: 8px; padding: 12px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: #000; color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .apple-login-btn:active { opacity: 0.85; }
  .apple-login-btn svg { width: 15px; height: 15px; margin-top: -2px; fill: #fff; }
  .email-login-btn { width: 100%; padding: 12px; background: rgba(255,255,255,0.6); color: var(--green-900, #14532d); border: 1.5px solid var(--gray-200, #e5e7eb); border-radius: 10px; font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .email-login-btn:active { opacity: 0.85; }
  .profile-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
  }
  .profile-login-row .pl-status { font-size: 12px; color: var(--gray-500); font-weight: 600; }
  .profile-login-row .pl-logout {
    background: none; border: none; color: var(--gray-400);
    font-size: 12px; font-weight: 600; text-decoration: underline;
    cursor: pointer; font-family: inherit; padding: 0;
  }
  .profile-stat-box {
    background: white;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .profile-stat-label {
    font-size: 11.5px;
    color: var(--gray-500);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .profile-stat-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--green-900);
  }
  .profile-stat-sub {
    font-size: 10.5px;
    color: var(--gray-400);
    margin-top: 2px;
  }
  /* 클릭 가능한 stat box (Statistics 탭의 총 라운드 등) — button reset + tap feedback */
  button.profile-stat-box-clickable {
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
  button.profile-stat-box-clickable:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  /* 총 라운드 — 저장된 기록 보기 CTA (풀폭, 강조) */
  .stat-total-cta { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border:1.5px solid rgba(20,83,45,0.22) !important; background:linear-gradient(180deg, rgba(255,255,255,0.7), rgba(238,247,240,0.7)); }
  .stat-total-cta .stc-left { grid-column:2; text-align:center; }   /* 총 라운드 — 가운데 */
  .stat-total-cta .stc-unit { font-size:15px; font-weight:800; color:var(--gray-500,#6b7280); margin-left:2px; }
  .stat-total-cta .stc-right { grid-column:3; justify-self:end; text-align:right; }   /* 저장된 기록 보기 — 우측 */
  .stat-total-cta .stc-cta-main { font-size:12px; font-weight:700; color:var(--green-700,#15803d); }

  /* Statistics — 결과와 변화가 먼저 읽히는 요약 구조 */
  .stats-hero {
    position: relative; overflow: hidden;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(150deg, #14532d 0%, #1c8049 100%);   /* 짙은→조금 밝은 초록 은은한 그라데이션 */
    border: none;
    box-shadow: 0 8px 22px rgba(20,83,45,0.20);
  }
  .stats-hero::after { content:''; position:absolute; top:-40px; right:-40px; width:128px; height:128px; border-radius:50%; border:1.5px solid rgba(255,255,255,0.13); pointer-events:none; }   /* 우상단 낮은 투명도 원형 라인 하나(장식) */
  .stats-hero > * { position: relative; }
  .stats-hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
  .stats-hero-label { font-size:12px; font-weight:700; color:rgba(255,255,255,0.72); }
  .stats-hero-value { margin-top:4px; font-size:40px; line-height:1.05; font-weight:900; color:#fff; letter-spacing:-1.2px; font-variant-numeric:tabular-nums; }
  .stats-delta { flex-shrink:0; margin-top:3px; padding:5px 9px; border-radius:999px; background:rgba(255,255,255,0.16); color:#fff; font-size:11px; font-weight:800; }
  .stats-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.16); }
  .stats-kpi { min-width:0; }
  .stats-kpi-label { display:block; font-size:10.5px; font-weight:700; color:rgba(255,255,255,0.66); white-space:nowrap; }
  .stats-kpi-value { display:block; margin-top:3px; font-size:16px; font-weight:900; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .stats-card { padding:14px; border-radius:16px; background:rgba(255,255,255,0.62); border:1px solid rgba(255,255,255,0.75); box-shadow:0 4px 16px rgba(20,83,45,0.05); -webkit-backdrop-filter:blur(14px) saturate(145%); backdrop-filter:blur(14px) saturate(145%); }
  .stats-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
  .stats-card-title { font-size:13px; font-weight:800; color:var(--gray-800); }
  .stats-card-link { border:none; background:none; padding:3px 0; color:var(--green-700); font-family:inherit; font-size:11.5px; font-weight:700; cursor:pointer; }
  .stats-trend-svg { display:block; width:100%; height:auto; overflow:visible; }
  .stats-trend-empty { padding:20px 4px; text-align:center; font-size:12px; color:var(--gray-500); }
  .stats-detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
  .stats-detail-item { min-width:0; padding:12px 5px; border-radius:12px; background:rgba(255,255,255,0.68); border:1px solid var(--gray-100); text-align:center; }
  .stats-detail-label { font-size:10.5px; font-weight:700; color:var(--gray-500); }
  .stats-detail-value { margin-top:4px; font-size:18px; font-weight:900; color:var(--green-900); }
  .stats-detail-sample { margin-top:9px; text-align:right; font-size:10.5px; color:var(--gray-400); }
  .stats-radar-card { padding-bottom:5px; }
  .stats-strength { margin:8px 2px 4px; padding:12px 14px; border-radius:12px; background:rgba(21,128,61,0.07); font-size:12.5px; font-weight:600; color:var(--gray-700,#374151); line-height:1.5; word-break:keep-all; }
  .stats-strength b, .stats-strength .ss-val { color:#15803d; font-weight:800; }
  /* ===== 통계 등장 애니 — 기본=최종상태(정지), .stats-anim-play 일 때만 재생. 레이더 면적 펼침은 JS(_recPlayStatsAnims). ===== */
  .radar-data { fill: rgba(21,128,61,0.20); }   /* CSS fill 이 인라인 url() override — 은은한 20% 초록 채움 */
  .stats-trend-line { stroke-dasharray: 1; stroke-dashoffset: 0; }   /* pathLength=1: 기본은 다 그려진 상태(애니 없어도 완전) */
  .stats-anim-play .stats-trend-line { stroke-dashoffset: 1; animation: stTrendDraw 1s ease-out forwards; }
  .stats-anim-play .stats-trend-area { opacity: 0; animation: stStatFade .5s ease-out .5s forwards; }
  .stats-anim-play .stats-trend-dots { opacity: 0; animation: stStatFade .35s ease-out .85s forwards; }
  @keyframes stTrendDraw { to { stroke-dashoffset: 0; } }
  @keyframes stStatFade { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .stats-anim-play .stats-trend-line, .stats-anim-play .stats-trend-area, .stats-anim-play .stats-trend-dots { animation: none; stroke-dashoffset: 0; opacity: 1; }
  }
  /* 레이더 오버랩 범례(공개 프로필: 상대 vs 나) — 컬러 pill */
  .radar-legend { display:flex; justify-content:center; gap:10px; margin:0 0 4px; }
  .radar-legend-pill { display:inline-flex; align-items:center; max-width:44%; padding:5px 15px; border-radius:999px; font-size:12px; font-weight:800; color:#fff; letter-spacing:.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .radar-legend-pill.rl-them { background:#15803d; }
  .radar-legend-pill.rl-me { background:#2563eb; }
  .stats-card-meta { flex-shrink:0; text-align:right; font-size:10.5px; font-weight:500; color:var(--gray-400); white-space:nowrap; }
  .stats-empty-action { width:100%; margin-top:12px; padding:11px; border:1px solid rgba(21,128,61,0.24); border-radius:999px; background:var(--green-50,#eef7f0); color:var(--green-700); font-family:inherit; font-size:13px; font-weight:800; cursor:pointer; }
  .stats-first-empty { padding:20px 16px 16px; text-align:center; }
  .stats-first-empty-title { font-size:16px; font-weight:900; color:var(--gray-900); }
  .stats-first-empty-copy { margin-top:6px; font-size:12.5px; line-height:1.55; color:var(--gray-500); }
  .stats-locked-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; border-radius:14px; background:rgba(255,255,255,0.42); border:1px solid rgba(255,255,255,0.62); color:var(--gray-400); }
  .stats-locked-row + .stats-locked-row { margin-top:8px; }
  .stats-locked-title { font-size:12.5px; font-weight:800; color:var(--gray-600); }
  .stats-locked-copy { font-size:11px; text-align:right; }
  .login-empty-copy { padding:18px 10px 14px; text-align:center; }
  .login-empty-title { display:block; font-size:15px; font-weight:900; color:var(--gray-900); }
  .login-empty-sub { display:block; margin-top:5px; font-size:12.5px; line-height:1.55; color:var(--gray-500); }
  .app-confirm-modal { width:min(100%, 360px); padding:22px 20px 18px; text-align:left; }
  .app-confirm-title { margin:0; font-size:18px; font-weight:900; color:var(--gray-900); }
  .app-confirm-message { margin:8px 0 18px; font-size:13px; line-height:1.55; color:var(--gray-600); white-space:pre-line; }
  .app-confirm-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .app-confirm-actions button { min-height:44px; border-radius:12px; border:1px solid var(--gray-200); font-family:inherit; font-size:14px; font-weight:800; cursor:pointer; }
  .app-confirm-cancel { background:#fff; color:var(--gray-700); }
  .app-confirm-ok { border-color:var(--green-800) !important; background:var(--green-900); color:#fff; }
  .app-confirm-ok.danger { border-color:#b91c1c !important; background:#b91c1c; color:#fff !important; }
  /* 단일버튼 알림(취소 없음) — 좁은 폭·내용 중앙정렬·버튼 풀폭 */
  .app-confirm-modal.single { width:min(100%, 300px); text-align:center; }
  .app-confirm-modal.single .app-confirm-message { margin-bottom:16px; }
  .app-confirm-modal.single .app-confirm-actions { grid-template-columns:1fr; }
  /* 삭제 확인 대상 라운드 카드 */
  .app-confirm-card { margin:2px 0 12px; padding:11px 13px; background:var(--green-50,#eef7f0); border:1px solid rgba(20,83,45,.12); border-radius:12px; }
  .save-miss-list { font-size:12.5px; line-height:1.7; color:var(--gray-700,#374151); word-break:keep-all; }
  .save-miss-list b { color:var(--green-800,#166534); font-weight:800; }
  .app-confirm-card .acd-top { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 8px; }
  .app-confirm-card .acd-date { font-size:12px; font-weight:800; color:var(--gray-500,#6b7280); }
  .app-confirm-card .acd-venue { font-size:14px; font-weight:800; color:var(--green-900,#14532d); }
  .app-confirm-card .acd-mates { margin-top:4px; font-size:12.5px; font-weight:600; color:var(--gray-600,#4b5563); line-height:1.4; }
  /* 전적 탭 — 함께한 플레이어별 승/무/패 */
  .rival-head { font-size:15px; font-weight:800; color:var(--gray-900,#111827); margin:6px 2px 12px; }
  .rival-head b { color:var(--green-700,#15803d); }
  .rival-head-note { font-size:12px; font-weight:600; color:var(--gray-400,#9ca3af); }
  .rival-list { display:flex; flex-direction:column; gap:10px; }
  .rival-card { display:flex; align-items:center; gap:12px; padding:13px 14px; background:#fff; border:1px solid var(--gray-200,#e5e7eb); border-radius:16px; box-shadow:0 1px 2px rgba(15,40,25,.04); }
  .rival-av { flex:0 0 auto; display:inline-flex; }
  .rival-av .mini-avatar { width:46px; height:46px; flex-basis:46px; font-size:18px; }
  .rival-av-fb { width:46px; height:46px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--green-700,#15803d); color:#fff; font-size:18px; font-weight:800; }
  .rival-nm { flex:1; min-width:0; font-size:15px; font-weight:800; color:var(--gray-900,#111827); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rival-nmwrap { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
  .rival-nmwrap .rival-nm { flex:none; }
  .rival-avgline { font-size:12px; font-weight:700; color:var(--gray-500,#6b7280); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rival-avgline b { color:var(--green-800,#166534); font-weight:900; }
  .rival-avgline.muted { color:var(--gray-400,#9ca3af); font-weight:600; }
  .rival-wdl { display:flex; gap:16px; flex:0 0 auto; }
  .rw-col { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:26px; }
  .rw-l { font-size:11px; font-weight:700; color:var(--gray-400,#9ca3af); }
  .rw-v { font-size:19px; font-weight:900; line-height:1; }
  .rw-win { color:#16a34a; }
  .rw-draw { color:var(--gray-500,#6b7280); }
  .rw-lose { color:#ef4444; }
  .rival-empty { text-align:center; color:var(--gray-500,#6b7280); font-size:13px; padding:40px 0; line-height:1.7; }
  /* 전적 서브토글(플레이어별/구장별) + 구장별 카드 */
  .rival-seg { display:inline-flex; gap:4px; padding:3px; background:var(--surface-secondary,#F0F4F1); border-radius:999px; margin:2px 0 14px; }
  .rival-seg-btn { padding:6px 14px; border:none; border-radius:999px; background:transparent; font-family:inherit; font-size:12px; font-weight:800; color:var(--gray-500,#6b7280); cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .rival-seg-btn.active { background:#fff; color:var(--green-800,#166534); box-shadow:0 1px 2px rgba(15,40,25,.08); }
  /* 정렬 칩 사이 세로 구분선 — 인접 비활성 칩 사이에만(활성 흰 알약 옆은 숨김). */
  .rival-seg-btn { position:relative; }
  .rival-seg-btn + .rival-seg-btn::before { content:''; position:absolute; left:-2px; top:50%; transform:translateY(-50%); width:1px; height:14px; background:var(--gray-300,#d1d5db); }
  .rival-seg-btn.active::before, .rival-seg-btn.active + .rival-seg-btn::before { display:none; }
  .hist-sort-seg { margin:0; }   /* ③ 정렬 — 기록 탭 헤더 세그컨트롤(가장 작은 단계) */
  .course-ico { font-size:22px; background:var(--green-50,#eef7f0) !important; }
  .course-info { flex:1; min-width:0; }
  .course-info .rival-nm { font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .course-sub { margin-top:3px; font-size:12px; font-weight:600; color:var(--gray-500,#6b7280); }
  .course-avg { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; }
  .ca-v { font-size:20px; font-weight:900; color:var(--green-900,#14532d); line-height:1; }
  .ca-l { margin-top:3px; font-size:11px; font-weight:700; color:var(--gray-400,#9ca3af); }
  /* 구장별 카드 = 버튼(클릭 → 홀별 평균) */
  .course-card { width:100%; font-family:inherit; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .course-card:active { background:var(--gray-50,#f9fafb); }
  .course-chev { margin-left:8px; flex:0 0 auto; color:var(--gray-400,#9ca3af); font-size:20px; font-weight:700; }
  /* 홀별 평균 모달 */
  .chavg-title { margin:0 4px 4px; font-size:18px; font-weight:800; color:var(--green-900,#14532d); }
  .chavg-sub { margin:0 4px 16px; font-size:12.5px; font-weight:600; color:var(--gray-500,#6b7280); }
  .chavg-sub b { color:var(--green-900,#14532d); font-weight:900; }
  .chavg-seg { margin-bottom:16px; }
  .chavg-seg-t { font-size:12.5px; font-weight:800; color:var(--green-800,#166534); margin:0 2px 6px; }
  .chavg-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:12px; }
  .chavg-table th, .chavg-table td { text-align:center; padding:6px 1px; border-bottom:1px solid var(--gray-100,#f3f4f6); }
  .chavg-table .cha-hd th { background:var(--green-900,#14532d); color:#fff; font-weight:700; border:none; border-radius:0; }
  .chavg-table .cha-hd th:first-child { border-top-left-radius:8px; border-bottom-left-radius:8px; }
  .chavg-table .cha-hd th:last-child { border-top-right-radius:8px; border-bottom-right-radius:8px; }
  .chavg-table td:first-child, .chavg-table th:first-child { color:var(--gray-500,#6b7280); font-weight:700; }
  .chavg-table td:last-child { font-weight:800; color:var(--green-900,#14532d); }
  .cha-avg { font-weight:800; color:var(--gray-800,#1f2937); }
  .cha-over { color:#ef4444; }
  .cha-under { color:#2563eb; }
  /* 전적 인라인 드랍다운 — 팝업 대신 카드 아래로 펼침 */
  .rival-card-wrap { display:flex; flex-direction:column; }
  .rival-card-wrap > .rival-card { width:100%; }
  .rival-card-wrap.open > .rival-card { border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom-color:transparent; }
  .rival-card .course-chev { transition:transform .18s ease; }
  .rival-card.open .course-chev { transform:rotate(90deg); color:var(--green-800,#166534); }
  .rival-drop { border:1px solid var(--gray-200,#e5e7eb); border-top:none; border-radius:0 0 16px 16px; background:#fafcfb; padding:12px 12px 4px; box-shadow:0 1px 2px rgba(15,40,25,.04); }
  .chavg-inline .chavg-seg:last-child { margin-bottom:8px; }
  .chavg-seg-n { font-weight:700; color:var(--gray-400,#9ca3af); font-size:11px; margin-left:4px; }
  .chavg-inline-empty { padding:14px 4px; text-align:center; font-size:12.5px; font-weight:600; color:var(--gray-500,#6b7280); }
  .rival-sublist { gap:8px; }
  /* 드롭다운 '이 구장 라운드' 카드 — 좌측 패딩 5px(살짝만). */
  .rival-drop .rival-sublist .round-list-card { padding-left:0; }
  .rival-drop .rival-sublist button.round-card-main { padding-left:5px; }
  /* 홀별 평균 강·약점 레전드 */
  .chavg-legend { display:flex; justify-content:flex-end; gap:14px; margin:0 2px 12px; }
  .chavg-legend .chl-item { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; color:var(--gray-500,#6b7280); }
  .chl-dot { width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
  .chl-good { background:#2563eb; }
  .chl-bad { background:#ef4444; }
  .chavg-roundhd { margin:14px 2px 8px; font-size:12.5px; font-weight:800; color:var(--green-800,#166534); }
  .chavg-roundhd b { color:var(--green-900,#14532d); font-weight:900; }
  /* 다지선다 모달(appChoose) — 버튼 세로 스택. app-confirm 카드 스타일 공유. */
  .app-choose-actions { display:flex; flex-direction:column; gap:9px; }
  .app-choose-btn { min-height:50px; border-radius:14px; border:0.5px solid var(--gray-200,#e5e7eb); background:var(--app-surface,#fff); color:var(--gray-900,#111827); font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; transition:transform .1s ease, background .12s ease; -webkit-tap-highlight-color:transparent; }
  .app-choose-btn:active { transform:scale(.98); background:var(--gray-50,#f9fafb); }
  .app-choose-btn.ac-primary { border:0; background:var(--green-700,#15803d); color:#fff; }
  .app-choose-btn.ac-primary:active { background:var(--green-800,#166534); }
  .app-choose-btn.ac-danger { border:0; background:#fef2f2; color:#dc2626; font-weight:700; }
  .app-choose-btn.ac-danger:active { background:#fde4e4; }
  .app-choose-btn.ac-ghost { border:0; background:transparent; color:var(--gray-500,#6b7280); font-weight:600; min-height:32px; font-size:13px; cursor:default; }
  .app-choose-btn.ac-ghost:active { transform:none; background:transparent; }
  /* 라이브 관전자 목록 모달 */
  #liveViewersList .lvm-row { display:flex; align-items:center; gap:10px; padding:9px 2px; }
  #liveViewersList .lvm-av { flex:0 0 auto; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:800; }
  #liveViewersList .lvm-nm { flex:1; min-width:0; font-size:14px; font-weight:700; color:var(--gray-900,#111827); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #liveViewersList .lvm-status { flex:0 0 auto; font-size:12px; font-weight:700; color:#15803d; }
  #liveViewersList .lvm-off { opacity:0.5; }
  #liveViewersList .lvm-off .lvm-status { color:var(--gray-400,#9ca3af); }
  .recent-round-item .rri-chevron { color:var(--gray-300); font-size:18px; font-weight:500; flex-shrink:0; }

  /* Profile 탭 — 1x2 원형 액션 버튼 (친구추가 / 라운드 기록) */
  .profile-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 14px 8px 18px;
  }
  .profile-action-btn {
    background: transparent;
    border: none;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
  }
  .profile-action-btn .pab-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  }
  .profile-action-btn:active .pab-circle {
    transform: scale(0.92);
    background: var(--gray-50, #f9fafb);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }
  .profile-action-btn .pab-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: -0.1px;
  }

