:root {
    --green-deep: #1a3a2a;
    --green-mid: #2d5a3d;
    --green-bright: #3d7a52;
    --green-light: #5aa06e;
    --gold: #c9a227;
    --gold-light: #e8c158;
    --cream: #f5f0e8;
    --white: #ffffff;
    --gray-soft: #e8e4dc;
    --text-dark: #1a2818;
    --text-mid: #1f2a1d;
    --red-flag: #c0392b;
    --blue-sky: #2980b9;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    --radius: 16px;
    /* ߍࠪ縫氠테마 (기본) — 어두운 배경 + 밝은 글씨 */
    --bg: #1a3a2a;
    --bg-mid: #2d5a3d;
    --bg-bright: #3d7a52;
    --accent: #c9a227;
    --accent-light: #e8c158;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-border: #427039;
    --surface-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: rgba(255, 255, 255, 0.3);
    --input-bg: rgba(255, 255, 255, 0.10);
    --input-border: rgba(255, 255, 255, 0.25);
    --modal-bg: #1e4030;
    --item-row-bg: rgba(255, 255, 255, 0.08);
    --item-row-border: rgba(255, 255, 255, 0.14);
    --setup-section-bg: rgba(255, 255, 255, 0.06);
    --card-bg: #ffffff;
    --card-text: #1a2818;
    --score-cell-bg: #ffffff;

    /* ── 공지 배너 */
    --notice-bg: rgba(26, 60, 35, 0.97);
    --notice-border: rgba(201, 162, 39, 0.5);

    /* ── 스코어 입력 탭 */
    --score-card-bg: #f5f0e8;          /* 스코어 카드 전체 배경 */
    --score-row-bg: #ffffff;           /* 플레이어 행 배경 */
    --score-row-border: transparent;   /* 플레이어 행 테두리 */
    --text-on-card: #1a2818;           /* 카드(밝은배경) 위 주요 글씨 */
    --text-on-card-sub: #4a6a48;       /* 카드(밝은배경) 위 보조 글씨 */

    /* ── 홀 빠른 이동 */
    --hole-btn-bg: rgba(0,0,0,0.07); /* 기본 홀 버튼 배경 */
    --hole-btn-border: rgba(0,0,0,0.15); /* 기본 홀 버튼 테두리 */
    --hole-btn-text: rgba(0,0,0,0.45); /* 기본 홀 버튼 글씨 */
    --hole-btn-done-bg: rgba(0,0,0,0.12); /* 완료 홀 버튼 배경 */
    --hole-btn-done-border: rgba(0,0,0,0.22); /* 완료 홀 버튼 테두리 */
    --hole-btn-done-text: rgba(0,0,0,0.65); /* 완료 홀 버튼 글씨 */

    /* ── -/+ 스텝 버튼 */
    --step-btn-border: #3d7a52;   /* 버튼 테두리/글씨 → 그린:밝은녹 | 다크:밝은회 */
    --step-btn-text:   #3d7a52;

    /* ── 스코어 테이블 */
    --table-header-bg: #1a5c35;        /* 테이블 헤더 배경 */
    --table-header-fg: #ffffff;        /* 테이블 헤더 글씨 */
    --table-sum-bg: rgba(255,255,255,0.10); /* 전반/후반/합계 셀 배경 */
    --table-sum-alt-bg: rgba(255,255,255,0.10); /* 합계 셀 배경 (진한) */
    --table-sum-fg: #e67e22;           /* 전반/후반/합계 셀 글씨 */
    --table-row-even: #ffffff;         /* 짝수 행 배경 */
    --table-row-odd: #f5f5f0;          /* 홀수 행 배경 */
    --table-player-col: #f0f0ec;       /* 플레이어명 고정열 배경 */
    --table-section-label: #1a5c35;    /* 섹션 레이블 글씨 */
    --table-border: rgba(0,0,0,0.08);  /* 테이블 셀 테두리 */

    /* ── 개인 순위 테이블 글씨 */
    --rank-text: #1a2818;          /* 플레이어 이름, 합계 글씨 → 그린:짙은녹 | 다크:밝은회 */
    --rank-text-sub: #4a5a48;      /* 보조 정보 글씨 → 그린:중간녹 | 다크:회색 */

    /* ── 스코어카드 테이블 플레이어명 글씨 */
    --table-player-text: #1a2818;  /* 고정열 플레이어명 → 그린:짙은녹 | 다크:밝은회 */

    /* ── 스코어 칩 */
    --chip-par-text: #1a2818;      /* 파 칩 글씨 → 그린:어두운녹 | 다크:흰색 */
    --chip-par-bg: transparent;    /* 파 칩 배경 → 그린:투명 | 다크:어두운회 */
    --chip-bogey-color: #1a6fa0;   /* 보기/더블 칩 글씨/테두리 → 그린:파랑 | 다크:밝은파랑 */

    /* ── 합계 타수 카드 (score-card-bg 위) */
    --score-card-text: #1a2818;     /* 주요 글씨 → 그린:짙은녹 | 다크:밝은회 */
    --score-card-text-sub: #4a5a48; /* 보조 글씨 → 그린:중간녹 | 다크:회색 */

    /* ── 스코어 통계 (score-card-bg 위) */
    --score-stat-player: #1a2818;   /* 플레이어명 → 그린:짙은녹 | 다크:밝은회 */
    --score-stat-count: #1a2818;    /* 숫자("개") → 그린:짙은녹 | 다크:밝은회 */

    /* ── 개인 순위 합계 숫자 (score-card-bg 위) */
    --rank-total-text: #1a2818;     /* 합계 숫자 → 그린:짙은녹 | 다크:밝은회 */
}

