/* 리유나이트 유니폼 색: 파랑·검정. 밝은 바탕 + 흰 카드 + 파랑/검정 줄무늬 강조 카드 + 파랑 포인트 */
:root {
  --bg: #f1f3f8;
  --card: #ffffff;
  --soft: #e8ecf4;
  --text: #0c0f17;
  --muted: #7b8396;
  --line: #e0e5ef;
  --ink: #0a0c12;          /* 검정 카드 */
  --ink-text: #f3f5fa;
  --ink-muted: #9aa3b8;
  --ink-line: #262c3b;
  --accent: #2463eb;       /* 리유나이트 블루 */
  --accent-bright: #5b8dff; /* 검정 카드 위 파랑 글자 */
  --on-accent: #ffffff;
  --accent-soft: #e6edff;
  --accent-text: #1d4fd0;  /* 밝은 바탕 위 파랑 글자 */
  --stripes: repeating-linear-gradient(90deg, transparent 0 36px, rgba(36, 99, 235, .16) 36px 72px);
  --red: #e4573d;
  --red-soft: #fce9e4;
  --amber: #f0a020;
  --shadow: 0 2px 12px rgba(10, 20, 50, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080c;
    --card: #12151d;
    --soft: #1b2030;
    --text: #eef1f8;
    --muted: #8f97ab;
    --line: #232a3b;
    --ink: #161b28;
    --ink-line: #2c3448;
    --accent-soft: #15213f;
    --accent-text: #7ea4ff;
    --red-soft: #3a1d17;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: -0.01em; -webkit-tap-highlight-color: transparent;
}
main { max-width: 560px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.error { color: var(--red); font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.ok { color: var(--accent-text); font-size: 14px; font-weight: 600; }
.empty { color: var(--muted); font-weight: 600; }
.hidden { display: none !important; }

/* 머리 */
.head { display: flex; align-items: center; gap: 12px; padding: 22px 0 18px; }
.head .t { flex: 1; min-width: 0; }
.head h1 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.head .sub { color: var(--muted); font-weight: 600; font-size: 15px; margin-top: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--soft); flex: none; position: relative; }
.icon-btn .dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
img.logo { display: block; object-fit: contain; background: none !important; border-radius: 0 !important; } /* 앰블럼 (방패 모양 그대로) */
.logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--ink) var(--stripes); color: var(--accent-bright); font-weight: 900; font-size: 20px; flex: none; }
.team-name { font-size: 24px; font-weight: 800; }

