/* 이벤트 온 · 디자인 시스템 (3차: 체육관 코트형)
   크림색 바탕 + 남색 글자 + 노랑 강조는 공통, 코트·바닥 색은 종목별 테마(--sp-*)가 바꾼다.
   모바일 우선(최대 480px), 다크 모드 지원. */
:root {
  --bg: #F5F0E6; --bg-2: #ECE4D4;
  --surface: #FFFFFF; --surface-2: #FAF6EE; --surface-3: #F1EADC;
  --ink: #1B2433; --ink-2: #364154; --muted: #6C6455; --faint: #8A806C;
  --line: #E4D9C5; --line-2: #EEE6D6;
  --brand: #1B2433; --brand-press: #2D3A52; --brand-soft: #E8EBF2; --brand-ink: #FFFFFF; --brand-text: #23449A;
  --court: #2E8B57; --court-deep: #1F6B41; --court-line: rgba(255,255,255,.42);
  --hi: #F2C230; --hi-soft: #FBEFC6; --hi-ink: #3A2C00;
  --ok: #1E7A4C; --ok-soft: #DDF1E4;
  --warn: #B04A12; --warn-soft: #FBE6D6;
  --danger: #C8372D; --danger-soft: #FBE2DF;
  --shadow-1: 0 1px 0 rgba(70,52,20,.05);
  --shadow-2: 0 10px 30px rgba(40,30,10,.14), 0 2px 6px rgba(40,30,10,.06);
  --r-s: 10px; --r: 18px; --r-l: 22px;
  --font: 'IBM Plex Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Black Han Sans', 'IBM Plex Sans KR', sans-serif;
  --tabbar: 66px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151C; --bg-2: #0D1015; --surface: #1A1F29; --surface-2: #202634; --surface-3: #283042;
    --ink: #EEF0F4; --ink-2: #CDD3DE; --muted: #A1A8B6; --faint: #747D8E; --line: #2E3647; --line-2: #242B39;
    --brand: #E6EAF2; --brand-press: #FFFFFF; --brand-soft: #262F45; --brand-ink: #12151C; --brand-text: #A7BEF6;
    --court: #2A7A4E; --court-deep: #1E5C3A; --hi-soft: #3A3010; --hi-ink: #2A2000;
    --ok: #5BD08F; --ok-soft: #143526; --warn: #F39A64; --warn-soft: #3A2316; --danger: #FF8378; --danger-soft: #3B1A1A;
    --shadow-1: 0 1px 0 rgba(0,0,0,.3); --shadow-2: 0 10px 30px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151C; --bg-2: #0D1015; --surface: #1A1F29; --surface-2: #202634; --surface-3: #283042;
  --ink: #EEF0F4; --ink-2: #CDD3DE; --muted: #A1A8B6; --faint: #747D8E; --line: #2E3647; --line-2: #242B39;
  --brand: #E6EAF2; --brand-press: #FFFFFF; --brand-soft: #262F45; --brand-ink: #12151C; --brand-text: #A7BEF6;
  --court: #2A7A4E; --court-deep: #1E5C3A; --hi-soft: #3A3010; --hi-ink: #2A2000;
  --ok: #5BD08F; --ok-soft: #143526; --warn: #F39A64; --warn-soft: #3A2316; --danger: #FF8378; --danger-soft: #3B1A1A;
  --shadow-1: 0 1px 0 rgba(0,0,0,.3); --shadow-2: 0 10px 30px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-text); }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; border-radius: 6px; }