/* ߌ꠫뤭ᬠ테마 — 매우 어두운 배경 + 밝은 글씨 */
body.theme-dark {
    --bg: #0f0f0f;
    --bg-mid: #1c1c1c;
    --bg-bright: #2a2a2a;
    --accent: #8b7cf8;
    --accent-light: #b0a4ff;
    --surface: #1e1e1e;
    --surface-border: #333333;
    --surface-hover: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #FFFFFF;
    --text-tertiary: #606060;
    --input-bg: #1e1e1e;
    --input-border: #444444;
    --modal-bg: #161616;
    --item-row-bg: #1e1e1e;
    --item-row-border: #333333;
    --setup-section-bg: #181818;
    --card-bg: #1e1e1e;
    --card-text: #f0f0f0;
    --score-cell-bg: #1e1e1e;
    --green-deep: #0f0f0f;
    --green-mid: #1c1c1c;
    --green-bright: #2a2a2a;
    --gold: var(--accent);
    --gold-light: var(--accent-light);
    --text-dark: #262626;
    --text-mid: #444444;
    --white: #f0f0f0;
    --red-flag: #ff5555;

    /* ── 공지 배너 */
    --notice-bg: rgba(20, 20, 20, 0.97);
    --notice-border: rgba(139, 124, 248, 0.5);

    /* ── 스코어 입력 탭 */
    --score-card-bg: #161616;
    --score-row-bg: #222222;
    --score-row-border: #383838;
    --text-on-card: #f0f0f0;
    --text-on-card-sub: #a0a0a0;

    /* ── 홀 빠른 이동 */
    --hole-btn-bg: #252525;
    --hole-btn-border: #383838;
    --hole-btn-text: #a0a0a0;
    --hole-btn-done-bg: #1e2e1e;
    --hole-btn-done-border: #2a4a2a;
    --hole-btn-done-text: #a0a0a0;

    /* ── -/+ 스텝 버튼 */
    --step-btn-border: #888888;
    --step-btn-text:   #cccccc;

    /* ── 스코어 테이블 */
    --table-header-bg: #252525;
    --table-header-fg: #f0f0f0;
    --table-sum-bg: rgba(255,255,255,0.08);
    --table-sum-alt-bg: rgba(255,255,255,0.08);
    --table-sum-fg: #e67e22;
    --table-row-even: #1e1e1e;
    --table-row-odd: #232323;
    --table-player-col: #1a1a1a;
    --table-section-label: var(--accent-light);
    --table-border: rgba(255,255,255,0.07);

    /* ── 개인 순위 테이블 */
    --rank-text: #f0f0f0;
    --rank-text-sub: #f0f0f0;

    /* ── 스코어카드 플레이어명 */
    --table-player-text: #f0f0f0;

    /* ── 스코어 칩 */
    --chip-par-text: #ffffff;
    --chip-par-bg: transparent;

    /* ── 합계 타수 카드 */
    --score-card-text: #f0f0f0;
    --score-card-text-sub: #a0a0a0;

    /* ── 스코어 통계 */
    --score-stat-player: #f0f0f0;
    --score-stat-count: #f0f0f0;

    /* ── 개인 순위 합계 */
    --rank-total-text: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s
}