/* 카드 */
.card { background: var(--card); border-radius: 26px; padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.tight { padding: 8px 20px; }
.card h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.dark { background: var(--ink) var(--stripes); color: var(--ink-text); border-radius: 30px; padding: 22px; margin-bottom: 14px; }
.dark .muted { color: var(--ink-muted); }
.dark .label { color: var(--accent-bright); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.dark h2 { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.sec-title { display: flex; justify-content: space-between; align-items: center; margin: 26px 2px 12px; }
.sec-title h2 { font-size: 20px; font-weight: 800; }
.sec-title a, .sec-title span { font-weight: 700; font-size: 14px; color: var(--muted); }
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 14px; border-radius: 20px;
  background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: 14px; }
.notice b { color: var(--accent-text); }
.notice .grow { flex: 1; }
.notice .x { border: 0; background: none; color: var(--muted); font-size: 16px; padding: 4px; }

/* 배지 · 칩 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.badge.lime { background: var(--accent); color: var(--on-accent); }
.badge.ink { background: var(--ink); color: var(--accent-bright); }
.badge.line { border: 1.5px solid currentColor; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.soft { background: var(--soft); color: var(--muted); }
.res { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 900; font-size: 13px; flex: none; }
.res.W { background: var(--accent); color: var(--on-accent); }
.res.D { background: var(--soft); color: var(--muted); }
.res.L { background: var(--red-soft); color: var(--red); }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 6px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .pill.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.tabs-seg { display: flex; background: var(--soft); border-radius: 999px; padding: 5px; margin-bottom: 16px; }
.tabs-seg button { flex: 1; border: 0; background: none; padding: 11px 0; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--muted); }
.tabs-seg button.on { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs-seg button.on { background: var(--accent); color: var(--on-accent); } }

/* 버튼 */
.btn { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; padding: 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; text-align: center; }
.btn.lime { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.dark .btn.ghost { color: var(--ink-text); border-color: var(--ink-line); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.kakao { background: #fee500; color: #191919; }
.btn + .btn, .btn + form, form + .btn { margin-top: 10px; }
.btn:disabled { opacity: .5; }
.btn-sm { display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.btn-sm.ghost { background: var(--soft); color: var(--text); }
.btn-sm.danger { background: var(--red-soft); color: var(--red); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fab { position: fixed; right: max(20px, calc(50% - 260px)); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 9;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(36, 99, 235, .35); }
.fab svg.i { width: 28px; height: 28px; stroke-width: 2.4; }

/* 하단 탭 */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
.tabs a { flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tabs a span.ic { display: grid; place-items: center; width: 62px; height: 38px; border-radius: 999px; position: relative; }
.tabs a.on { color: var(--text); }
.tabs a.on span.ic { background: var(--accent); color: var(--on-accent); }
.tabs a .dot { position: absolute; top: 4px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.tabs[hidden] { display: none; }

/* 목록 행 */
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .nm { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ds { color: var(--muted); font-size: 13px; font-weight: 600; }
.row .chev { color: var(--muted); }
.ico-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--soft); flex: none; }
.ava { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--soft); font-weight: 900; font-size: 15px; flex: none; }
.ava.lime { background: var(--accent-soft); color: var(--accent-text); }
.num { display: inline-block; min-width: 24px; margin-right: 6px; padding: 0 5px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.menu .row { padding: 16px 0; }
.menu .row .nm { font-size: 17px; }

/* 경기 카드 */
.ev { display: block; }
.ev-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.ev-title { font-size: 20px; font-weight: 800; margin: 4px 0 2px; }
.ev-place { color: var(--muted); font-size: 14px; font-weight: 600; }
.counts { display: flex; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 700; margin: 10px 0 12px; flex-wrap: wrap; }
.counts .y { color: var(--accent-text); }
.dark .counts .y { color: var(--accent-bright); }
.kind { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.kind-training { background: var(--soft); color: var(--muted); }
.kind-etc { background: transparent; border: 1.5px solid var(--line); color: var(--muted); }
.dark .kind-training, .dark .kind-etc { background: var(--ink-line); color: var(--ink-text); border: 0; }
.score { display: flex; align-items: center; gap: 10px; }
.score b { font-size: 22px; font-weight: 900; }
.big-score { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0 4px; }
.big-score b { font-size: 48px; font-weight: 900; line-height: 1; }
.big-score span { font-size: 28px; color: var(--ink-muted); }
.dday { font-weight: 900; }

/* 투표 */
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 13px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 800; color: var(--muted); }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.seg button.v-maybe.on, .seg button[data-v="late"].on { background: var(--amber); border-color: var(--amber); color: #fff; }
.seg button.v-no.on, .seg button[data-v="absent"].on { background: var(--muted); border-color: var(--muted); color: #fff; }
.dark .seg button { background: transparent; border-color: var(--ink-line); color: var(--ink-muted); }
.dark .seg button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dark .seg button.v-maybe.on { background: var(--amber); border-color: var(--amber); color: #fff; }
.dark .seg button.v-no.on { background: #6b6b5e; border-color: #6b6b5e; color: #fff; }
.seg.mini { flex: none; gap: 4px; }
.seg.mini button { flex: none; padding: 5px 10px; font-size: 12px; border-width: 1px; }
.seg[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* 통계 타일 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--soft); border-radius: 20px; padding: 16px 6px 12px; text-align: center; }
.tile svg.i { color: var(--muted); width: 22px; height: 22px; }
.tile b { display: block; font-size: 30px; font-weight: 900; line-height: 1.15; margin-top: 4px; }
.tile span { font-size: 13px; font-weight: 700; color: var(--muted); }
.tile.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; text-align: left; }
.wdl { display: flex; align-items: center; background: var(--soft); border-radius: 20px; padding: 16px 20px; margin-top: 10px; gap: 6px; }
.wdl > div { flex: 1; text-align: center; font-weight: 900; font-size: 26px; }
.wdl small { font-size: 14px; font-weight: 800; }
.wdl .w { color: var(--accent-text); }
.wdl .l { color: var(--red); }
.wdl .rate { border-left: 1.5px solid var(--line); text-align: right; font-size: 28px; }
.wdl .rate small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #2c3448 0); }
.ring > div { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring b { font-size: 22px; font-weight: 900; }
.ring small { display: block; font-size: 12px; color: var(--ink-muted); }
.sum { display: flex; gap: 18px; align-items: center; }
.sum h2 { font-size: 30px; }
.form-dots { display: flex; gap: 5px; margin-top: 8px; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.leader { background: var(--card); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow); min-height: 104px; display: flex; flex-direction: column; text-align: left; border: 0; }
.leader .k { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.leader .k svg.i { color: var(--accent-text); width: 18px; height: 18px; }
.leader .v { margin-top: auto; font-weight: 800; font-size: 17px; }
.leader .v b { color: var(--accent-text); font-size: 22px; margin-left: 4px; }
.leader .none { margin-top: auto; color: var(--muted); font-weight: 600; font-size: 14px; }
.rank { width: 28px; text-align: center; font-weight: 900; font-size: 17px; color: var(--muted); flex: none; }
.rank.top { color: var(--accent-text); }
.val { text-align: right; flex: none; }
.val b { font-size: 22px; font-weight: 900; }
.val span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }

/* 프로필 */
.profile { display: flex; align-items: center; gap: 18px; }
.profile .ava { width: 84px; height: 84px; border: 3px solid var(--accent-bright); background: transparent; color: var(--accent-bright); font-size: 30px; }
.profile h2 { font-size: 26px; margin: 0; display: flex; align-items: center; gap: 6px; }
.profile .badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* 폼 */
label { display: block; font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.input, textarea, select.input {
  display: block; width: 100%; margin-top: 6px; padding: 14px 16px; font: inherit; font-size: 16px; font-weight: 600;
  border: 0; border-radius: 16px; background: var(--soft); color: var(--text); appearance: none;
}
textarea { resize: vertical; font-size: 15px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stepper { display: flex; align-items: center; gap: 4px; justify-content: center; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; font-weight: 800; }
.stepper b { font-size: 44px; font-weight: 900; min-width: 56px; text-align: center; }
.score-edit { display: flex; align-items: center; justify-content: space-around; }
.score-edit .side { text-align: center; }
.score-edit .side span { font-weight: 800; color: var(--muted); }
.goal-row { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 6px; align-items: center; margin-top: 8px; }
.q-card { padding: 14px 16px; margin-bottom: 10px; }
.q-head { display: flex; align-items: center; gap: 8px; }
.q-head .q-no { font-size: 20px; font-weight: 900; width: 34px; }
.q-head .res { margin-right: auto; }
.q-head .stepper b { font-size: 28px; min-width: 34px; }
.q-head .stepper button { width: 34px; height: 34px; font-size: 18px; }
.q-line { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.q-line span { padding: 4px 10px; border-radius: 999px; background: var(--ink-line); font-size: 13px; font-weight: 800; }
.goal-row .input { margin: 0; padding: 12px 10px; font-size: 14px; }
.goal-row .x { border: 0; background: none; color: var(--muted); font-size: 20px; }
.sticky-bottom { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.dev { margin-top: 20px; }
.memo { white-space: pre-wrap; font-size: 14px; margin-top: 10px; color: var(--ink-muted); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .q { color: var(--accent-text); font-weight: 900; margin-left: 4px; }
.chip.zero .q { color: var(--red); }

/* 라인업 피치 */
.pitch { position: relative; aspect-ratio: 3 / 4; margin: 6px 0 10px; border-radius: 24px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #2f8148 0 8.33%, #2a7541 8.33% 16.66%); }
.pitch::before { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)) 50% 50% / 100% 2px no-repeat,
    radial-gradient(circle at 50% 50%, transparent 15%, rgba(255,255,255,.35) 15.3%, transparent 15.8%); }
.pitch .box { position: absolute; left: 24%; right: 24%; height: 13%; border: 2px solid rgba(255,255,255,.35); }
.pitch .box.top { top: -2px; } .pitch .box.bot { bottom: -2px; }
.pl { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 0; color: #fff; width: 76px; }
.pl i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 13px;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pl b { max-width: 76px; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pl.sub i { background: #fff; color: #0c0f17; }
.pl.r34 i { background: #b9d3ff; color: #0c0f17; }
.sw.r34 { background: #b9d3ff; }
.pl .sub-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.55); color: #ffd60a; max-width: 80px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch.editable .pl[data-drag], .bench-zone [data-drag] { touch-action: none; cursor: grab; }
.pl.dragging, .chip.dragging { opacity: .35; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) scale(1.1); opacity: .9; }
.drag-ghost i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 900; }
.drag-ghost b { display: none; }
.bench-zone { min-height: 44px; padding: 8px; border-radius: 16px; border: 1.5px dashed var(--line); }
.tabs-seg.mini { margin: 4px 0 10px; padding: 4px; }
.tabs-seg.mini button { padding: 8px 0; font-size: 14px; }
.conflict { background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; margin: 6px 0 10px; font-size: 14px; }
.halves { background: var(--soft); border-radius: 16px; padding: 10px 14px; margin: 4px 0 10px; font-size: 14px; }
.half-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pl.off i { background: #ffd166; color: #0c0f17; }
.pl.maybe i { outline: 2px dashed #fff; outline-offset: 2px; }
.pl.empty i { background: rgba(255,255,255,.18); color: #fff; }
.pl.empty b { font-weight: 600; opacity: .7; }
.pl.picked i, .chip.picked { outline: 3px solid #4dabf7; outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); font-weight: 700; margin: 2px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.sw.sub { background: #fff; border: 1px solid var(--line); }
.sw.off { background: #ffd166; }
.sw.maybe { background: transparent; border: 2px dashed var(--muted); }
.mini-pitch { position: relative; width: 104px; height: 140px; border-radius: 16px; flex: none; overflow: hidden;
  background: repeating-linear-gradient(180deg, #2f8148 0 12.5%, #2a7541 12.5% 25%); }
.mini-pitch i { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  font-style: normal; font-size: 7.5px; font-weight: 900; color: var(--on-accent); display: grid; place-items: center; }
.mini-pitch i.gk { background: #8c9a86; color: #fff; }
.fcard { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; border: 2px solid transparent; }
.fcard.on { border-color: var(--accent); background: var(--accent-soft); }
.fcard .grow { flex: 1; min-width: 0; }
.fcard h3 { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fcard p { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.radio { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.on > .radio { background: var(--accent); border-color: var(--accent); }

/* 가입: 등번호 스쿼드판 */
.squad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sq { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 14px; border: 1.5px solid var(--ink-line);
  background: transparent; color: var(--ink-text); }
.sq span { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sq b { font-size: 24px; font-weight: 900; line-height: 1.1; }
.sq.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sq.taken { opacity: .3; }
.sq.gk { color: #ffd60a; border-color: rgba(255, 214, 10, .45); } /* 골키퍼는 노란색 (등번호 스쿼드 그림과 같게) */
.sq.gk.on { background: #ffd60a; border-color: #ffd60a; color: #0c0f17; }

/* 포지션 선택 운동장 */
.label-row { font-size: 14px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pos-pick { margin-bottom: 14px; }
.pick-pitch { max-width: 340px; margin: 0 auto; }
.pp { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
  background: #1e3d2a; color: #fff; font-size: 11px; font-weight: 900; padding: 0; }
.pp.main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translate(-50%, -50%) scale(1.12); }
.pp.sub { background: #fff; border-color: #fff; color: #0c0f17; }
.pp.main::after, .pp.sub::after { position: absolute; top: -8px; right: -8px; font-size: 10px; padding: 1px 5px; border-radius: 999px; background: var(--ink); color: var(--accent-bright); }
.pp[data-rank]::after { content: attr(data-rank); }

/* 일정 정보 · 유니폼 · 지도 */
.ev-info { display: grid; gap: 8px; margin: 12px 0 4px; font-size: 15px; }
.ev-info > div { display: flex; gap: 10px; align-items: flex-start; }
.ev-info svg.i { color: var(--accent-bright); width: 20px; height: 20px; margin-top: 1px; }
.ev-info small { color: var(--ink-muted); }
.uni { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.uni i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; }
.uni.home i { background: #1f4fd8; border-color: #1f4fd8; }
.uni.away i { background: #fff; border-color: #c9c9bd; }
.ev-place .uni { margin-left: 4px; font-size: 13px; }
.maps { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.map-btn { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; background: var(--ink-line); color: var(--ink-text); }
.map-btn.kakao { background: #fee500; color: #191919; }
.map-btn.naver { background: #03c75a; color: #fff; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .input { margin-top: 0; }
.search-row .btn-sm { white-space: nowrap; }
.grid2 > *, .grid3 > * { min-width: 0; }
.input { min-width: 0; max-width: 100%; }
.late { color: var(--red) !important; }

/* 패널티 */
.pen-btn { flex: none; border: 1.5px dashed var(--line); background: none; color: var(--muted); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.pen-btn.on { border: 0; background: var(--red-soft); color: var(--red); }
.pen-btn.off { border-style: solid; color: var(--accent-text); }
.pl.pen i { box-shadow: 0 0 0 3px var(--red); }
.sw.pen { background: transparent; box-shadow: inset 0 0 0 3px var(--red); }
.chip.pen { border-color: var(--red); }

/* 자체경기 팀 */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-col { background: var(--soft); border-radius: 20px; padding: 12px; min-width: 0; }
.team-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.team-head b { font-size: 17px; }
.team-head .muted { margin-left: auto; font-weight: 700; font-size: 13px; }
.team-p { display: flex; align-items: center; gap: 4px; width: 100%; background: var(--card); border: 0; border-radius: 12px; padding: 8px; margin-top: 6px;
  font-weight: 800; font-size: 14px; text-align: left; }
.team-p small { margin-left: auto; color: var(--muted); font-size: 11px; }
.team-p .num { margin-right: 2px; }
.team-p.maybe { outline: 1.5px dashed var(--amber); }
.team-p.pen { box-shadow: inset 3px 0 0 var(--red); }

/* 직함 권한 */
.perm-list { display: grid; gap: 6px; }
.perm { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--soft); color: var(--text); font-weight: 600; font-size: 14px; }
.perm input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.perm.on { background: var(--accent-soft); }
.perm.locked { opacity: .7; }

/* 가이드 */
.guide ul { margin: 0; padding-left: 18px; }
.guide li { margin: 8px 0; line-height: 1.55; font-size: 15px; }

/* 알림 켜기 안내 (가입 직후) */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 15, .6); display: grid; place-items: end center; padding: 16px; }
.modal { width: 100%; max-width: 520px; background: var(--card); border-radius: 28px; padding: 24px; margin-bottom: env(safe-area-inset-bottom); }
.modal h2 { font-size: 22px; margin-bottom: 8px; }

table.pv { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
table.pv td, table.pv th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