.ic { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ── 앱 틀 ─────────────────────────── */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom, 0px)); position: relative; background: var(--bg); }
@media (min-width: 720px) {
  body { background: var(--bg-2); background-image: linear-gradient(90deg, transparent calc(50% - 241px), var(--line) calc(50% - 241px), var(--line) calc(50% - 240px), transparent calc(50% - 240px), transparent calc(50% + 240px), var(--line) calc(50% + 240px), var(--line) calc(50% + 241px), transparent calc(50% + 241px)); }
  .app { box-shadow: var(--shadow-2); }
}
.page { padding: 4px 16px 0; }
.page.enter { animation: fadein .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 홈 히어로: 코트 라인 모티프 */
.hero { position: relative; overflow: hidden; background: var(--court); color: #fff; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 22px; }
.hero::before { content: ''; position: absolute; inset: 10px; border: 2px solid var(--court-line); border-radius: 4px; pointer-events: none; }
.hero::after { content: ''; position: absolute; top: 10px; bottom: 10px; left: 64%; border-left: 2px solid var(--court-line); pointer-events: none; }
.hero .net { position: absolute; top: 38%; left: 10px; right: 10px; border-top: 2px dashed rgba(255,255,255,.18); pointer-events: none; }
.hero > *:not(.net) { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font-family: var(--display); font-size: 22px; letter-spacing: .5px; margin: 0; line-height: 1; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--hi); color: var(--court-deep); display: grid; place-items: center; font-size: 15px; }
.club-switch { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: 0; color: #fff; border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 13px; font-weight: 600; max-width: 60%; }
.club-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-switch .ic { width: 16px; height: 16px; }
.hero-club { margin: 18px 0 2px; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; }
.hero-sub { font-size: 13.5px; opacity: .88; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hero-sub .dot { opacity: .5; }
.viewer-bar { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(0,0,0,.16); border-radius: 12px; padding: 6px 6px 6px 12px; font-size: 13px; }
.viewer-bar b { font-weight: 600; }
.seg-mini { display: flex; background: rgba(255,255,255,.16); border-radius: 9px; padding: 3px; }
.seg-mini button { border: 0; background: transparent; color: #fff; font-size: 12.5px; font-weight: 600; padding: 0 10px; min-height: 32px; border-radius: 7px; }
.seg-mini button[aria-pressed="true"] { background: #fff; color: var(--court-deep); }

/* 하위 화면 앱바 */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: env(safe-area-inset-top, 0px) 8px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.appbar.scrolled { border-bottom-color: var(--line); }
.appbar h1, .appbar h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.appbar .title-lg { font-size: 22px; letter-spacing: -.3px; padding-left: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 12px; flex: none; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.96); }

/* 탭바 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar-in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar); border: 0; background: none; color: var(--faint); font-size: 11.5px; font-weight: 600; position: relative; }
.tab .ic { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--brand); }
.tab[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tab .dotn { position: absolute; top: 10px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; }

/* ── 카드·목록 ───────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; margin: 12px 0; box-shadow: var(--shadow-1); }
.card.flush { padding: 4px 0; }
.card.flush > .card-h { padding: 12px 16px 4px; }
.card.tint { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.card.hi { background: var(--hi-soft); border-color: transparent; box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.card-h .more { font-size: 13px; color: var(--brand-text); font-weight: 600; background: none; border: 0; padding: 6px 2px; min-height: 36px; display: inline-flex; align-items: center; gap: 2px; }
.card-h .more .ic { width: 16px; height: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; margin: 0 0 4px; }
.section-t { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 4px 6px; letter-spacing: .2px; display: flex; justify-content: space-between; align-items: center; }
.h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.4px; line-height: 1.3; }
.h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.2px; line-height: 1.35; }
.sub { color: var(--muted); font-size: 13px; }
.tiny { font-size: 12px; color: var(--faint); }
.muted { color: var(--muted); }
.okc { color: var(--ok); } .warnc { color: var(--warn); } .dangerc { color: var(--danger); } .brandc { color: var(--brand-text); }
.big { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.mid { font-size: 20px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; border-top: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; }
.row:first-child { border-top: 0; }
button.row:hover, a.row:hover { background: var(--surface-2); }
a.row { text-decoration: none; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .d { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { color: var(--faint); width: 18px; height: 18px; }
.row .end { text-align: right; flex: none; }
.in-card .row { padding-left: 0; padding-right: 0; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.kv:first-child { border-top: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }

.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; letter-spacing: -.5px; }
.av0 { background: #DCE7FD; color: #1A4FBF; } .av1 { background: #DDF3E8; color: #12764A; } .av2 { background: #FDF0CC; color: #7A5600; }
.av3 { background: #FCE4DA; color: #A13D0F; } .av4 { background: #EBE3FB; color: #5B3BB0; } .av5 { background: #DDF0F5; color: #136A80; }
:root[data-theme="dark"] .av { filter: saturate(.8) brightness(.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av { filter: saturate(.8) brightness(.85); } }
.av.sm { width: 28px; height: 28px; font-size: 11px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.hi { background: var(--hi); color: var(--hi-ink); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.badge.muted { background: var(--surface-3); color: var(--muted); }
.badge.line { background: transparent; border: 1px solid var(--line); }

/* 타일 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 12px; text-align: left; min-height: 72px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); text-decoration: none; }
button.tile:hover { border-color: var(--line); }
.tile b { font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; color: var(--muted); }
.tile.alert b { color: var(--warn); }

/* 진행 막대 */
.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }
.bar.ok > i { background: var(--ok); }
.bar.stack { display: flex; }
.bar.stack > i { border-radius: 0; }

/* ── 버튼 ───────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .06s, background .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 19px; height: 19px; }
.btn.pri { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.btn.pri:hover { background: var(--brand-press); }
.btn.hi { background: var(--hi); border-color: transparent; color: var(--hi-ink); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand-text); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { color: var(--danger); }
.btn.dangerfill { background: var(--danger); color: #fff; border-color: transparent; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btns > .btn { flex: 1; }
.fab { position: fixed; z-index: 25; right: max(16px, calc(50% - 240px + 16px)); bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom, 0px)); height: 54px; padding: 0 20px 0 16px; border-radius: 27px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 700; display: flex; align-items: center; gap: 6px; box-shadow: 0 8px 20px rgba(29,91,216,.35); }
.fab .ic { width: 22px; height: 22px; }

/* 세그먼트 / 칩 */
.seg { display: flex; background: var(--surface-3); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { flex: 1; min-height: 38px; border: 0; background: transparent; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.resp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.resp button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.resp button[aria-pressed="true"].yes { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.resp button[aria-pressed="true"].no { background: var(--surface-3); border-color: var(--ink-2); color: var(--ink); }
.resp button[aria-pressed="true"].maybe { background: var(--hi-soft); border-color: var(--hi); color: var(--ink); }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.chip input:focus-visible + span { outline: 3px solid var(--hi); outline-offset: 2px; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip .ic { width: 16px; height: 16px; }

/* ── 폼 ─────────────────────────────── */
.field { display: block; margin: 0 0 14px; }
.field-l { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field-h { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .15s; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input.invalid { border-color: var(--danger); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B82' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 20px; height: 20px; pointer-events: none; }
.search input { padding-left: 42px !important; border-radius: 14px !important; background: var(--surface) !important; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 14px; transition: .2s; }
.switch i::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--hi); outline-offset: 2px; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--surface-2); font-size: 20px; font-weight: 600; color: var(--ink-2); }
.stepper input { border: 0 !important; text-align: center; min-height: 46px !important; border-radius: 0 !important; box-shadow: none !important; font-weight: 700; padding: 0 !important; }
.dows { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dows .chip span { padding: 0; justify-content: center; width: 100%; min-height: 42px; }
.dows .chip { display: block; }

/* ── 시트 / 알림 ─────────────────────── */
dialog { color: var(--ink); }
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 480px; max-height: 92dvh; background: transparent; overflow: visible; }
.sheet::backdrop { background: rgba(10,18,32,.5); }
.sheet-in { background: var(--surface); border-radius: 22px 22px 0 0; max-height: 92dvh; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.8,.3,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet-in { animation: none; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 4px 20px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.sheet-body { padding: 8px 20px 16px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); }
@media (min-width: 720px) {
  .sheet { margin: auto; max-width: 520px; }
  .sheet.wide { max-width: 640px; }
  .sheet-in { border-radius: 22px; }
  .sheet-grip { display: none; }
}
.alert { border: 0; padding: 0; border-radius: 18px; width: min(340px, calc(100% - 40px)); background: var(--surface); box-shadow: var(--shadow-2); }
.alert::backdrop { background: rgba(10,18,32,.5); }
.alert-in { padding: 22px 20px 16px; }
.alert-msg { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.alert-btns { display: flex; gap: 8px; margin-top: 18px; }
.alert-btns .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; max-width: min(420px, calc(100% - 32px)); width: max-content; box-shadow: var(--shadow-2); animation: pop .2s ease-out; transition: opacity .3s, transform .3s; }
.toast.warn { background: var(--warn); color: #fff; }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 빈 상태 */
.empty { text-align: center; padding: 28px 16px 24px; }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin: 0 auto 12px; }
.empty-ic .ic { width: 28px; height: 28px; }
.empty-t { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.empty-d { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── 온보딩 ──────────────────────────── */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; background: var(--court); color: #fff; position: relative; overflow: hidden; }
.welcome-court { position: absolute; inset: 16px; border: 2px solid var(--court-line); border-radius: 6px; pointer-events: none; }
.welcome-court::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--court-line); }
.welcome-court::after { content: ''; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid var(--court-line); border-radius: 50%; }
.welcome-in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: calc(56px + env(safe-area-inset-top, 0px)) 32px 32px; }
.welcome h1 { font-family: var(--display); font-size: 54px; line-height: 1; margin: 18px 0 14px; letter-spacing: 1px; }
.welcome .lead { font-size: 18px; line-height: 1.55; opacity: .95; margin: 0; font-weight: 500; word-break: keep-all; }
.welcome .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.welcome .pills span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.welcome-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.welcome-cta .btn { min-height: 54px; font-size: 16px; border-radius: 14px; }
.welcome-cta .btn.light { background: #fff; color: var(--court-deep); border: 0; }
.welcome-cta .btn.line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.welcome-foot { font-size: 12px; opacity: .7; text-align: center; margin-top: 14px; }
.wizard { padding: 0 20px 120px; }
.wiz-steps { display: flex; gap: 6px; padding: 4px 0 18px; }
.wiz-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.wiz-steps i.on { background: var(--brand); }
.wiz-q { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.35; margin: 4px 0 6px; word-break: keep-all; }
.wiz-d { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.wiz-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 10; }
.wiz-foot-in { max-width: 440px; margin: 0 auto; display: flex; gap: 8px; }
.wiz-foot .btn { min-height: 54px; font-size: 16px; }
.sportgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sportcard { position: relative; }
.sportcard input { position: absolute; opacity: 0; }
.sportcard span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; min-height: 84px; }
.sportcard em { font-style: normal; font-size: 22px; line-height: 1; }
.sportcard b { font-size: 15px; margin-top: 6px; }
.sportcard small { font-size: 12px; color: var(--muted); }
.sportcard input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.sportcard input:focus-visible + span { outline: 3px solid var(--hi); outline-offset: 2px; }

/* ── 모임 ───────────────────────────── */
.sess-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.capbar { margin-top: 12px; }
.capbar .bar { height: 10px; border-radius: 5px; }
.capbar-l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.datebox { width: 52px; flex: none; text-align: center; border-radius: 12px; background: var(--surface-2); padding: 6px 0; line-height: 1.15; }
.datebox b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.datebox span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.datebox.today { background: var(--brand); color: var(--brand-ink); }
.datebox.today span { color: inherit; opacity: .85; }
.datebox.past { opacity: .6; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; border: 1px solid transparent; }
.person .lv { font-size: 11px; color: var(--muted); font-weight: 700; }
button.person { min-height: 36px; }
button.person[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); }
.person.wait { background: var(--hi-soft); }
.resp-group { margin-top: 14px; }
.resp-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.courtcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 10px; background: var(--surface); }
.courtcard-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--court); color: #fff; font-weight: 700; font-size: 14px; }
.courtcard-h .ic { width: 18px; height: 18px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px; }
.vs .side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vs .side.b { align-items: flex-end; text-align: right; }
.vs .pl { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vs .pl small { color: var(--muted); font-weight: 700; font-size: 11px; margin-left: 3px; }
.vs .mid-vs { font-size: 12px; font-weight: 700; color: var(--faint); }
.vs .win { color: var(--brand-text); }
.score-in { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 0 12px 12px; }
.score-in input { width: 64px !important; text-align: center; font-weight: 700; font-size: 18px !important; padding: 6px !important; min-height: 44px !important; }
.score-in .colon { font-weight: 700; color: var(--faint); }
.scoreline { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.rest { font-size: 13px; color: var(--muted); padding: 8px 2px 0; }
.round-h { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; }
.round-h b { font-size: 15px; }

/* ── 대회 ───────────────────────────── */
.t-head { position: relative; overflow: hidden; background: var(--court); color: #fff; border-radius: var(--r); padding: 18px 16px; margin: 12px 0; }
.t-head::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--court-line); border-radius: 4px; pointer-events: none; }
.t-head > * { position: relative; }
.t-head .h1 { color: #fff; }
.t-head .sub { color: rgba(255,255,255,.85); }
.t-head .bar { background: rgba(255,255,255,.2); margin-top: 12px; }
.t-head .bar > i { background: var(--hi); }
.champ { display: flex; align-items: center; gap: 12px; background: var(--hi); color: var(--hi-ink); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
.champ .ic { width: 30px; height: 30px; }
.champ b { font-size: 18px; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 14px; margin: 0 -16px; scroll-snap-type: x proximity; }
.bracket-col { flex: 0 0 210px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; scroll-snap-align: start; }
.bracket-col h4 { margin: 0 0 2px; font-size: 13px; color: var(--muted); text-align: center; }
.bm { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; font-size: 14px; width: 100%; text-align: left; padding: 0; color: inherit; }
button.bm:hover { border-color: var(--brand); }
.bm-meta { display: flex; justify-content: space-between; padding: 4px 10px; font-size: 11.5px; color: var(--muted); background: var(--surface-2); font-weight: 600; }
.bm-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--line-2); }
.bm-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-row.w { font-weight: 700; color: var(--brand-text); }
.bm-row.l { color: var(--faint); }
.bm-row .s { font-variant-numeric: tabular-nums; font-weight: 700; }
.bm.bye { opacity: .6; border-style: dashed; }
.bm.live { border-color: var(--hi); box-shadow: 0 0 0 2px var(--hi-soft); }
.mcard { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; }
.mcard:first-child { border-top: 0; }
button.mcard:hover { background: var(--surface-2); }
.mcard .when { width: 58px; flex: none; text-align: center; }
.mcard .when b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.mcard .when span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mcard .teams { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; column-gap: 8px; font-size: 14.5px; }
.mcard .teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .teams .s { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.mcard .teams .w { font-weight: 700; color: var(--brand-text); }
.mcard .teams .tbd { color: var(--faint); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.board-c { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.board-c h5 { margin: 0; padding: 6px 10px; background: var(--court); color: #fff; font-size: 13px; display: flex; justify-content: space-between; }
.board-c .now { padding: 8px 10px; font-size: 13.5px; font-weight: 600; min-height: 58px; }
.board-c .nxt { padding: 6px 10px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table th { font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--line-2); }
.table th:first-child, .table td:first-child { text-align: left; }
.table td.team { font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table tr.q td { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.table tr:last-child td { border-bottom: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.rank.r1 { background: var(--hi); color: var(--hi-ink); }
.rank.r2 { background: #D9DFE7; color: #2B3C55; }
.rank.r3 { background: #F0D7BD; color: #6B3D12; }
.nextcard { position: relative; overflow: hidden; background: var(--court); color: #fff; border-radius: 18px; padding: 18px; margin-top: 12px; }
.nextcard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border: 2px solid var(--court-line); border-radius: 50%; }
.nextcard > * { position: relative; }
.nextcard .big { color: #fff; font-size: 34px; }
.nextcard .lbl { font-size: 13px; opacity: .85; }
.nextcard .ahead { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--hi); color: var(--hi-ink); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.qrbox { display: flex; gap: 14px; align-items: center; }
.qrbox .qr { width: 132px; height: 132px; flex: none; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.qrbox .qr svg { width: 100%; height: 100%; }
.sharebanner { background: var(--hi); color: var(--hi-ink); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ── 시설 ───────────────────────────── */
.fac-type { font-size: 12px; color: var(--muted); font-weight: 600; }
.fac-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); flex: none; }
.mapbox { height: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); margin: 10px 0; position: relative; z-index: 0; }
.mapbox.sm { height: 190px; }
.map-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-pin.closed { background: #8796AA; }
.map-pin.saved { background: var(--hi); }
.leaflet-popup-content { font-family: var(--font); font-size: 13px; }
.leaflet-container { font-family: var(--font); }
.actionrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.actionrow a, .actionrow button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); border: 0; color: var(--ink-2); text-decoration: none; font-size: 12px; font-weight: 600; min-height: 64px; justify-content: center; }
.actionrow .ic { color: var(--brand-text); }
.actionrow [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.source { font-size: 12px; color: var(--faint); line-height: 1.6; margin: 14px 4px; }
.source b { color: var(--muted); }

/* ── 회비·장부 ──────────────────────── */
.money-in { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.money-out { color: var(--danger); font-weight: 700; font-variant-numeric: tabular-nums; }
.paytoggle { min-width: 74px; }
.paytoggle[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.monthnav { display: flex; align-items: center; justify-content: space-between; }
.monthnav b { font-size: 17px; }

/* 공지 */
.notice { border-left: 4px solid var(--brand); }
.notice.pinned { border-left-color: var(--hi); }
.notice-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; margin: 8px 0 0; word-break: keep-all; overflow-wrap: anywhere; }

/* 메뉴 */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); text-align: left; color: inherit; min-height: 104px; }
.menu-item .ic { width: 26px; height: 26px; color: var(--brand-text); }
.menu-item b { font-size: 15px; }
.menu-item span { font-size: 12.5px; color: var(--muted); margin-top: -6px; }

.checklist .row { padding-left: 0; padding-right: 0; }
.checkdot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.checkdot.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.checkdot .ic { width: 15px; height: 15px; }

.demo-flag { display: inline-flex; align-items: center; gap: 4px; background: var(--hi); color: var(--hi-ink); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.foot { text-align: center; padding: 24px 16px 8px; font-size: 12px; color: var(--faint); line-height: 1.7; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.mt0 { margin-top: 0 !important; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb0 { margin-bottom: 0 !important; }
.flex { display: flex; align-items: center; gap: 8px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .gap4 { gap: 4px; } .grow { flex: 1; min-width: 0; }
.center { text-align: center; } .right { text-align: right; }
@media print { .tabbar, .fab, .appbar .icon-btn { display: none !important; } .app { box-shadow: none; } }

/* ══ v4: 대회 운영 ══════════════════════════════ */
.hero.ops { padding-bottom: 26px; }
.hero-tag { margin: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--hi); letter-spacing: .3px; }
.hero.ops .hero-club { font-size: 22px; line-height: 1.35; word-break: keep-all; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--hi-soft); font-size: 13px; font-weight: 600; }
.demo-bar span { display: inline-flex; align-items: center; gap: 6px; }
.demo-bar .ic { width: 18px; height: 18px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.quick.sm { grid-template-columns: repeat(3, 1fr); }
.qbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; min-height: 88px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; color: var(--ink); }
.quick.sm .qbtn { min-height: 64px; padding: 10px; }
.qbtn .ic { width: 24px; height: 24px; color: var(--brand-text); }
.qbtn b { font-size: 14px; }
.qbtn span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.qbtn:hover { border-color: var(--brand); }
.qbtn.danger { background: var(--danger-soft); border-color: transparent; }
.qbtn.danger .ic, .qbtn.danger b { color: var(--danger); }
.clockbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin: 12px 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.clockbar .ic { color: var(--brand-text); }
.board-c.is-live { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.board-c.is-live h5 { background: var(--danger); }
.mcard.is-live { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.faint { color: var(--faint); font-weight: 500; }
.pnote { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hi-soft); font-size: 13.5px; line-height: 1.5; }
.pnote .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--hi-ink); }
.pnote.old { opacity: .65; }
.table.cmp td { vertical-align: middle; font-size: 13px; }
.table.cmp s { text-decoration-thickness: 1.5px; }
.warnbox { background: var(--warn-soft); border-radius: 12px; padding: 12px; font-size: 14px; }
.warnbox .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.warnbox-card { background: var(--warn-soft); border-color: transparent; box-shadow: none; }
.warnbox-card .ic { width: 26px; height: 26px; }
.spark-wrap { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.spark { width: 100%; height: auto; display: block; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--brand); opacity: .1; }
.spark-base { stroke: var(--line); stroke-dasharray: 4 4; }
.spark-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.spark-t { font: 600 11px var(--font); fill: var(--muted); }
.spark-t.strong { font-size: 13px; fill: var(--ink); font-weight: 700; }

/* 심판 모드 */
.refgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.refpick { display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 132px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.refpick.is-live { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.refpick-u { font-family: var(--display); font-size: 24px; color: var(--brand-text); }
.refpick-m { font-weight: 600; font-size: 14px; line-height: 1.35; }
.refpick-m small { color: var(--muted); font-weight: 500; }
.refpick-s { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.refpick.is-live .refpick-s { color: var(--danger); }
.refhead { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-size: 13.5px; color: var(--muted); }
.livedot { color: var(--danger); }
.refboard { display: grid; grid-template-columns: 1fr; gap: 10px; }
.refteam { border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; }
.refteam.a { background: var(--court); color: #fff; }
.refteam.b { background: var(--ink); color: var(--bg); }
.refteam-h { grid-column: 1 / -1; display: flex; flex-direction: column; }
.refteam-h b { font-size: 18px; }
.refteam-h span { font-size: 12.5px; opacity: .8; }
.refscore { font-size: 84px; font-weight: 700; line-height: 1; letter-spacing: -3px; }
.refplus { width: 128px; height: 104px; border-radius: 20px; border: 0; background: #fff; color: var(--court-deep); font-size: 40px; font-weight: 700; box-shadow: 0 4px 0 rgba(0,0,0,.18); touch-action: manipulation; }
.refteam.b .refplus { background: var(--hi); color: var(--hi-ink); }
.refplus:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.refctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.refctl .btn { padding: 0 8px; font-size: 14px; }
.refbanner { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--hi-soft); border-radius: 12px; padding: 8px 8px 8px 12px; font-weight: 700; margin-bottom: 10px; }
.refbanner .ic { width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; }

/* 전광판: 체육관 TV용 가로 화면 */
.tv { position: fixed; inset: 0; background: #0A1A3A; color: #fff; display: flex; flex-direction: column; padding: 2.2vh 2.4vw; gap: 2vh; font-family: var(--font); overflow: hidden; }
.tv-top { display: flex; justify-content: space-between; align-items: center; }
.tv-brand { margin: 0; display: flex; align-items: center; gap: 1vw; font-size: 3.2vh; font-weight: 700; }
.tv-brand .logo-mark { width: 5vh; height: 5vh; font-size: 2.4vh; border-radius: 1.2vh; }
.tv-meta { display: flex; gap: 2vw; align-items: center; font-size: 2.6vh; color: rgba(255,255,255,.75); }
.tv-clock { font-size: 5vh; font-weight: 700; color: var(--hi); font-variant-numeric: tabular-nums; }
.tv-champ { background: var(--hi); color: var(--hi-ink); border-radius: 1.4vh; padding: 1.2vh 2vw; font-size: 4vh; font-weight: 700; text-align: center; }
.tv-courts { flex: 1; display: grid; gap: 1.6vw; min-height: 0; }
.tv-court { background: #12306E; border-radius: 2vh; padding: 2.2vh 1.6vw; display: flex; flex-direction: column; gap: 1.4vh; border: .4vh solid transparent; min-width: 0; }
.tv-court.live { border-color: #FF5A5A; }
.tv-court-h { display: flex; justify-content: space-between; font-size: 3vh; font-weight: 700; }
.tv-court-h span:first-child { font-family: var(--display); font-size: 4.6vh; color: var(--hi); }
.tv-court.live .tv-court-h span:last-child { color: #FF7B7B; }
.tv-team { display: flex; justify-content: space-between; align-items: center; gap: 1vw; font-size: 4.4vh; font-weight: 700; flex: 1; border-top: .2vh solid rgba(255,255,255,.14); }
.tv-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-team b { font-size: 11vh; font-variant-numeric: tabular-nums; line-height: 1; }
.tv-round { font-size: 2.4vh; color: rgba(255,255,255,.65); }
.tv-empty { flex: 1; display: grid; place-items: center; font-size: 3vh; color: rgba(255,255,255,.45); }
.tv-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6vw; }
.tv-next { background: rgba(255,255,255,.06); border-radius: 1.6vh; padding: 1.4vh 1.4vw; }
.tv-next h3 { margin: 0 0 .8vh; font-size: 2.6vh; color: var(--hi); }
.tv-row { display: flex; gap: 1.2vw; align-items: center; font-size: 2.8vh; padding: .5vh 0; white-space: nowrap; overflow: hidden; }
.tv-row b { font-variant-numeric: tabular-nums; }
.tv-row .tv-u { color: var(--hi); font-weight: 700; }
.tv-row .w { font-weight: 700; color: #fff; }
.tv-row.muted { color: rgba(255,255,255,.45); }
.tv-exit { position: fixed; top: 8px; right: 10px; color: rgba(255,255,255,.35); font-size: 12px; text-decoration: none; }
.tv-rot { display: none; }
@media (orientation: portrait) { .tv-rot { display: block; position: fixed; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); } .tv-courts { grid-template-columns: 1fr !important; } .tv-bottom { grid-template-columns: 1fr; } }

/* 안전 */
.disclaimer { display: flex; gap: 8px; align-items: flex-start; background: var(--surface-3); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); margin: 10px 0; }
.disclaimer .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }
.sosbtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 18px; background: var(--danger); color: #fff; text-align: left; margin: 4px 0 12px; box-shadow: 0 8px 20px rgba(196,43,43,.3); }
.sosbtn .ic { width: 38px; height: 38px; }
.sosbtn b { display: block; font-size: 19px; }
.sosbtn small { font-size: 12.5px; opacity: .9; }
.sosunits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sosunit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; min-height: 76px; border-radius: 14px; border: 1.5px solid var(--danger); background: var(--danger-soft); color: var(--ink); text-align: left; }
.sosunit b { font-size: 18px; color: var(--danger); }
.sosunit small { font-size: 12px; color: var(--muted); }
.stepdone { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); border-radius: 12px; padding: 12px; }
.stepdone .ic { color: var(--ok); width: 22px; height: 22px; flex: none; }
.script { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.script ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.aed { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.aed:first-of-type { border-top: 0; }
.aed-n { width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.aed-d { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.datamode { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.datamode.live { background: var(--ok-soft); color: var(--ok); }
.datamode.live::before { content: '● '; }
.datamode.snapshot { background: var(--hi-soft); color: var(--hi-ink); }
.wxrow { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.wx { flex: none; width: 58px; text-align: center; background: var(--surface-2); border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; }
.wx span { font-size: 11.5px; color: var(--muted); }
.wx b { font-size: 18px; }
.wx small { font-size: 10.5px; color: var(--muted); }
.advice { border-radius: 12px; padding: 12px; background: var(--ok-soft); }
.advice b { color: var(--ok); }
.advice p { margin: 4px 0 0; font-size: 14px; }
.advice.warn { background: var(--warn-soft); } .advice.warn b { color: var(--warn); }
.advice.severe { background: var(--danger-soft); } .advice.severe b { color: var(--danger); }
.advice.none { background: var(--surface-2); } .advice.none b { color: var(--muted); }
.condrow { padding: 12px 0; border-top: 1px solid var(--line-2); }

/* 리포트 */
.report-h { background: var(--surface); border-radius: var(--r); padding: 18px 16px; margin: 12px 0; border: 1px solid var(--line-2); }
.report-h h2 { margin: 4px 0 10px; font-size: 20px; letter-spacing: -.3px; }
.report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; font-size: 13.5px; }
.report-meta dt { color: var(--muted); font-size: 12px; }
.report-meta dd { margin: 0; font-weight: 600; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.kpi b { font-size: 26px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kpi small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@media print {
  body { background: #fff; } .app { max-width: none; padding: 0; } .appbar, .tabbar, .noprint, .fab, .demo-bar { display: none !important; }
  .card, .kpi, .report-h { box-shadow: none; break-inside: avoid; border-color: #ccc; }
}

/* ══ v4 디자인: 일러스트·도식 ══════════════════════ */
.sp-ic { width: 28px; height: 28px; color: var(--ink); flex: none; }
.fac-ic .sp-ic { width: 30px; height: 30px; }
.fchip .sp-ic, .badge .sp-ic, .hero-sub .sp-ic, .t-head .sp-ic { width: 18px; height: 18px; vertical-align: -4px; }
.t-head .sp-ic, .hero .sp-ic { color: #13233C; }
.sportcard em .sp-ic { width: 36px; height: 36px; }
:root[data-theme="dark"] .sp-ic { color: #C9D4E4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sp-ic { color: #C9D4E4; } }

/* 랜딩 */
.landing { background: var(--bg); min-height: 100dvh; }
.landing .welcome { min-height: auto; }
.landing .welcome-in { padding: calc(28px + env(safe-area-inset-top, 0px)) 24px 28px; }
.land-h1 { font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -1px; margin: 8px 0 4px; word-break: keep-all; }
.hero-art { width: calc(100% + 16px); margin: 8px -8px 0; height: auto; display: block; }
.hero-art .ha-card { filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.hero-art text { font-family: var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ha-arc { stroke-dashoffset: 0; animation: dash 3s linear infinite; }
  .hero-art .ha-card { animation: float 4s ease-in-out infinite; }
  .hero-art .ha-card:nth-of-type(2) { animation-delay: -1.3s; } .hero-art .ha-card:nth-of-type(3) { animation-delay: -2.6s; }
}
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.landing .welcome-cta { margin-top: 18px; padding-top: 0; }
.land-sec { padding: 26px 20px 4px; max-width: 480px; margin: 0 auto; }
.land-h2 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 14px; }
.land-quote { font-size: 17px; line-height: 1.6; margin: 0 0 14px; word-break: keep-all; color: var(--ink-2); }
.land-quote b { color: var(--ink); background: linear-gradient(transparent 62%, var(--hi-soft) 62%); }
.paper-vs { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: stretch; gap: 6px; }
.pv { border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.55; }
.pv .ic { width: 22px; height: 22px; }
.pv b { font-size: 15px; }
.pv.old { background: var(--surface-3); color: var(--muted); }
.pv.new { background: var(--court); color: #fff; }
.pv.new .ic { color: var(--hi); }
.pv-arrow { display: grid; place-items: center; color: var(--faint); }
.feat { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-1); }
.feat-art { height: 96px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; color: var(--court-deep); }
.feat-art svg { width: 100%; height: 100%; max-width: 260px; }
.feat.f1 .feat-art { background: var(--brand-soft); color: var(--brand-text); }
.feat.f2 .feat-art { background: var(--ok-soft); color: var(--ok); }
.feat.f3 .feat-art { background: var(--danger-soft); color: var(--court-deep); }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.mg-a { fill: currentColor; opacity: .55; } .mg-m { fill: #F2C230; } .mg-d { fill: #C42B2B; opacity: .7; }
.land-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.land-steps li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.land-steps li > span { width: 30px; height: 30px; border-radius: 50%; background: var(--court); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.land-steps li div { flex: 1; display: flex; flex-direction: column; }
.land-steps small { color: var(--muted); font-size: 12.5px; }
.land-steps.compact li { border: 0; background: var(--surface-2); }
.data-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dchip { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.dchip .ic { color: var(--brand-text); }
.dchip b { font-size: 14px; } .dchip span { font-size: 12px; color: var(--muted); }
.dchip.muted { opacity: .7; border-style: dashed; }

/* 운영 홈 히어로 */
.ops-title { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.ops-sp { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.ops-sp .sp-ic { width: 38px; height: 38px; }
.hero.ops .hero-club { font-size: 20px; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; background: rgba(0,0,0,.16); border-radius: 16px; padding: 10px 6px; }
.ks { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; min-height: 64px; }
.ks b { font-size: 21px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.ks b small { font-size: 12px; opacity: .7; }
.ks span { font-size: 11px; opacity: .85; }
.ks + .ks { border-left: 1px solid rgba(255,255,255,.18); }
.ring { display: block; }
.ring-bg { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--hi); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .4s; }
.ring-t { font: 700 14px var(--font); fill: #fff; }
.kpi-strip .ring { width: 44px; height: 44px; }
.metaline { display: flex; flex-wrap: wrap; gap: 6px; }
.metaline span { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; }

/* 지금 코트: 위에서 본 코트 그림 */
.courts-sec { margin: 14px 0; }
.courts-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.courts-row::-webkit-scrollbar { display: none; }
.courtcard2 { flex: 0 0 232px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 10px; text-align: left; color: var(--ink); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; }
.courtcard2.is-live { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.cc2-h { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.cc2-u { font-family: var(--display); font-size: 20px; color: var(--brand-text); }
.cc2-n { font-size: 12px; color: var(--muted); padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.court-svg { width: 100%; height: auto; display: block; }
.cs-bg { fill: #1544A8; }
.cs-floor { fill: #2A6BEA; stroke: #fff; stroke-width: 1.6; }
.cs-line { stroke: rgba(255,255,255,.7); stroke-width: 1.2; fill: none; }
.cs-net { stroke: #F2C230; stroke-width: 3; stroke-dasharray: 2 2; }
.cs-team { font: 700 13px var(--font); fill: #fff; }
.cs-score { font: 700 26px var(--font); fill: #F2C230; }
.cs-time { font: 600 11px var(--font); fill: rgba(255,255,255,.85); }
.cs-empty { font: 600 12px var(--font); fill: rgba(255,255,255,.6); }
.court-svg.live .cs-bg { fill: #8E1F1F; }

/* 시간표 (간트) */
.gantt-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: thin; }
.gantt { display: block; }
.gt-grid { stroke: var(--line-2); stroke-width: 1; }
.gt-sep { stroke: var(--line-2); }
.gt-tick { font: 600 10px var(--font); fill: var(--faint); }
.gt-row { font: 700 11px var(--font); fill: var(--muted); }
.gt-b rect { fill: var(--brand); }
.gt-b text { font: 600 9.5px var(--font); fill: #fff; }
.gt-b.done rect { fill: var(--surface-3); } .gt-b.done text { fill: var(--muted); }
.gt-b.live rect { fill: var(--danger); }
.gt-b.ko rect { fill: var(--court-deep); }
.gt-b.moved rect { fill: var(--hi); } .gt-b.moved text { fill: var(--hi-ink); }
.gt-ghost { fill: none; stroke: var(--faint); stroke-width: 1.4; stroke-dasharray: 4 3; }
.gt-now { stroke: #E8574B; stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--brand); }
.lg.done::before { background: var(--surface-3); border: 1px solid var(--line); } .lg.live::before { background: var(--danger); } .lg.ko::before { background: var(--court-deep); }
.lg.moved::before { background: var(--hi); } .lg.ghost::before { background: none; border: 1.4px dashed var(--faint); } .lg.now::before { width: 2px; background: #E8574B; border-radius: 0; }

/* 빈 화면 일러스트 */
.spot { width: 132px; height: 99px; display: block; margin: 0 auto 10px; }
.sp-a { fill: var(--brand-soft); } .sp-b { fill: var(--brand); } .sp-c { fill: var(--hi); } .sp-l { stroke: var(--line); stroke-width: 2.4; fill: none; stroke-linecap: round; } .sp-dot circle { fill: var(--brand); opacity: .5; }

/* 날씨·막대 */
.wx-ic { width: 26px; height: 26px; margin: 2px auto; display: block; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; }
.hbar-l { color: var(--muted); font-weight: 600; }
.hbar-t { height: 12px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hbar b { text-align: right; }

/* 대진표 연결선 */
.bracket-col { position: relative; }
.bracket-col + .bracket-col .bm { position: relative; }
.bracket-col + .bracket-col .bm::before { content: ''; position: absolute; left: -14px; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bracket-col:not(:last-child) .bm::after { content: ''; position: absolute; right: -8px; top: 50%; width: 8px; border-top: 2px solid var(--line); }
.bm { position: relative; overflow: visible; }
.bm > * { overflow: hidden; }
.bm .bm-meta { border-radius: 11px 11px 0 0; }

/* 선수 상세 헤더 */
.player-hero { position: relative; overflow: hidden; background: var(--court); color: #fff; border-radius: 20px; padding: 20px 16px 16px; margin: 12px 0; text-align: center; }
.player-hero::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--court-line); border-radius: 12px; pointer-events: none; }
.player-hero > * { position: relative; }
.player-hero .av { margin: 0 auto; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.player-hero .h1 { color: #fff; }
.player-hero .badge { background: rgba(255,255,255,.18); color: #fff; }
.player-hero .rating-big { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1; margin-top: 12px; }
.player-hero .rating-big small { font-size: 13px; font-weight: 600; opacity: .8; letter-spacing: 0; margin-left: 4px; }
.tierbar { height: 4px; border-radius: 2px; margin-top: 4px; background: linear-gradient(90deg, #8796AA, #5B8DFF, #F2C230); position: relative; }
.aed-pin { width: 26px; height: 26px; border-radius: 50%; background: #C42B2B; color: #fff; border: 2px solid #fff; display: grid; place-items: center; font: 700 12px var(--font); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.welcome .land-h1 { font-family: var(--font); font-size: 31px; line-height: 1.28; font-weight: 700; letter-spacing: -1px; margin: 8px 0 0; }
.landing .welcome-court::before, .landing .welcome-court::after { display: none; }
.hero-art .ha-card { transform-box: fill-box; }
.hero.ops::after { display: none; }
.row .t, .row .d { display: block; }
.refctl { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.podium-card { position: relative; overflow: hidden; background: var(--court); border-radius: 20px; padding: 14px 14px 0; margin: 12px 0; }
.podium-card::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--court-line); border-radius: 12px; pointer-events: none; }
.podium { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 6px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #fff; padding: 0; }
.pod .av { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.pod.p1 .av { width: 58px; height: 58px; box-shadow: 0 0 0 3px var(--hi); }
.pod b { font-size: 13.5px; } .pod span { font-size: 12px; opacity: .85; }
.pod i { font-style: normal; width: 100%; display: grid; place-items: center; margin-top: 6px; border-radius: 10px 10px 0 0; font: 700 22px var(--display); color: var(--court-deep); background: rgba(255,255,255,.85); height: 44px; }
.pod.p1 i { height: 66px; background: var(--hi); } .pod.p3 i { height: 32px; }
.alertrow { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; text-align: left; font-size: 13.5px; margin: 8px 0; color: var(--ink); }
.alertrow.warn { background: var(--warn-soft); } .alertrow.warn > .ic:first-child { color: var(--warn); }
.alertrow .ic { width: 20px; height: 20px; flex: none; }
.kpi { position: relative; }
.kpi-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; background: var(--brand-soft); color: var(--brand-text); }
.kpi-ic .ic { width: 19px; height: 19px; }
.kpi.ok .kpi-ic { background: var(--ok-soft); color: var(--ok); } .kpi.warn .kpi-ic { background: var(--warn-soft); color: var(--warn); }
.kpi.hi .kpi-ic { background: var(--hi-soft); color: var(--hi-ink); } .kpi.danger .kpi-ic { background: var(--danger-soft); color: var(--danger); }
:root { --hi-soft-ink: #7A5600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hi-soft-ink: #F2C230; } }
:root[data-theme="dark"] { --hi-soft-ink: #F2C230; }
.kpi.hi .kpi-ic, .pnote .ic { color: var(--hi-soft-ink); }
.pnote, .demo-bar, .advice.warn p, .refbanner { color: var(--ink); }
/* PC: 왼쪽 소개 패널 + 가운데 앱 */
.desk-side { display: none; }
@media (min-width: 1180px) {
  .desk-side { display: block; position: fixed; top: 48px; left: max(24px, calc(50% - 600px)); width: 330px; color: var(--ink); }
  .desk-side .logo { font-size: 26px; color: var(--court); }
  .ds-tag { margin: 22px 0 6px; font-weight: 700; color: var(--brand-text); font-size: 14px; }
  .ds-h { margin: 0 0 22px; font-size: 26px; line-height: 1.35; letter-spacing: -.6px; word-break: keep-all; }
  .ds-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
  .ds-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--brand); }
  .ds-list b { font-size: 15px; } .ds-list span { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .ds-qr { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-1); }
  .ds-qr .qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 10px; padding: 6px; display: grid; place-items: center; }
  .ds-qr .qr svg { width: 100%; height: 100%; }
  .ds-qr p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; } .ds-qr b { color: var(--ink); }
  .ds-src { font-size: 11.5px; color: var(--faint); margin-top: 16px; line-height: 1.6; }
  .app { margin-left: max(380px, calc(50% - 240px + 140px)); margin-right: auto; }
  .tabbar-in, .fab { }
  .tabbar { left: max(380px, calc(50% - 240px + 140px)); right: auto; width: 480px; }
  .fab { right: auto; left: calc(max(380px, calc(50% - 240px + 140px)) + 480px - 16px); transform: translateX(-100%); }
  body { background-image: none; }
}

/* ══ 디자인 3차: 체육관 코트형 공통 ══════════════════ */
/* 카드: 그림자 대신 얇은 테두리, 제목은 굵은 스포츠 글꼴 */
.card { border-color: var(--line-2); box-shadow: none; }
.card-h h2, .card-h h3, .appbar .title-lg, .sheet-head h2 { font-family: var(--display); font-weight: 400; letter-spacing: .2px; }
.card-h h2, .card-h h3 { font-size: 18px; }
.appbar .title-lg { font-size: 24px; }
.sheet-head h2 { font-size: 20px; }
.section-t { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--ink); letter-spacing: .2px; margin: 24px 2px 8px; }
/* 큰 숫자: 전광판 느낌 */
.big, .mid, .tile b, .kpi b, .ks b, .scoreline, .refscore, .rating-big, .datebox b, .wx b { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.big { font-size: 32px; } .mid { font-size: 22px; } .tile b { font-size: 24px; } .kpi b { font-size: 28px; }
/* 버튼·칩 */
.btn { border-radius: 14px; border-color: var(--line); }
.btn.pri { box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn.soft { background: var(--surface-3); color: var(--ink); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); }
.fab { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 22px rgba(27,36,51,.3); }
.fab .ic { color: var(--hi); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg { background: var(--surface-3); }
.tile { background: var(--surface-2); border: 1px solid var(--line-2); }
.badge { background: var(--surface-3); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { border-color: var(--line); border-radius: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--hi-soft); }
.search input { border-radius: 16px !important; }
.toast { background: var(--brand); color: var(--brand-ink); border-radius: 16px; }
.empty-ic { background: var(--surface-3); color: var(--ink); }
@media (min-width: 720px) { body { background-color: var(--bg-2); } }
/* 탭바: 선택한 탭은 노랑 채움 아이콘 + 알약 배경 */
.tabbar { background: color-mix(in srgb, var(--surface) 96%, transparent); border-top-color: var(--line-2); }
.tab { color: var(--faint); gap: 3px; }
.tab .ic { width: 40px; height: 30px; padding: 3px 8px; border-radius: 12px; transition: background .15s; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before { display: none; }
.tab[aria-current="page"] .ic { fill: var(--hi); background: var(--hi-soft); }
.tab .dotn { top: 6px; left: calc(50% + 10px); }
/* 아이콘 칩 */
.ich { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-text); }
.ich .ic { width: 21px; height: 21px; }
.ich.hi { background: var(--hi-soft); color: var(--hi-soft-ink); }
.ich.ok { background: var(--ok-soft); color: var(--ok); }
.ich.warn { background: var(--warn-soft); color: var(--warn); }
.ich.danger { background: var(--danger-soft); color: var(--danger); }
.ich.court { background: var(--sp-court, var(--court)); color: #fff; }
.ich.ink { background: var(--brand); color: var(--hi); }
.ich.sm { width: 32px; height: 32px; border-radius: 10px; } .ich.sm .ic { width: 18px; height: 18px; }
/* 종목 테마: 코트 그림 */
.cs-bg { fill: var(--sp-floor, #D9A86C); }
.cs-floor { fill: var(--sp-court, #2E8B57); }
.court-svg.live .cs-bg { fill: var(--sp-floor, #D9A86C); }
.cs-score { font-family: var(--display); font-weight: 400; font-size: 30px; }
.scene { display: block; width: 100%; height: 100%; }
/* 홈 히어로 (3차): 종목 장면 + 겹친 요약 카드 */
.hero2 { position: relative; height: calc(214px + env(safe-area-inset-top, 0px)); overflow: hidden; background: var(--sp-floor, #D9A86C); }
.hero2-art { position: absolute; inset: 0; }
.hero2-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; }
.hero2 .logo { background: var(--surface); color: var(--ink); padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 19px; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.hero2 .logo-mark { background: #1B2433; color: var(--hi); }
.hero2 .club-switch { background: rgba(27,36,51,.78); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero2-live { position: absolute; z-index: 1; right: 16px; bottom: 56px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.hero2-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
@media (prefers-reduced-motion: no-preference) { .hero2-live i { animation: blink 1.4s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .25; } }
.sumcard { position: relative; z-index: 2; margin: -44px 16px 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 16px; box-shadow: 0 6px 18px rgba(60,44,16,.08); }
.sum-tag { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sum-h { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.3; letter-spacing: .2px; word-break: keep-all; }
.sum-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sum-prog { margin-top: 14px; }
.sum-prog b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.sum-prog b small { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); }
.sum-prog .bar { margin-top: 8px; height: 10px; border-radius: 5px; }
.sum-prog .bar > i { background: var(--sp-court, var(--court)); }
.sum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.st { border-radius: 14px; padding: 9px 6px; text-align: center; font-size: 11.5px; font-weight: 600; display: flex; flex-direction: column; gap: 1px; }
.st b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.st b small { font-size: 13px; opacity: .7; }
.st.ink { background: #1B2433; color: #fff; }
.st.court { background: var(--sp-court, var(--court)); color: #fff; }
.st.hi { background: var(--hi); color: #2A2000; }
/* 홈 본문 */
.demo-bar { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-2); }
.demo-bar .ic { color: var(--hi-soft-ink); }
.metaline span { background: transparent; border-color: var(--line); }
.clockbar { border-color: var(--line-2); }
.courtcard2 { border-color: var(--line-2); box-shadow: none; border-radius: 20px; }
.courtcard2.is-live { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.cc2-u { font-size: 21px; color: var(--ink); }
.quick { gap: 8px; }
.qbtn { border-color: var(--line-2); box-shadow: none; border-radius: 18px; gap: 8px; min-height: 104px; }
.qbtn > .ich { margin-bottom: 2px; }
.qbtn b { font-size: 14.5px; }
.qbtn.danger { background: var(--surface); border-color: var(--line-2); }
.qbtn.danger b { color: var(--danger); }
.qbtn:hover { border-color: var(--ink-2); }
.card.flush .row > .ich { margin-left: -2px; }
/* 대회 표지 썸네일 */
.cover { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
/* 대회 상세 머리: 종목 장면 띠 + 흰 카드 */
.t-head { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); padding: 0 16px 16px; border-radius: 22px; }
.t-head::before { display: none; }
.t-art { height: 92px; margin: 0 -16px 12px; overflow: hidden; border-radius: 21px 21px 0 0; }
.t-tag { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.t-name { margin: 2px 0 4px; font-family: var(--display); font-size: 22px; line-height: 1.3; letter-spacing: .2px; word-break: keep-all; }
.t-head .sub { color: var(--muted); }
.t-head .bar { background: var(--surface-3); height: 10px; border-radius: 5px; }
.t-head .bar > i { background: var(--sp-court, var(--court)); }
.champ { border-radius: 20px; }
.nextcard { border-radius: 22px; }
.nextcard .big { font-family: var(--display); }
.logo-mark { background: #1B2433; color: var(--hi); }
.tv .logo-mark { background: var(--hi); color: #1B2433; }
.quick.sm .qbtn { min-height: 0; flex-direction: row; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 16px; }
.quick.sm .qbtn .ich { width: 32px; height: 32px; border-radius: 10px; margin: 0; }
.quick.sm .qbtn .ich .ic { width: 18px; height: 18px; }
.quick.sm .qbtn b { font-size: 13px; line-height: 1.25; word-break: keep-all; }
/* 유니폼 아바타 */
.av.jersey { background: none; border-radius: 0; filter: none !important; }
.av.jersey svg { width: 100%; height: 100%; display: block; overflow: visible; }
.av.jersey text { font: 700 10.5px var(--font); fill: #fff; letter-spacing: -.5px; }
.av.jersey.sm text { font-size: 11px; }
.pod .av, .pod.p1 .av, .player-hero .av { box-shadow: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)) !important; }
/* 제목 앞 아이콘 칩 */
.card-h h2.hic { display: flex; align-items: center; gap: 10px; }
.card-h h2.hic .ich { width: 32px; height: 32px; border-radius: 10px; }
.card-h h2.hic .ich .ic { width: 18px; height: 18px; }
/* 메뉴 */
.menu-item { border-color: var(--line-2); box-shadow: none; border-radius: 20px; }
.menu-item .ich .ic { width: 21px; height: 21px; color: inherit; }
.menu-item .ich.court .ic, .menu-item .ich.ink .ic { color: inherit; }
/* 안전: 응급 버튼 */
.sosbtn { border-radius: 22px; padding: 16px 18px; box-shadow: 0 6px 16px rgba(200,55,45,.28); }
.sos-ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--danger); display: grid; place-items: center; flex: none; }
.sos-ic .ic { width: 30px; height: 30px; }
.sosbtn b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.alertrow .ich { width: 32px; height: 32px; border-radius: 10px; }
.alertrow .ich .ic { width: 18px; height: 18px; }
.alertrow.warn { background: var(--surface); border: 1px solid var(--line-2); }
.disclaimer { background: transparent; border: 1.5px dashed var(--line); }
.podium-card { border-radius: 22px; }
.player-hero { border-radius: 22px; }
.fac-ic { background: var(--surface-3); border-radius: 14px; }
.warnbox { background: var(--warn-soft); border-radius: 16px; }
/* 첫 화면: 남색 바탕 + 나무 바닥 초록 코트 */
.welcome { background: #1B2433; }
.welcome-court { border-color: rgba(255,255,255,.14); }
.welcome .land-h1 { color: #fff; }
.welcome-cta .btn.light { color: #1B2433; }
.landing .hero-tag, .welcome .hero-tag { color: var(--hi); }
.pv.new { background: #1B2433; }
.land-steps li > span { background: #1B2433; color: var(--hi); font-family: var(--display); font-weight: 400; }
.feat { box-shadow: none; border-radius: 22px; }
.feat.f1 .feat-art { background: var(--hi-soft); color: #1B2433; }
.feat.f2 .feat-art { background: var(--ok-soft); color: var(--ok); }
.feat.f3 .feat-art { background: var(--danger-soft); color: #1B2433; }
.dchip { box-shadow: none; border-radius: 16px; }
.welcome .logo-mark, .desk-side .logo-mark { background: var(--hi); color: #1B2433; }
.desk-side .logo { color: var(--ink); }
.ds-list li { border-left-color: var(--hi); }
.ds-tag { color: var(--muted); }
.ds-qr { box-shadow: none; }
.sosbtn small, .sub, .tiny, p { word-break: keep-all; }
.mid, .big, .num, .st b, .tv-clock { white-space: nowrap; }
:root[data-theme="dark"] .st.ink { background: #2B3550; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st.ink { background: #2B3550; } }
.cover.big { width: 56px; height: 56px; border-radius: 16px; }
/* 다크 모드 보정 */
.gt-b.plan text { fill: var(--brand-ink); }
.ich.ink { background: #1B2433; color: var(--hi); }
:root[data-theme="dark"] .ich.ink { background: #2B3550; }
:root[data-theme="dark"] .fab .ic { color: #8A6A00; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ich.ink { background: #2B3550; }
  :root:not([data-theme="light"]) .fab .ic { color: #8A6A00; }
}
/* 전광판: 남색 바탕 + 종목 코트 색 패널 */
.tv { background: #141B28; }
.tv-court { background: var(--sp-deep, #1F6B41); box-shadow: inset 0 0 0 .3vh rgba(255,255,255,.25); }
.tv-court.live { border-color: #FF5A5A; }
.tv-team b, .tv-court-h span:first-child, .tv-clock { font-family: var(--display); font-weight: 400; }
.tv-next { background: rgba(255,255,255,.07); }
/* 자동입력 방지 */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap canvas { width: 200px; height: 64px; border-radius: 12px; border: 1px solid var(--line); }
.cap-btns { display: flex; flex-direction: column; gap: 6px; }
.suspect { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--danger); }
.suspect .ic { width: 16px; height: 16px; }
.suspect b { font-weight: 700; }
.row .grow > .tiny.okc { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.row .grow > .tiny.okc .ic { width: 15px; height: 15px; }
.cap-btns { flex-direction: row; }
/* ══ 글꼴·칸 점검 (2026-10-14) ══ */
/* 스포츠 글꼴(Black Han Sans)에는 가운뎃점(·) 같은 기호가 없어 대체 글꼴이 얇게 섞여 보였다.
   굵기를 700으로 두고 가짜 굵게(font-synthesis)를 끄면, 본 글꼴은 그대로(400 한 가지뿐) 나오고
   빠진 기호만 IBM Plex Sans KR 굵은 글꼴로 채워져 자연스럽다. */
.logo, .welcome h1, .refpick-u, .tv-court-h span:first-child, .cc2-u, .card-h h2, .card-h h3, .appbar .title-lg, .sheet-head h2, .section-t,
.big, .mid, .tile b, .kpi b, .ks b, .scoreline, .refscore, .rating-big, .datebox b, .wx b, .cs-score, .sum-h, .sum-prog b, .st b, .t-name,
.nextcard .big, .sosbtn b, .land-steps li > span, .tv-team b, .tv-clock, .pod i { font-weight: 700; font-synthesis: none; }
/* 칸 넘침 */
.grid2 > *, .grid3 > *, .grid2 input, .grid3 input { min-width: 0; }
input[type="date"], input[type="time"], input[type="datetime-local"] { min-width: 0; max-width: 100%; }
.clockbar { flex-wrap: wrap; row-gap: 8px; }
.clockbar > .flex:last-child { flex-wrap: wrap; }
.flex.between { flex-wrap: wrap; row-gap: 6px; }
.refctl .btn { min-width: 0; padding: 0 6px; font-size: 13.5px; white-space: normal; line-height: 1.2; }
.refctl .btn .ic { width: 17px; height: 17px; }
/* 요일 고르기: 칩 묶음(.chipset) 자체를 7칸으로 (예전엔 묶음 전체가 첫 칸에 들어가 찌그러졌다) */
.dows { display: block; }
.dows .chipset { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dows .chip span { padding: 0; justify-content: center; width: 100%; min-height: 42px; }
/* 버튼·타일 글자가 두 줄로 꺾이지 않게 */
.quick.sm .qbtn { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px 4px; }
.quick.sm .qbtn b { white-space: nowrap; font-size: 12.5px; }
.tiles .tile b { white-space: nowrap; font-size: clamp(17px, 5.2vw, 22px); }
.qbtn b, .menu-item b { word-break: keep-all; }
@media (max-width: 360px) {
  .qbtn b { font-size: 13px; }
  .qbtn span { font-size: 11px; }
  .seg button, .fchip, .btn.xs, .btn.sm { font-size: 12.5px; padding-left: 9px; padding-right: 9px; }
  .seg button { padding: 0 4px; }
  .tile span { font-size: 11.5px; }
  .sum-h { font-size: 21px; }
  .st b { font-size: 18px; }
}
.gt-b text { font: 600 10px var(--font); letter-spacing: -.2px; }
.gt-row { font-size: 11.5px; }
/* 긴 버튼 문구는 칸 안에서 줄바꿈 */
.btns > .btn { white-space: normal; text-align: center; line-height: 1.3; word-break: keep-all; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 360px) { .quick:not(.sm) { grid-template-columns: repeat(2, 1fr); } }
/* ══ 전체 다듬기 (2026-10-14) ══ */
/* 한글은 단어 단위로 줄바꿈 (예: "1.1만 곳", "순위·레이팅"이 중간에서 끊기지 않게) */
body { word-break: keep-all; overflow-wrap: break-word; }
/* 그리드 칸 안의 버튼은 칸을 꽉 채운다 (동호회 운영 현황 타일이 좁게 찌그러지던 문제) */
.tiles > button, .refgrid > button, .sosunits > button, .grid2 > button, .grid3 > button, .menu-grid > button, .quick > button { width: 100%; }
/* 작은 버튼 묶음은 글자 길이만큼만 (세로로 길쭉해지던 문제) */
.btns > .btn.sm, .btns > .btn.xs { flex: 0 1 auto; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
/* 시계 줄: 한 줄에 들어가게 */
.clockbar { padding: 8px 10px; }
.clockbar .mid { font-size: 20px; }
.clockbar .btn.xs { padding: 0 8px; }
/* 레이팅 추이: 종목 색 선 */
.spark-line { stroke: var(--sp-court, var(--court)); }
.spark-area { fill: var(--sp-court, var(--court)); opacity: .12; }
.spark-dot { fill: var(--sp-court, var(--court)); }
/* 안내 카드: 차가운 회청색 대신 코트 색을 옅게 */
.card.tint { background: color-mix(in srgb, var(--sp-court, var(--court)) 10%, var(--surface)); }
/* 첫 화면 */
.land-h2 { font-family: var(--display); font-weight: 700; font-synthesis: none; letter-spacing: .2px; }
.feat.f1 .feat-art { color: var(--court); }
/* 동호회 홈 요약 카드 안 보기 전환 (밝은 카드용) */
.sumcard .viewer-bar { background: var(--surface-3); color: var(--ink-2); margin-top: 12px; }
.sumcard .seg-mini { background: var(--surface); }
.sumcard .seg-mini button { color: var(--ink-2); }
.sumcard .seg-mini button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.sum-h .demo-flag { font-family: var(--font); vertical-align: 4px; }
/* 경기 목록 시간 칸: 코트와 원래 시각(취소선)을 각각 한 줄로 */
.mcard .when { display: flex; flex-direction: column; align-items: center; width: 62px; }
.mcard .when > * { display: block; white-space: nowrap; line-height: 1.35; }
.mcard .when s { font-size: 11px; }
/* 소개: 운영 흐름 */
.about-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-steps li { display: flex; gap: 12px; align-items: flex-start; }
.about-steps li div { display: flex; flex-direction: column; }
.about-steps small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
/* 첫 화면: 누가 쓰나요 */
.who { display: grid; gap: 8px; }
.who-i { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 12px 14px; }
.who-i .ic { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #1B2433; color: var(--hi); }
.who-i b { font-size: 15px; } .who-i span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
/* ══ v5: 등록 동호회 ══ */
.emblem { width: 40px; height: 44px; flex: none; display: inline-block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.12)); }
.emblem svg { width: 100%; height: 100%; display: block; }
.emblem text { font: 700 11px var(--font); fill: #fff; letter-spacing: -.5px; }
.emblem.none { color: var(--faint); filter: none; }
.emblem.big { width: 60px; height: 66px; }
.teamlist { display: grid; gap: 8px; }
.teamcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; color: var(--ink); }
.teamcard:hover { border-color: var(--ink-2); }
.teamcard .grow { display: flex; flex-direction: column; min-width: 0; }
.teamcard .t { font-weight: 700; font-size: 15.5px; }
.teamcard .d { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teamcard .end { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; flex: none; }
.teamcard .end b { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 22px; }
.teamcard .end small { font-size: 11px; color: var(--muted); }
.teamcard .end .tiny { margin-top: 3px; }
.team-hero { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 16px; margin: 12px 0; }
.team-hero .grow { min-width: 0; }
.teamrow { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; margin: -4px 0 12px; }
.teamrow .grow { display: flex; flex-direction: column; }
.teamrow .d { font-size: 11.5px; } .teamrow .t { font-size: 15px; }
.pickgroup { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pickgroup:first-of-type { border-top: 0; }
.card dl { margin: 0; }
.card-h { flex-wrap: wrap; row-gap: 4px; }
/* 참가 접수 */
.fairlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.fairlist li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.fairlist .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }
.callrow .grow { display: flex; flex-direction: column; gap: 2px; }
.callrow .rank { margin-top: 8px; }
.callrow .emblem { width: 32px; height: 35px; }
.callrow .emblem text { font-size: 10px; }
.callrow .d { white-space: normal; }
.callrow .suspect { display: block; line-height: 1.45; }
.callrow .suspect .ic { vertical-align: -3px; margin-right: 3px; }
/* 운영 데스크 */
.qitem { border-top: 1px solid var(--line-2); padding: 12px 0; }
.qitem:first-of-type { border-top: 0; padding-top: 4px; }
.qitem.late { background: color-mix(in srgb, var(--danger-soft) 45%, transparent); margin: 0 -16px; padding: 12px 16px; }
.qitem-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qtime { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 20px; }
.qteams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; margin-top: 8px; }
.vs-s { font-size: 12px; color: var(--faint); font-weight: 700; }
.dteam { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.dteam .ic { width: 16px; height: 16px; }
.dteam b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dteam small { font-size: 11.5px; color: var(--muted); }
.dteam.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); } .dteam.ok .ic { color: var(--ok); }
.dteam.no .ic { color: var(--faint); }
.qitem .btns { margin-top: 10px; }
.arrive-list .arr { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; }
.arrive-list .arr.on { color: var(--ok); border: 1.5px solid color-mix(in srgb, var(--ok) 50%, transparent); background: var(--ok-soft); }
.arrive-list .arr .ic { width: 15px; height: 15px; }
.arrive-list .emblem { width: 32px; height: 35px; }
/* 참가자 화면: 호출 배너 */
.callbanner { display: flex; gap: 12px; align-items: center; background: var(--hi); color: #2A2000; border-radius: 18px; padding: 12px 14px; margin: 10px 0; }
.callbanner .ic { width: 28px; height: 28px; flex: none; }
.callbanner div { display: flex; flex-direction: column; } .callbanner b { font-size: 15.5px; } .callbanner span { font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) { .callbanner { animation: pulse 1.6s ease-in-out 3; } }
@keyframes pulse { 50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(242,194,48,.35); } }
/* 출력: 도착 명단만 */
@media print { .print-desk .appbar, .print-desk .clockbar, .print-desk .tiles, .print-desk .card:not(.arrive-list), .print-desk .section-t .btn { display: none !important; } .print-desk .arrive-list .arr { border: 1px solid #999; } }
.tv-call { background: var(--hi); color: #1B2433; font-weight: 700; border-radius: .8vh; padding: .2vh .8vw; font-size: 2.2vh; }
@media (prefers-reduced-motion: no-preference) { .tv-row.called .tv-call { animation: blink 1.2s ease-in-out infinite; } }
/* 전광판 순환 슬라이드 */
.tv-slide { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2vh; }
.tv-stitle { margin: 0; font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 2.6vh; color: var(--hi); letter-spacing: .2px; }
.tv-dots { display: flex; gap: .8vw; justify-content: center; }
.tv-dots button { border: 0; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border-radius: 999px; padding: .6vh 1.4vw; font: 600 1.8vh var(--font); cursor: pointer; }
.tv-dots button[aria-pressed="true"] { background: var(--hi); color: #1B2433; }
.tv-tables { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr)); gap: 1.6vw; min-height: 0; }
.tv-table, .tv-aed { background: var(--sp-deep, #1F6B41); border-radius: 2vh; padding: 2vh 1.6vw; overflow: hidden; }
.tv-table h3, .tv-aed h3 { margin: 0 0 1.2vh; font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 3.4vh; color: var(--hi); }
.tv-trow { display: flex; align-items: center; gap: 1.2vw; padding: 1vh 0; border-top: .2vh solid rgba(255,255,255,.14); font-size: 3vh; }
.tv-trow > b:last-child { margin-left: auto; font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 3.6vh; }
.tv-rank { width: 4.4vh; height: 4.4vh; border-radius: 1vh; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 2.6vh; flex: none; }
.tv-tn { display: flex; flex-direction: column; min-width: 0; font-weight: 700; } .tv-tn small { font-size: 2vh; font-weight: 500; opacity: .7; }
.tv-tn.w { color: var(--hi); }
.tv-rd { font-size: 2.2vh; color: rgba(255,255,255,.65); width: 9vw; flex: none; }
.tv-safe { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; gap: 1.6vw; min-height: 0; }
.tv-sos { grid-column: 1 / -1; background: #C8372D; border-radius: 2vh; padding: 2.4vh 2vw; display: flex; flex-direction: column; gap: 1vh; font-size: 3.2vh; }
.tv-sos > b { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 5vh; }
.tv-119 { background: #fff; color: #C8372D; border-radius: 1vh; padding: 0 1vw; }
.tv-aed p { font-size: 2.6vh; margin: 0; }
.tv-src { font-size: 1.8vh !important; opacity: .6; margin-top: 1vh !important; }
.tv-cond { background: rgba(255,255,255,.07); border-radius: 2vh; padding: 2.4vh 2vw; display: flex; flex-direction: column; gap: 1vh; font-size: 3vh; }
.tv-cond b { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 9vh; color: var(--hi); line-height: 1; }
.tv-cond small { font-size: 2.2vh; opacity: .7; line-height: 1.5; }
@media (orientation: portrait) { .tv-tables, .tv-safe { grid-template-columns: 1fr; } }
/* 클럽리그 시즌 */
.season-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 6px; padding: 4px 10px; border-radius: 999px; background: var(--hi-soft); color: var(--hi-soft-ink); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.season-chip .ic { width: 15px; height: 15px; }
.season-table { display: flex; flex-direction: column; }
.srow { display: grid; grid-template-columns: 30px 1fr repeat(var(--rounds, 2), 34px) 44px; gap: 6px; align-items: center; padding: 9px 0; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; color: inherit; width: 100%; font-size: 14px; }
.srow.sh { border-top: 0; font-size: 11.5px; color: var(--muted); font-weight: 700; padding-top: 0; }
.srow > :nth-child(n+3) { text-align: center; }
.srow > b:last-child { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 18px; }
.sname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sname .emblem { width: 28px; height: 31px; } .sname .emblem text { font-size: 10px; }
.sname > span { display: flex; flex-direction: column; min-width: 0; } .sname b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sname small { font-size: 11.5px; color: var(--muted); }

/* v6-5 안전·편의: 날씨 재확인 일정, 응급 비상연락처, 큰 글씨 */
.recheck { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.recheck b .ic { margin-right: 4px; vertical-align: -2px; }
.recheck-pts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.recheck-pts span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-variant-numeric: tabular-nums; }
.recheck-pts span.on { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 600; }
.recheck-pts span.miss { opacity: .55; text-decoration: line-through; }
.recheck-pts .ic { width: 12px; height: 12px; vertical-align: -1px; }
.ecall { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ecall-r { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.ecall-r:first-child { border-top: 0; }
.ecall-r .d { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
html.bigtext .page { zoom: 1.18; } /* 고정 바(탭바·하단 버튼)는 그대로 두고 본문만 키운다 */
html.bigtext .page .mapbox { zoom: calc(1 / 1.18); } /* 지도는 확대하면 위치 계산이 어긋나 원래 크기로 */
html.bigtext .tiny { font-size: 13px; }
html.bigtext .t-head .t-name, html.bigtext .t-head .sub, html.bigtext .t-head .t-tag { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }

/* 참가자 화면: 컨디션 체크 줄 */
.condmini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); }
.condmini > .ic { color: var(--danger); flex: none; }
.condmini .grow { flex: 1; min-width: 0; }
.absorb { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 0; padding: 10px 12px; border-radius: 12px; background: var(--hi-soft, var(--surface-3)); font-size: 13.5px; line-height: 1.5; }
.absorb > .ic { flex: none; margin-top: 2px; }
.closedcard .champ { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hi-soft); }
.closedcard .champ-ic { font-size: 28px; line-height: 1; }
.closedcard .champ b { font-family: var(--display); font-weight: 400; font-size: 22px; }

/* 게임제 점수: 심판 모드 게임 기록·이긴 게임 수, 경기 카드 게임 점수, 직접 입력 표 */
.refgames { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 0; }
.refgames span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); font-variant-numeric: tabular-nums; }
.refgames .wa { box-shadow: inset 4px 0 0 var(--brand); } .refgames .wb { box-shadow: inset -4px 0 0 var(--danger); }
.refgames .cur { background: var(--hi-soft); font-weight: 700; }
.refgw { font-size: 13px; color: var(--muted); margin-top: 2px; } .refgw b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink); margin-left: 2px; }
.mcard .teams .sets { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.setgrid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; margin-bottom: 8px; }
.setgrid > b { font-size: 13px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-gw { font-style: normal; font-size: .62em; margin-left: 10px; padding: 0 .35em; border-radius: 6px; background: rgba(242,194,48,.22); color: #F2C230; vertical-align: middle; }
.tv-sets { display: block; font-size: .6em; font-weight: 500; opacity: .75; }
.statfilter .filters { margin: 0 0 10px !important; padding: 2px 0 6px; flex-wrap: wrap; }

/* 개인정보 수집·이용 동의 */
.consent { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 6px; margin: 4px 0 14px; background: var(--bg); }
.consent summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14px; list-style: none; }
.consent summary::-webkit-details-marker { display: none; }
.consent details[open] summary .tiny { visibility: hidden; }
.consent-t { margin: 0 0 8px; font-size: 13px; }
.consent-t > div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.consent-t dt { color: var(--muted); font-weight: 600; } .consent-t dd { margin: 0; line-height: 1.5; }
.consent .check { font-size: 14px; min-height: 40px; }
.consent .check b { color: var(--danger); font-weight: 700; }

/* 명단 가져오기 미리 보기 */
.imp-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.imp-r { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line-2); font-size: 14px; }
.imp-r:first-child { border-top: 0; } .imp-r .grow { flex: 1; min-width: 0; }
.imp-r.dup { opacity: .55; } .imp-r.other { background: var(--warn-soft); } .imp-r.bad { background: var(--danger-soft); }
.venue-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