/* ── Screens ── */
.screen {
    display: none;
    min-height: 100vh
}

.screen.active {
    display: block
}

/* ── Start Screen ── */
.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 24px;
    gap: 20px
}

.start-logo {
	/*transition-property: opacity, transform;*/
	font-family: 'Playwrite IE', cursive;
	font-weight: 400;
	font-style: normal;
    font-optical-sizing: auto;
    line-height: initial;
    opacity: 1;
    transition-duration: 350ms;
    font-size: 48px;
    color: var(--gold-light);
    text-align: center
    /*font-family: 시작화면로고텍스트;
    line-height: 1.1*/
}

.start-logo .sub {
    font-size: 16px;
    color: var(--text-secondary);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    margin-top: 8px
}

.start-btn {
    width: 100%;
    max-width: 320px;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-family: 'Jua', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.5px
}

.start-btn:active {
    transform: scale(0.96)
}

.start-btn-admin {
    background: var(--gold);
    color: var(--green-deep)
}

.start-btn-user {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--surface-border)
}

.start-conn {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-family: 'Noto Sans KR', sans-serif;
}

.admin-gear-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    font-family: 'Noto Sans KR', sans-serif;
}

.admin-gear-btn:active {
    background: var(--surface-hover);
    transform: scale(0.92)
}

.theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    font-family: 'Noto Sans KR', sans-serif;
}

.theme-toggle-btn:active {
    background: var(--surface-hover);
    transform: scale(0.92)
}

/* ── Admin Password Screen ── */
.pw-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 24px;
    gap: 16px
}

.pw-title {
    font-family: 'Jua', sans-serif;
    font-size: 24px;
    color: var(--accent-light);
    text-align: center
}

.pw-sub {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.pw-input {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    outline: none;
    text-align: center;
    letter-spacing: 4px
}

.pw-input:focus {
    border-color: var(--gold)
}

.pw-input.error {
    border-color: #ff7070;
    animation: shake 0.3s ease
}

@keyframes shake {
    0%, 100% {
        transform:translateX(0)
    }

    25% {
        transform:translateX(-8px)
    }

    75% {
        transform: translateX(8px)
    }
}

/* ── Round List Screen ── */
.round-list-screen {
    padding: 0 0 80px
}

.rl-header {
    background: linear-gradient(135deg, var(--bg), var(--bg-mid));
    padding: 20px 16px 0;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rl-header .tab-nav {
    margin: 8px -16px 0;
    border-top: 2px solid var(--accent);
}

.rl-header:has(.tab-nav) {
    border-bottom: none;
    padding-bottom: 0;
}

.rl-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px
}

.rl-title {
    font-family: 'Jua', sans-serif;
    font-size: 20px;
    color: var(--accent-light)
}

.back-btn {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s
}

.back-btn:active {
    background: var(--surface-hover)
}

.rl-content {
    padding: 12px;
    max-width: 640px;
    margin: 0 auto
}

.round-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px
}

.round-card:active {
    background: var(--surface-hover);
    transform: scale(0.98)
}

.round-card-info {
    flex: 1;
    min-width: 0
}

.round-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Jua', sans-serif;
}

.round-card-meta {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Noto Sans KR', sans-serif;
}

.round-card-arrow {
    color: var(--text-tertiary);
    font-size: 18px;
    font-family: 'Noto Sans KR', sans-serif;
}

.round-card-del {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 100, 100, 0.4);
    background: rgba(255, 100, 100, 0.08);
    color: #ff7070;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Noto Sans KR', sans-serif
}

.no-rounds {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* ── Create Round Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0
}

.modal-overlay.hidden {
    display: none
}

.modal-box {
    background: var(--modal-bg);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 640px;
    padding: 24px 16px;
    max-height: 85vh;
    overflow-y: auto
}

.modal-title {
    font-family: 'Jua', sans-serif;
    font-size: 18px;
    color: var(--accent-light);
    margin-bottom: 16px
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px
}

.modal-ok {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: var(--bg);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer
}

.modal-cancel {
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    cursor: pointer
}

.copy-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    font-family: 'Noto Sans KR', sans-serif;
}

.copy-field-row:hover {
    background: var(--surface)
}

.copy-field-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0
}

/* ── User: player name entry ── */
.player-entry-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 24px;
    gap: 16px
}

.pet-title {
    font-family: 'Jua', sans-serif;
    font-size: 22px;
    color: var(--gold-light);
    text-align: center
}

.pet-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.pet-round-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 4px;
    font-family: 'Noto Sans KR', sans-serif;
}

.team-pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 340px
}

.team-pick-btn {
    padding: 14px 10px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center
}

.team-pick-btn.selected {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.18)
}

.team-pick-btn:active {
    transform: scale(0.95)
}

.no-team-btn {
    width: 100%;
    max-width: 340px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    cursor: pointer
}

.no-team-btn.selected {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8)
}

/* ── Game Header ── */
.app-header {
    background: linear-gradient(135deg, var(--bg), var(--bg-mid));
    padding: 14px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4)
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.app-title {
    font-family: 'Jua', sans-serif;
    font-size: 20px;
    color: var(--accent-light);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0
}

.app-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0
}

.hole-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border-radius: 50px;
    padding: 3px;
    border: 1px solid var(--surface-border)
}

.hole-nav button {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 18px;
    padding: 5px 9px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s;
    min-width: 32px;
    font-family: 'Noto Sans KR', sans-serif;
}

.hole-nav button:active {
    background: rgba(201, 162, 39, 0.2);
    transform: scale(0.92)
}

.hole-display {
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    min-width: 25px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.hole-dots {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1
}

.hole-dots-row {
    display: flex;
    gap: 3px
}

.hole-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s
}

.hole-dot.active {
    background: var(--gold);
    transform: scale(1.3)
}

.hole-dot.completed {
    background: var(--green-light)
}

.header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* ── Tab Nav ── */
.tab-nav {
    display: flex;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--surface-border)
}

.tab-btn {
    flex: 1;
    padding: 11px 4px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tab-btn.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
    background: rgba(201, 162, 39, 0.08)
}

/* ── Main Content ── */
.main-content {
    padding: 12px;
    padding-bottom: 80px;
    max-width: 640px;
    margin: 0 auto
}

/* ── Cards ── */
.card {
    background: var(--score-card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    animation: slideUp 0.2s ease
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform:translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.card-header {
    background: var(--table-header-bg);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--table-header-fg);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* ── Score Entry ── */
.score-hole-info {
    background: linear-gradient(135deg, var(--bg-bright), var(--bg-mid));
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.hole-big {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 36px;
    color: var(--gold-light);
    line-height: 1
}

.par-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Noto Sans KR', sans-serif;
}

.par-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    text-align: right;
    font-family: 'Noto Sans KR', sans-serif;
}

.player-score-list {
    padding: 8px
}

.player-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--score-row-bg);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid var(--score-row-border)
}

.player-score-row.my-team {
    border-color: var(--accent);
    background: var(--surface-hover)
}

.player-score-row.locked {
    opacity: 0.55
}

.player-team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0
}

.player-name-col {
    flex: 1;
    min-width: 0
}

.player-name-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-on-card);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Noto Sans KR', sans-serif;
}

.player-team-name {
    font-size: 11px;
    color: var(--text-on-card-sub);
    margin-top: 1px;
    font-family: 'Noto Sans KR', sans-serif;
}

.score-stepper {
    display: flex;
    align-items: center;
    gap: 6px
}

.step-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--step-btn-border);
    background: var(--score-row-bg);
    color: var(--step-btn-text);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.step-btn:active {
    background: var(--step-btn-border);
    color: var(--score-row-bg);
    transform: scale(0.88)
}

.step-btn:disabled {
    opacity: 0.3;
    cursor: default
}

.score-display {
    width: 48px;
    text-align: center;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 24px;
    color: var(--text-on-card);
    line-height: 1
}

.score-diff {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    margin-top: 2px;
    border-radius: 4px;
    padding: 1px 4px
}

.score-diff.eagle {
    color: #fff;
    background: var(--gold)
}

.score-diff.birdie {
    color: #fff;
    background: var(--red-flag)
}

.score-diff.par {
    color: #fff;
    background: var(--text-mid)
}

.score-diff.bogey {
    color: #fff;
    background: var(--blue-sky)
}

.score-diff.double {
    color: #fff;
    background: #8e44ad
}

.score-diff.worse {
    color: #fff;
    background: #2c3e50
}

.score-diff.none {
    color: #ccc;
    background: #eee
}

.score-diff.albatross {
    color: #1a2818;
    background: linear-gradient(135deg, #f6d365, #fda085);
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
}

.score-diff.condor {
    color: #fff;
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
}

.score-diff.holeinone {
    color: #fff;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    font-weight: 900;
    animation: hio-pulse 1s ease infinite alternate;
    font-family: 'Noto Sans KR', sans-serif;
}

@keyframes hio-pulse {
    from {
        box-shadow:0 0 0 rgba(245, 87, 108, 0.5)
    }

    to {
        box-shadow: 0 0 8px rgba(245, 87, 108, 0.9)
    }
}

@keyframes scorePop {
    0% {
        transform:scale(1)
    }

    50% {
        transform:scale(1.25)
    }

    100% {
        transform: scale(1)
    }
}

.score-pop {
    animation: scorePop 0.2s ease
}

/* ── Scorecard table ── */
.scoretable-wrap {
    overflow-x: hidden
}

.scoretable {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
    font-family: 'Noto Sans KR', sans-serif;
}

.scoretable th {
    background: var(--green-bright);
    color: var(--white);
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Noto Sans KR', sans-serif;
}

.scoretable th.player-col {
    text-align: left;
    padding-left: 12px;
    min-width: 100px
}

.scoretable td {
    padding: 7px 5px;
    text-align: center;
    border: 1px solid var(--surface-border);
    font-weight: 600;
    color: var(--card-text);
    background: var(--card-bg);
    font-family: 'Noto Sans KR', sans-serif;
}

.scoretable td.player-col {
    text-align: left;
    padding-left: 12px;
    background: var(--score-cell-bg);
    position: sticky;
    left: 0;
    z-index: 2
}

.scoretable tr:nth-child(even) td.player-col {
    background: var(--surface)
}

.scoretable td.total-col {
    background: var(--green-deep);
    color: var(--gold-light);
    font-family: 'Black Han Sans', sans-serif;
    font-size: 15px
}

.scoretable td.empty-score {
    color: #ccc
}

.score-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 3px;
    font-family: 'Noto Sans KR', sans-serif;
}
/* par(0): plain */

.chip-par {
    background: var(--chip-par-bg);
    color: var(--chip-par-text);
    border: none;
    border-radius: 3px
}
/* bogey(+1): 파란 테두리 사각형, 일반체 */

.chip-bogey {
    background: transparent;
    color: var(--chip-bogey-color);
    border: 1.5px solid var(--chip-bogey-color);
    border-radius: 3px;
    font-weight: 400;
    font-family: 'Noto Sans KR', sans-serif;
}
/* double(+2): 보기와 동일 파란 테두리 사각형 */

.chip-double {
    background: transparent;
    color: var(--chip-bogey-color);
    border: 1.5px solid var(--chip-bogey-color);
    border-radius: 3px;
    font-weight: 400;
    font-family: 'Noto Sans KR', sans-serif;
}
/* triple/worse(+3 이상): 빨간 테두리, 배경 없음, 일반체 */

.chip-worse {
    color: #c0392b;
    background: transparent;
    border: 1.5px solid #c0392b;
    border-radius: 3px;
    font-weight: 400;
    font-family: 'Noto Sans KR', sans-serif;
}
/* birdie(-1): 붉은 배경 원, 흰 글씨 */

.chip-birdie {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 50%
}
/* eagle(-2): 붉은 배경 원 */

.chip-eagle {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 50%
}
/* albatross(-3): 골드 그라데이션 원 */

.chip-albatross {
    background: linear-gradient(135deg, #f6d365, #f0a500);
    color: #3d2000;
    border: none;
    font-weight: 900;
    border-radius: 50%;
    font-family: 'Noto Sans KR', sans-serif;
}
/* condor(-4): 퍼플 그라데이션 원 */

.chip-condor {
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    color: #fff;
    border: none;
    font-weight: 900;
    border-radius: 50%;
    font-family: 'Noto Sans KR', sans-serif;
}
/* hole-in-one: 핑크 그라데이션 원 */

.chip-holeinone {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border: none;
    font-weight: 900;
    border-radius: 50%;
    font-family: 'Noto Sans KR', sans-serif;
}

/* ── Team summary grid ── */
.team-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px
}

@media (max-width: 380px) {
    .team-summary-grid {
        grid-template-columns: 1fr
    }
}

.team-card {
    border-radius: 12px;
    padding: 14px;
    border: 2px solid transparent
}

.team-card.rank-1 {
    border-color: var(--gold);
    background: var(--surface-hover)
}

.team-card.rank-other {
    background: var(--surface)
}

.team-rank-badge {
    font-size: 18px;
    margin-bottom: 4px;
    font-family: 'Noto Sans KR', sans-serif;
}

.team-card-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Noto Sans KR', sans-serif;
}

.team-card-score {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 30px;
    color: var(--accent);
    line-height: 1
}

.team-card-diff {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-family: 'Noto Sans KR', sans-serif;
}

.team-members-preview {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.member-chip {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

/* ── Board: individual ranking ── */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Noto Sans KR', sans-serif;
}

.rank-table td, .rank-table th {
    padding: 9px 10px;
    border-bottom: 1px solid var(--surface-border)
}

.rank-table td {
    color: var(--rank-text)
}

.rank-table th {
    background: var(--table-header-bg);
    color: var(--table-header-fg);
    font-weight: 600;
    font-size: 12px;
    text-align: left;
    font-family: 'Noto Sans KR', sans-serif;
}

.rank-table th:last-child, .rank-table td:last-child {
    text-align: right;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 15px;
    color: var(--rank-text)
}

.rank-num {
    font-family: 'Black Han Sans', sans-serif;
    color: var(--rank-text-sub);
    min-width: 28px;
    display: inline-block;
    text-align: center
}

.rank-num.gold {
    color: var(--gold)
}

.rank-num.silver {
    color: #888
}

.rank-num.bronze {
    color: #b87333
}

.my-row {
    background: var(--surface-hover)
}

.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
    background: transparent
}

.section-title {
    font-family: 'Jua', sans-serif;
    font-size: 16px;
    color: var(--gold-light);
    letter-spacing: 1px
}

/* ── Setup ── */
.setup-section {
    padding: 12px
}

.setup-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    font-family: 'Noto Sans KR', sans-serif;
}

.setup-label:first-child {
    margin-top: 0
}

.input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px
}

.styled-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s
}

.styled-input::placeholder {
    color: rgba(255, 255, 255, 0.4)
}

.styled-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15)
}

.color-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s
}

.color-option.selected {
    border-color: var(--white);
    transform: scale(1.15)
}

.add-btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    background: var(--gold);
    color: var(--green-deep);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    min-width: 60px
}

.add-btn:active {
    transform: scale(0.94);
    background: var(--gold-light)
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--item-row-bg);
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid var(--item-row-border)
}

.item-row.editing {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.4)
}

.edit-row-top {
    display: flex;
    align-items: center;
    gap: 8px
}

.edit-actions {
    display: flex;
    gap: 6px
}

.edit-save-btn {
    flex: 1;
    padding: 9px;
    border-radius: 10px;
    border: none;
    background: var(--gold);
    color: var(--green-deep);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer
}

.edit-cancel-btn {
    flex: 1;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    cursor: pointer
}

.edit-del-btn {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 100, 100, 0.4);
    background: rgba(255, 100, 100, 0.08);
    color: #ff7070;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    cursor: pointer
}

.edit-btn {
    background: none;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Noto Sans KR', sans-serif;
}

.edit-btn:active {
    background: rgba(255, 255, 255, 0.1)
}

.edit-color-select {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    padding: 2px 0
}

.item-row-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0
}

.item-row-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
}

.item-row-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-family: 'Noto Sans KR', sans-serif;
}

.del-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.del-btn:active {
    color: var(--red-flag)
}

.team-select {
    padding: 12px 10px;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    outline: none;
    min-width: 90px;
    -webkit-appearance: none;
    cursor: pointer
}

.team-select option {
    background: var(--green-deep);
    color: var(--white)
}

.par-row-card {
    background: var(--setup-section-bg);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--surface-border)
}

.par-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    margin-top: 8px
}

@media (max-width: 380px) {
    .par-grid {
        grid-template-columns: repeat(6, 1fr)
    }
}

.par-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px
}

.par-hole-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.par-input {
    width: 100%;
    padding: 6px 2px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.par-input:focus {
    border-color: var(--gold)
}

/* ── Header buttons ── */
.hdr-back-btn {
    font-size: 20px;
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--accent-light);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
}

.hdr-back-btn:active {
    opacity: 0.6
}

.header-theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.header-theme-btn:active {
    opacity: 0.6
}

.hole-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    padding: 12px
}

.hole-grid-btn {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--hole-btn-border);
    background: var(--hole-btn-bg);
    color: var(--hole-btn-text);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jua', sans-serif;
}

.hole-grid-btn.current {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent)
}

.hole-grid-btn.has-score {
    background: var(--hole-btn-done-bg);
    border-color: var(--hole-btn-done-border);
    color: var(--hole-btn-done-text)
}

/* ── FAB ── */
.fab-area {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    gap: 10px;
    width: calc(100% - 32px);
    max-width: 608px
}

.fab-btn {
    flex: 1;
    padding: 16px;
    border-radius: 50px;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.15s;
    letter-spacing: 0.5px
}

.fab-btn:active {
    transform: scale(0.96)
}

.fab-primary {
    background: var(--gold);
    color: var(--green-deep)
}

.fab-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px)
}

/* ── Near distance input ── */
.near-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-right: 2px
}

.near-label {
    font-size: 9px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Noto Sans KR', sans-serif;
}

.near-dist-input {
    width: 52px;
    padding: 5px 4px;
    border-radius: 8px;
    border: 1px solid rgba(201, 162, 39, 0.6);
    background: #fffbe6;
    color: #1a2818;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.near-dist-input:focus {
    border-color: var(--gold);
    background: #fff9d0
}
/* ── Board container ── */

.board-container {
    width: fit-content;
    max-width: 95vw;
    margin: 0 auto;
}

.board-container > * {
    max-width: 95vw;
    box-sizing: border-box;
}

.board-container .card {
    border-radius: 0
}
/* ── Calendar ── */

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.cal-month-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 16px;
    color: var(--accent-light)
}

.cal-nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
}

.cal-nav-btn:active {
    background: rgba(255, 255, 255, 0.1)
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px
}

.cal-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 4px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.15s;
    font-family: 'Noto Sans KR', sans-serif;
}

.cal-day:hover {
    background: rgba(255, 255, 255, 0.12)
}

.cal-day.today {
    border: 1px solid var(--gold);
    color: var(--gold)
}

.cal-day.selected {
    background: var(--gold);
    color: var(--green-deep) !important;
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
}

.cal-day.empty {
    cursor: default;
    pointer-events: none
}

.cal-day.sun {
    color: #ff8a80
}

.cal-day.sat {
    color: #82b1ff
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary)
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    font-family: 'Noto Sans KR', sans-serif;
}

.empty-text {
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Noto Sans KR', sans-serif;
}

/* ── Lock banner ── */
.lock-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(192, 57, 43, 0.18);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    color: #ff8a80;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
}

.lock-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--setup-section-bg);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid var(--surface-border);
    margin-bottom: 8px
}

.lock-toggle-label {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.lock-toggle-sub {
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 2px;
    font-family: 'Noto Sans KR', sans-serif;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--surface-border);
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--red-flag)
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px)
}

/* ── index.html 인라인 폰트 스타일 클래스 ─────── */
.start-btn-user-large {
    font-size: 22px;
    padding: 22px;
    font-family: 'Jua', sans-serif;
}
.theme-cycle-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    font-family: 'Noto Sans KR', sans-serif;
}
.hdr-meta-text {
    font-size: 11px;
    color: var(--text-secondary);
    padding-left: 36px;
    font-family: 'Noto Sans KR', sans-serif;
}
.rm-pw-round-name {
    font-size: 18px;
    font-family: 'Jua', sans-serif;
}
.pw-code-input {
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    min-width: 0;
    font-family: 'Noto Sans KR', sans-serif;
}
.input-error-msg {
    font-size: 13px;
    min-height: 18px;
    text-align: center;
    width: 90vw;
    max-width: 480px;
    font-family: 'Noto Sans KR', sans-serif;
}
.input-error-msg-sm {
    font-size: 13px;
    min-height: 16px;
    text-align: center;
    width: 90vw;
    max-width: 480px;
    font-family: 'Noto Sans KR', sans-serif;
}
.pet-round-title {
    flex: 1;
    font-size: 20px;
    font-family: 'Jua', sans-serif;
}
.pet-name-input {
    font-size: 15px;
    padding: 10px 14px;
    min-width: 0;
    font-family: 'Noto Sans KR', sans-serif;
}
.pet-enter-btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Noto Sans KR', sans-serif;
}
.guest-hint-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    font-family: 'Noto Sans KR', sans-serif;
}
.guest-hint-text strong {
    color: rgba(255, 255, 255, 0.7);
}
.guest-enter-btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}
.conn-status-text {
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Noto Sans KR', sans-serif;
}
.notice-text {
    font-size: 11px;
    color: var(--accent-light);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-family: 'Noto Sans KR', sans-serif;
}
.entry-link-btn {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}
.modal-field-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 6px;
    font-family: 'Noto Sans KR', sans-serif;
}
.modal-field-label-mt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 14px 0 6px;
    font-family: 'Noto Sans KR', sans-serif;
}
.modal-copy-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Noto Sans KR', sans-serif;
}
