/* 방구석 야구선수 — 스타일 */
:root {
  --cmp-a: #2f6fd6; --cmp-b: #c96a1b;
  --bg: #efeadd;
  --surface: #fffdf8;
  --surface-2: #f6f1e4;
  --ink: #17251d;
  --ink-2: #536158;
  --ink-3: #8a958d;
  --line: #e2dccb;
  --grass: #1f6b45;
  --grass-2: #2f8a5b;
  --grass-soft: #dcebe1;
  --clay: #b85c38;
  --clay-soft: #f6e3d8;
  --stitch: #d1373f;
  --gold: #b8860b;
  --gold-soft: #f8edc9;
  --win: #1f8a4c; --lose: #d1373f; /* 성공·실패 판정 전용 (초록·빨강). 테마가 --grass 를 다른 색으로 바꿔도 그대로 둔다 */
  --shadow: 0 1px 2px rgba(23, 37, 29, 0.06), 0 6px 20px rgba(23, 37, 29, 0.06);
  --radius: 16px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --cmp-a: #5b93ea; --cmp-b: #c9772f;
    --bg: #0d1511; --surface: #16211b; --surface-2: #1c2a22; --ink: #e8efe9; --ink-2: #a7b5ab; --ink-3: #6f7f75; --line: #26362d;
    --grass: #4fbf85; --grass-2: #3ba56f; --grass-soft: #1b3327; --clay: #e0875f; --clay-soft: #3a261c; --stitch: #f0606a;
    --gold: #e6b84a; --gold-soft: #3a3117; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --win: #3ddc84; --lose: #ff5c6c;
  }
}
:root[data-theme='dark'] {
  --cmp-a: #5b93ea; --cmp-b: #c9772f;
  --bg: #0d1511; --surface: #16211b; --surface-2: #1c2a22; --ink: #e8efe9; --ink-2: #a7b5ab; --ink-3: #6f7f75; --line: #26362d;
  --grass: #4fbf85; --grass-2: #3ba56f; --grass-soft: #1b3327; --clay: #e0875f; --clay-soft: #3a261c; --stitch: #f0606a;
  --gold: #e6b84a; --gold-soft: #3a3117; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  --win: #3ddc84; --lose: #ff5c6c;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; word-break: keep-all;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 16px 104px; position: relative; }
.app.plain { padding-bottom: 32px; }

/* 상단 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; }
.ball { width: 22px; height: 22px; flex: none; }
.top-right { display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.grass { background: var(--grass-soft); color: var(--grass); }
.chip.clay { background: var(--clay-soft); color: var(--clay); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }

/* 카드 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; letter-spacing: -0.01em; }
.card.flat { box-shadow: none; }
.sub { color: var(--ink-2); font-size: 13px; }
.muted { color: var(--ink-3); font-size: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rows > .row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rows > .row:last-child { border-bottom: 0; padding-bottom: 0; }
.rows > .row:first-child { padding-top: 0; }
.rows .k { color: var(--ink-2); font-size: 13px; flex: none; }
.rows .v { font-weight: 600; text-align: right; }

/* 선수 카드 */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 18px; margin-bottom: 12px; color: #fff;
  background: linear-gradient(160deg, #1f6b45 0%, #17523a 60%, #123f2d 100%);
  box-shadow: var(--shadow);
}
.hero::before {
  content: ''; position: absolute; right: -70px; bottom: -110px; width: 260px; height: 260px; transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(184, 92, 56, 0.28); border-radius: 18px;
}
.hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 26px, transparent 26px 52px); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-main { display: flex; gap: 14px; align-items: center; }
.avatar { border-radius: 14px; background: rgba(255, 255, 255, 0.14); flex: none; image-rendering: pixelated; }
.hero .name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hero .meta { font-size: 13px; opacity: 0.85; margin-top: 2px; }
.ovr { margin-left: auto; text-align: center; flex: none; }
.ovr b { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.ovr span { font-size: 11px; opacity: 0.8; letter-spacing: 0.08em; }
.hero-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.hero .chip { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* 버튼 */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 16px; background: var(--grass); color: #fff; transition: transform 0.08s ease, filter 0.15s ease; }
:root[data-theme='dark'] .btn, .btn { color: #fff; }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.clay { background: var(--clay); }
.btn.small { min-height: 38px; font-size: 13px; padding: 8px 12px; border-radius: 10px; width: auto; }
.btn .hint { font-weight: 500; font-size: 12px; opacity: 0.85; }
.btn-col { display: flex; flex-direction: column; line-height: 1.25; align-items: center; }
.stack { display: grid; gap: 8px; }
.dock { position: sticky; bottom: 76px; z-index: 5; padding-top: 8px; }
.app.plain .dock { bottom: 12px; }
.dock::before { content: ''; position: absolute; inset: -18px -16px -90px; background: linear-gradient(180deg, transparent, var(--bg) 18px); z-index: -1; pointer-events: none; }

/* 하단 탭 */
.nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.nav button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.nav button svg { width: 22px; height: 22px; }
.nav button.on { color: var(--grass); background: var(--grass-soft); }

/* 능력치 막대 */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 54px 1fr 34px 44px; align-items: center; gap: 8px; font-size: 13px; }
.bar-row.no-delta { grid-template-columns: 54px 1fr 34px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grass); }
.bar-row.focus .bar i { background: var(--clay); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.delta { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.delta.up { color: var(--grass); }
.delta.down { color: var(--stitch); }

/* 기록 격자 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--ink-2); }
.big-line { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* 여정·장면 그림 */
.journey { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.spr { display: block; flex: none; background: url(../assets/journey.webp) no-repeat; border-radius: 18px; margin: 6px 0 8px; box-shadow: var(--shadow); }
.season-stage { padding-top: 20px; }
.season-stage .spr { margin: 0 auto; }

/* 한 장에서 잘라 쓰는 그림 */
.crop { display: inline-flex; align-items: center; justify-content: center; flex: none; vertical-align: middle; overflow: hidden; }
.crop i { display: block; flex: none; }
.crop.art { background: #f6f1e8; image-rendering: auto; }
.logo.crop { border-radius: 22%; background: #f6f1e8; }

/* 마일스톤 */
.moment { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.moment:last-child { border-bottom: 0; padding-bottom: 0; }
.moment .spr { margin: 0; border-radius: 12px; box-shadow: none; }
.moment p { font-weight: 600; }
.moment.big { flex-direction: column; text-align: center; padding: 14px 0; }
.moment.big .spr { border-radius: 18px; }
.tick { display: flex; align-items: center; gap: 10px; }
.tick .spr { margin: 0; border-radius: 8px; box-shadow: none; }

/* 엠블럼 */
.logo { flex: none; vertical-align: middle; object-fit: contain; }
.logo.plate { box-sizing: border-box; background: #f6f1e8; border-radius: 50%; }
.tm { display: inline-flex; align-items: center; gap: 6px; }
.rows .v.tm { justify-content: flex-end; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.opt-row { display: flex; gap: 12px; align-items: center; }
.opt-body { flex: 1; min-width: 0; display: block; }

/* 표 */
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { color: var(--ink-3); font-weight: 600; font-size: 11.5px; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
tr.me td { background: var(--grass-soft); font-weight: 700; }
tr.cut td { border-bottom: 2px solid var(--clay); }

/* 선택지 */
.screen-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; margin: 10px 0 6px; }
.screen-desc { color: var(--ink-2); margin-bottom: 16px; }
.opt { display: block; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; transition: border-color 0.12s ease, background 0.12s ease; }
.opt:hover { border-color: var(--grass); }
.opt.on { border-color: var(--grass); background: var(--grass-soft); }
.opt.muted-opt { background: transparent; }
.opt .t { font-weight: 700; font-size: 16px; display: block; }
.opt .s { color: var(--ink-2); font-size: 13px; display: block; margin-top: 2px; }
.opt .chip { margin-bottom: 6px; }
/* 결정적 순간: 성공·실패 때 바뀔 능력치 미리 보기 */
.opt .fx { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; }
.opt .fx small { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.fx .up { color: var(--grass); font-weight: 700; }
.fx .down { color: var(--stitch); font-weight: 700; }
.fx .down.muted, .fx .up.muted { color: var(--ink-3); font-weight: 600; }
.clutch-tip { font-size: 14px; color: var(--ink); margin: -8px 0 12px; }
.chips.clutch-fx { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip.up { background: var(--grass-soft); color: var(--grass); }
.chip.down { background: var(--clay-soft); color: var(--stitch); }
.chip small { font-weight: 500; opacity: 0.8; }
.bars.cl .bar-row:not(.no-delta) { grid-template-columns: 54px 1fr 34px 58px; }
.cl-tag { display: block; font-size: 10px; font-weight: 600; white-space: nowrap; }
.cl-tag.up { color: var(--grass); }
.cl-tag.down { color: var(--stitch); }

/* 생성 화면 */
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: none; }
.input:focus { border-color: var(--grass); }
.grid-2 { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.pick.on { background: var(--grass); border-color: var(--grass); color: #fff; }
.pick[hidden] { display: none; }
.pick small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.pick.on small { color: inherit; opacity: 0.85; }
.input.school-q { font-size: 16px; }
.group-label { font-size: 11px; color: var(--ink-3); margin: 8px 0 4px; font-weight: 700; }
.avatars { display: flex; gap: 6px; flex-wrap: wrap; }
.avatars button { padding: 4px; border-radius: 14px; border: 2px solid transparent; background: var(--surface-2); line-height: 0; }
.avatars button.on { border-color: var(--grass); background: var(--grass-soft); }
.cand { position: relative; }
.cand .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.cand .head b { font-size: 17px; }

/* 시즌 진행 */
.season-stage { min-height: 70dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.scoreboard { background: #10231a; color: #e9f5ee; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.06); }
.scoreboard .yr { font-size: 13px; opacity: 0.7; letter-spacing: 0.06em; }
.scoreboard .mon { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4fbf85, #f2d16b); border-radius: 99px; }
.ticker { display: grid; gap: 8px; min-height: 180px; align-content: start; }
.tick { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; animation: pop 0.28s ease both; }
.tick.good { border-color: var(--grass); color: var(--grass); background: var(--grass-soft); }
.tick.bad { border-color: var(--stitch); color: var(--stitch); }
.tick.gold { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
/* 은퇴 투어 방문 구장 칩: 처음엔 흐리게, 방문 줄이 나오면 금색으로 켜진다 */
.tour-board { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tour-board b { font-size: 13px; color: var(--gold); margin-right: 2px; }
.tour-board .stop { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); font-size: 13px; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; transition: all 0.25s ease; }
.tour-board .stop.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

/* 결과 */
.ovr-change { display: flex; align-items: baseline; gap: 10px; }
.ovr-change b { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.list li { display: flex; gap: 8px; align-items: baseline; }
.list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grass); flex: none; transform: translateY(-2px); }
.list.gold li::before { background: var(--gold); }
.banner { border-radius: 14px; padding: 12px 14px; font-weight: 700; margin-bottom: 12px; }
.banner.gold { background: var(--gold-soft); color: var(--gold); }
.banner.bad { background: var(--clay-soft); color: var(--clay); }
.banner.info { background: var(--grass-soft); color: var(--grass); }

/* 반응 */
.post { padding: 12px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .who { font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }
.post p { margin-top: 2px; }
/* 화자 갈래: 꼬리표(기사·갤러리·채팅·응원석·타 팀 팬)와 갈래별 모양 */
.post .vtag { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; margin-right: 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.post.v-press { border-left: 3px solid var(--ink); padding-left: 10px; }
.post.v-press p { font-weight: 700; }
.post.v-press .vtag { background: var(--ink); color: var(--surface); }
.post.v-gall .vtag { background: var(--grass-soft); color: var(--grass); }
.post.v-chat .vtag { background: var(--gold-soft); color: var(--gold); }
.post.v-chat .chat-line { font-size: 13px; line-height: 1.35; margin-top: 4px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); }
.post.v-chat .chat-line b { margin-right: 6px; font-weight: 600; color: var(--grass); }
.post.v-rival p { color: var(--ink-2); }
.post.v-rival .vtag { background: var(--clay-soft); color: var(--clay); }

/* 상점 */
.shop-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.shop-item:last-child { border-bottom: 0; padding-bottom: 0; }
.shop-item b { display: block; }

/* 은퇴 */
.grade { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-size: 38px; font-weight: 900; background: rgba(255, 255, 255, 0.16); border: 2px solid rgba(255, 255, 255, 0.35); flex: none; letter-spacing: -0.04em; }
.timeline { display: grid; gap: 14px; position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .m { position: relative; }
.timeline .m::before { content: ''; position: absolute; left: -18px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--grass); border: 2px solid var(--surface); }
.timeline .y { font-size: 12px; color: var(--ink-3); font-weight: 700; }

/* 랜딩 */
.landing { min-height: 92dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 0; }
/* 열 폭을 화면에 맞춘다. 지정이 없으면 긴 이름 길이만큼 열이 늘어나 화면 밖으로 밀린다. */
.landing-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.landing-content > .btn { min-width: 0; overflow-wrap: anywhere; }
.landing h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.045em; line-height: 1.12; }
.landing h1 em { font-style: normal; color: var(--grass); }
.diamond { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }

/* 키우던 선수 목록 */
.slot { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.slot:last-child { border-bottom: 0; padding-bottom: 0; }
.slot-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px; border-radius: 12px; }
.slot-main:hover { background: var(--surface-2); }
.slot > .btn { flex: none; white-space: nowrap; }
/* 긴 이름은 잘라 내지 않고 칸 안에서 줄을 바꾼다. 삭제 버튼과 겹치지 않는다. */
.slot-text { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; overflow-wrap: anywhere; gap: 1px; }
.slot-text b { font-size: 16px; }
/* 2026-11-22 목록 개편: 선수 모습 · 이름·등번호·태그 · 오른쪽 OVR(은퇴는 등급) · 작은 삭제 글자 */
.slot-pic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); overflow: hidden; position: relative; }
.slot-pic .body-art, .slot-pic .face-thumb { margin: 0; }
.slot-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.slot-no { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.slot-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); }
.slot-tag.on { background: rgba(255, 207, 92, 0.18); color: var(--gold); }
.slot-score { flex: none; display: grid; justify-items: end; line-height: 1; margin-left: auto; padding-left: 6px; }
.slot-score b { font-size: 26px; color: var(--gold); }
.slot-score small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 3px; }
.slot.retired .slot-score b { color: var(--ink-2); font-size: 22px; }
.slot.retired .slot-pic { filter: grayscale(0.5); }
.slot-del { flex: none; align-self: stretch; padding: 0 6px; font-size: 12px; color: var(--ink-3); background: none; border: 0; }
.slot-del:hover { color: var(--bad, #ff6b6b); }
.top .btn.small { min-height: 32px; padding: 4px 10px; }

/* 모달 */
.modal-back { position: fixed; inset: 0; background: rgba(8, 14, 11, 0.55); z-index: 50; display: grid; place-items: end center; }
.modal { width: 100%; max-width: 520px; max-height: 86dvh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: rise 0.22s ease both; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal h4 { margin: 16px 0 4px; font-size: 14px; }
.modal p { color: var(--ink-2); font-size: 14px; }
.toasts { position: fixed; left: 0; right: 0; bottom: 96px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: 88vw; text-align: center; animation: pop 0.2s ease both; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .landing h1 { font-size: 34px; } }

/* 생성된 그림 */
.art { flex: none; object-fit: contain; vertical-align: middle; }
.art.pic { object-fit: cover; border-radius: 12px; }
.art.mini { margin-right: 6px; padding: 2px; }
.art.shop-icon { padding: 4px; }
.art.emo { display: block; margin: 4px 0 2px; }
.art.art-player { background: #f6f1e8; border-radius: 14px; }
.scene { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin: 6px 0 10px; box-shadow: var(--shadow); }
.shop-item.has-icon { grid-template-columns: auto 1fr auto; }
/* 돈이 없는 아마추어: 상점을 한 줄로 접는다 */
.shop-fold > summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.shop-fold > summary .muted { font-size: 13px; }
.shop-fold[open] > summary { margin-bottom: 8px; }
.list li { align-items: center; }
.journey-rot { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; box-sizing: content-box; padding-bottom: 32px; margin: 0 auto; }
.journey-rot figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.5s ease; display: grid; grid-template-rows: minmax(0, 1fr) 32px; justify-items: center; }
.journey-rot figure.on { opacity: 1; }
.journey-frame { position: relative; width: 100%; height: 100%; overflow: hidden; }
.journey-frame img { position: absolute; width: var(--frame-size); height: var(--frame-size); max-width: none; top: var(--frame-y); left: var(--frame-x); object-fit: contain; }
/* 720px 원본의 불투명 영역을 기준으로 장면의 바닥 높이를 맞춘다. */
.journey-rot [data-frame="bench"] { --frame-size: 104.8%; --frame-x: 0.3%; --frame-y: 5.4%; }
.journey-rot [data-frame="draft"] { --frame-size: 95.0%; --frame-x: 1.2%; --frame-y: 3.3%; }
.journey-rot [data-frame="homerun"] { --frame-size: 104.6%; --frame-x: -2.1%; --frame-y: -0.9%; }
.journey-rot [data-frame="mvp"] { --frame-size: 96.8%; --frame-x: 1.0%; --frame-y: 3.4%; }
.journey-rot [data-frame="ring"] { --frame-size: 97.2%; --frame-x: 2.7%; --frame-y: 3.0%; }
.journey-rot figcaption { font-weight: 700; color: var(--ink-2); padding-top: 6px; }

/* 선수 모습 (전신 겹치기) */
.look { position: relative; display: inline-block; flex: none; border-radius: 14px; overflow: hidden; background: #f6f1e8; }
.look.full { background: radial-gradient(ellipse at 50% 92%, rgba(0,0,0,0.12), transparent 40%), #f6f1e8; }
.look-in { position: absolute; inset: 0; display: block; }
.look:not(.full) .look-in { inset: auto; }
.look-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; image-rendering: auto; }
.look-preview { display: grid; place-items: end center; width: 156px; height: 214px; padding-bottom: 8px; margin: 4px auto 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.look-preview .body-art.full, .look-preview .face-thumb { background: transparent; }
.look-row { margin-bottom: 6px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.25); }

/* 통째로 그린 선수 그림 */
.pt-thumb { position: relative; display: inline-block; flex: none; overflow: hidden; border-radius: 14px; background: #f6f1e8; }
.pt-thumb img { position: absolute; left: 50%; top: 2%; width: 190%; transform: translateX(-50%); }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-full { margin: 0; background: radial-gradient(ellipse at 50% 92%, rgba(0,0,0,0.12), transparent 45%), #f6f1e8; border-radius: 14px; padding: 6px; aspect-ratio: 2 / 3; display: grid; grid-template-rows: 1fr auto; }
.pt-full img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.pt-full figcaption { text-align: center; font-size: 12px; font-weight: 700; color: #536158; }
.pt-wait { display: grid; place-items: center; color: #8a958d; font-size: 13px; }

/* 커리어 등급 */
.grade { flex-direction: column; gap: 0; line-height: 1; }
.grade small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0; opacity: 0.8; margin-top: 4px; }
.rows .row.total { border-top: 1px solid var(--line); font-weight: 800; }
.grade-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 12px 0 8px; }
.grade-ladder > div { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: grid; gap: 2px; opacity: 0.6; }
.grade-ladder > div.on { opacity: 1; border-color: var(--grass); box-shadow: 0 0 0 1px var(--grass) inset; }
.grade-ladder b { font-size: 16px; }
.grade-ladder span { font-size: 12px; }
.grade-ladder i { font-size: 11px; font-style: normal; opacity: 0.75; }

/* 모습 아바타 */
.look-av { background: var(--surface-2); border-radius: 14px; }
.hero .look-av { background: rgba(255, 255, 255, 0.14); }
.look-pick .look-preview { margin: 4px auto 10px; }

/* 빈 화면 안내 */
.card.empty { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 24px 18px; }

/* 주전 경쟁 */
.rival-row { display: grid; grid-template-columns: 112px 1fr 32px; align-items: center; gap: 8px; margin: 6px 0; }
.rival-row .who { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rival-row .who small { color: var(--ink-3); font-weight: 500; }
.rival-row b { text-align: right; }
.rival-row.foe .bar i { background: var(--clay); }

span.bad { color: var(--stitch); font-weight: 700; }

/* 구종 별점 */
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }

/* 선수 만들기 단계 표시 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 14px; }
.steps span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); text-align: center; }
.steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.steps span.on { color: var(--ink); font-weight: 700; }
.steps span.on b { background: var(--grass); border-color: var(--grass); color: #fff; }
.steps span.done b { background: var(--grass-soft); border-color: var(--grass-soft); color: var(--grass); }

/* 결정적 순간 */
.clutch-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.clutch-head .screen-title { margin: 6px 0 0; font-size: 22px; }
/* 결정적 순간 장면: 선택지가 화면 아래로 밀리지 않게 낮고 넓게 자른다(타석·마운드가 아래쪽에 있어 초점을 조금 내린다) */
.view-clutch > .scene { aspect-ratio: 12 / 5; max-width: 560px; margin-inline: auto; --scene-focus: 62%; }
/* 성공·실패 결과 그림(2026-11-22 확정): 구도를 자르지 않게 늘 3:2. 휴대폰의 2:1 자르기·결정적 순간의 12:5 자르기보다 우선 */
.scene.scene-result { aspect-ratio: 3 / 2; }
.view-clutch > .scene.scene-result { aspect-ratio: 3 / 2; max-width: 480px; }
/* 성공·실패 판정: 카드 면의 색 + 둥근 기호 + 큰 글자로 구분한다 (선은 쓰지 않는다).
 * 성공(명장면 포함)은 --win(초록), 실패는 --lose(빨강). 결과 카드 안의 ▲▼ 변화도 같은 두 색을 쓴다. */
.verdict { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.verdict-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.verdict-word { font-size: 30px; font-weight: 900; line-height: 1.1; }
.verdict small { margin-left: auto; color: var(--ink-2); font-size: 12px; text-align: right; }
.verdict.ok .verdict-mark, .verdict.big .verdict-mark { background: var(--win); color: #06210f; }
.verdict.ok .verdict-word, .verdict.big .verdict-word { color: var(--win); }
.verdict.big .verdict-mark { box-shadow: 0 0 0 6px color-mix(in srgb, var(--win) 22%, transparent), 0 0 24px color-mix(in srgb, var(--win) 35%, transparent); }
.verdict.no .verdict-mark { background: var(--lose); }
.verdict.no .verdict-word { color: var(--lose); }
.verdict.even .verdict-mark { background: var(--surface-2); color: var(--ink-2); }
.card.clutch-result.ok, .card.clutch-result.big, .card.event-result.ok { background: linear-gradient(120deg, color-mix(in srgb, var(--win) 16%, transparent), transparent 75%), var(--surface) !important; }
.card.clutch-result.no, .card.event-result.no { background: linear-gradient(120deg, color-mix(in srgb, var(--lose) 18%, transparent), transparent 75%), var(--surface) !important; }
:is(.clutch-result, .event-result) .chip.up { color: var(--win) !important; }
:is(.clutch-result, .event-result) .chip.down { color: var(--lose) !important; }
.clutch-rows .v.good { color: var(--win) !important; }
.clutch-rows .v.bad { color: var(--lose) !important; }

span.good { color: var(--grass); font-weight: 700; }

/* 은퇴 그 후 */
.hof { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.hof.in { border-color: var(--gold); background: linear-gradient(180deg, rgba(184, 134, 11, 0.08), transparent); }
.hof-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.hof-head span { font-size: 13px; color: var(--ink-2); }
.hof.in .hof-head span { color: var(--gold); font-weight: 700; }
.hof-row { display: grid; grid-template-columns: 44px 1fr 52px; gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; }
.hof-row .bar { position: relative; }
.hof-row .bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--stitch); }
.hof-row b { text-align: right; }
.retired-no { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.retired-no div { display: grid; gap: 2px; }
.timeline .t-item { border-left: 2px solid var(--grass); padding: 0 0 10px 12px; margin-left: 4px; }
.timeline .t-item span { font-size: 12px; color: var(--ink-3); }
.timeline .t-item p { margin: 2px 0 0; }

/* 업적 · 도감 */
.modal h3.sec { margin: 16px 0 8px; font-size: 14px; }
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ach { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 2px; opacity: 0.55; background: var(--surface-2); }
.ach.on { opacity: 1; background: var(--surface); }
.ach.on.t3 { border-color: var(--grass); }
.ach.on.t4 { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.ach b { font-size: 13px; }
.ach span { font-size: 12px; color: var(--ink-2); }
.ach i { font-size: 11px; font-style: normal; color: var(--ink-3); }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.dex span { display: grid; justify-items: center; gap: 2px; filter: grayscale(1); opacity: 0.35; }
.dex span.on { filter: none; opacity: 1; }
.dex small { font-size: 10px; text-align: center; color: var(--ink-2); }

/* 미리 그린 얼굴 썸네일 */
.face-thumb { position: relative; display: inline-block; flex: none; overflow: hidden; border-radius: 14px; background: #f3eee2; }
.face-thumb img { position: absolute; left: 50%; top: 0; width: 125%; transform: translateX(-50%); }
.face-thumb .face-team { position: absolute; right: 2px; bottom: 2px; line-height: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35)); }

/* 기록실 */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 2px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.ach-sum { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ach-sum b { font-size: 26px; }
.ach-tier { display: inline-flex; gap: 6px; align-items: baseline; margin: 0 10px 0 0; font-size: 13px; }
.ach-tier.t4 b { color: var(--gold); }
h3.sec { margin: 18px 0 8px; font-size: 14px; }
.hall-player .hp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hall-player .hp-head > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hall-player .hp-head .ach-diff, .post .who .ach-diff { font-size: 11px; padding: 1px 7px; margin-right: 5px; vertical-align: 1px; white-space: nowrap; }
.grade-chip { font-weight: 900; font-size: 18px; padding: 4px 10px; border-radius: 10px; background: var(--grass-soft); color: var(--grass); }
.rank-list { display: grid; gap: 2px; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 8px; }
.rank-row:nth-child(-n+3) span:first-child { color: var(--gold); font-weight: 900; }
.rank-row.me { background: var(--grass-soft); }
.rank-row small { color: var(--grass); font-weight: 700; }
.hall-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.hall-link > span:first-child { font-size: 26px; }
.hall-link div { flex: 1; display: grid; gap: 2px; }

/* 유니폼 전신 */
.body-art { position: relative; display: inline-block; flex: none; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at 50% 96%, rgba(0,0,0,0.14), transparent 42%), var(--surface-2); }
.hero .body-art { background: rgba(255, 255, 255, 0.16); }
.body-art.full { background: radial-gradient(ellipse at 50% 97%, rgba(0,0,0,0.16), transparent 30%), var(--surface-2); }
.body-in { position: absolute; inset: 0; display: block; transform-origin: 50% 50%; }
.body-art:not(.full) .body-in { inset: auto; }
.body-in img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.body-art .face-team { position: absolute; right: 2px; bottom: 2px; line-height: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35)); }

/* 저장 동기화 충돌 고르기 */
.sync-row { margin: 12px 0; }
.sync-row h4 { margin: 0 0 6px; }
.sync-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sync-side { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.sync-side b { font-size: 14px; }
.sync-side small { color: var(--ink-3); }
.sync-side .btn { margin-top: 6px; }
@media (max-width: 380px) { .sync-pair { grid-template-columns: 1fr; } }

/* 시즌별 흐름 그래프 */
.ch-metrics { margin: 4px 0 6px; }
.career-chart { display: block; width: 100%; height: auto; overflow: visible; }
.career-chart .ch-grid { stroke: var(--line); stroke-width: 1; }
.career-chart .ch-tick { fill: var(--ink-3); font-size: 9px; font-variant-numeric: tabular-nums; }
.career-chart .ch-band { fill: var(--ink-3); font-size: 9px; font-weight: 600; }
.career-chart .ch-label { fill: var(--ink); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.career-chart .ch-line { fill: none; stroke: var(--grass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.career-chart .ch-dot { fill: var(--grass); stroke: var(--surface); stroke-width: 2; }
.career-chart .ch-dot.farm { fill: var(--surface); stroke: var(--grass); stroke-width: 1.6; }
.career-chart .ch-dot.on { stroke: var(--ink); stroke-width: 2; }
.career-chart [data-act] { cursor: pointer; }
.ch-read { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.ch-legend { margin-top: 6px; font-size: 12px; }
.ch-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.ch-key.gold { background: var(--gold-soft); border: 1px solid var(--gold); }
.ch-key.farm { border-radius: 50%; border: 1.6px solid var(--grass); background: var(--surface); }

/* FA 협상 */
.agent-card .chips { margin-top: 2px; }
.neg-help { margin: -2px 2px 10px; font-size: 12px; }
.neg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 4px 14px; }
.neg-row > .muted { font-size: 12px; margin-right: 2px; }
/* 협상 꼬리표는 왼쪽에 두고, 버튼이 두 줄로 넘쳐도 꼬리표 오른쪽 칸 안에서만 줄을 바꾼다 */
.neg-row:has(.neg-btns) { flex-wrap: nowrap; align-items: flex-start; }
.neg-row:has(.neg-btns) > .muted { line-height: 36px; flex: none; }
.neg-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.neg-row .btn small { opacity: 0.7; font-weight: 600; margin-left: 2px; }

/* 포스트시즌 대진표 */
.br-me { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.bracket { display: flex; flex-direction: column; gap: 12px; }
.br-round { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.br-title { grid-column: 1 / -1; }
.br-title { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.br-series { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.br-series.mine { border-color: var(--grass); box-shadow: 0 0 0 1px var(--grass) inset; }
.br-team { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 13px; color: var(--ink-2); }
.br-team + .br-team { border-top: 1px solid var(--line); }
.br-team .br-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-team small { font-size: 11px; }
.br-team b { min-width: 14px; text-align: right; }
.br-team.win { color: var(--ink); font-weight: 700; }
.br-team.me { background: var(--grass-soft); }
.trust .bar.low i { background: var(--clay); }

/* 지도자의 길 */
.coach-now { margin: 0 0 10px; font-size: 14px; }
.coach-styles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.coach .t-item.gold p { color: var(--gold); font-weight: 700; }
.coach .t-item.good p { color: var(--grass); }
.coach .t-item.bad p { color: var(--clay); }

/* 선수 비교 */
.cmp-pick { margin: 4px 0 8px; }
.cmp-pick .pick.on.a { background: var(--cmp-a); border-color: var(--cmp-a); color: #fff; }
.cmp-pick .pick.on.b { background: var(--cmp-b); border-color: var(--cmp-b); color: #fff; }
.cmp-key { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.cmp-key.a { background: var(--cmp-a); }
.cmp-key.b { background: var(--cmp-b); }
.cmp-key.b.dash { background: repeating-linear-gradient(90deg, var(--cmp-b) 0 4px, transparent 4px 7px); }
.cmp-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.cmp-table th.a, .cmp-table th.b { text-align: right; }
.cmp-table th.a { border-bottom: 3px solid var(--cmp-a); }
.cmp-table th.b { border-bottom: 3px solid var(--cmp-b); }
.cmp-table td.win { font-weight: 800; color: var(--ink); }
.career-chart .cmp-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.career-chart .cmp-line.a { stroke: var(--cmp-a); }
.career-chart .cmp-line.b { stroke: var(--cmp-b); stroke-dasharray: 5 4; }
.career-chart .cmp-dot { stroke: var(--surface); stroke-width: 1.5; }
.career-chart .cmp-dot.a { fill: var(--cmp-a); }
.career-chart .cmp-dot.b { fill: var(--cmp-b); }
.career-chart .cmp-name { fill: var(--ink-2); font-size: 10px; font-weight: 700; }
.usage-line { margin: 2px 0 6px; font-size: 12px; }

/* 큰 자리 전신 */
.big-fig { position: relative; display: inline-block; flex: none; }
.big-fig img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.result-stage { display: flex; justify-content: center; align-items: flex-end; margin: 4px auto 8px; padding: 12px 0 6px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 92%, rgba(0,0,0,0.18), transparent 38%), radial-gradient(circle at 50% 30%, var(--grass-soft), transparent 70%); }
.result-stage .body-art.full { background: transparent; }
.hero-retired .hero-main { align-items: flex-end; }
.hero-retired .body-art.full, .hero-retired .big-fig { background: rgba(255, 255, 255, 0.14); border-radius: 14px; }

/* 첫 플레이 안내 */
.tour-step { font-size: 12px; font-weight: 700; color: var(--grass); margin-bottom: 4px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--grass); width: 18px; border-radius: 4px; }

/* 글자를 크게 해도 위쪽 버튼은 한 줄로 */
.top .btn, .top .chip { white-space: nowrap; }

/* 능력치 다각형 */
.radar-wrap { display: flex; justify-content: center; margin: 4px 0 6px; }
.radar { display: block; max-width: 100%; height: auto; overflow: visible; }
.radar .rd-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .rd-axis { stroke: var(--line); stroke-width: 1; }
.radar .rd-shape { fill: color-mix(in srgb, var(--grass) 28%, transparent); stroke: var(--grass); stroke-width: 2; stroke-linejoin: round; }
.radar .rd-ref { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.radar .rd-dot { fill: var(--grass); stroke: var(--surface); stroke-width: 1.5; }
.radar .rd-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
.radar .rd-label.focus { fill: var(--clay); font-weight: 800; }
.radar .rd-val { fill: var(--ink); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rd-legend { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.rd-key { display: inline-block; width: 14px; height: 0; vertical-align: middle; margin-right: 5px; border-top: 3px solid var(--grass); }
.rd-key.prev { border-top: 2px dashed var(--ink-3); }
/* 플레이 스타일 고르기 */
.style-pick .head { display: flex; justify-content: space-between; align-items: center; }
.style-pick .head b { font-size: 17px; }
.style-pick .style-guide { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--grass-2); }
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.style-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; text-align: center; margin: 0; }
.style-card .style-name { font-weight: 800; font-size: 14px; }
.style-card .style-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.style-card.on { border-color: var(--grass); box-shadow: 0 0 0 2px var(--grass) inset; }
.radar .rd-scale { fill: var(--ink-3); font-size: 9px; }

/* 난이도별 업적 */
.ach-filter { margin-bottom: 10px; }
.ach-diffs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ach-diff { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ach-diff b { color: var(--ink); }
.ach-badges { display: flex; gap: 4px; margin-top: 4px; }
.ach-badges em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-3); }
.ach-badges em.on.d-easy { background: var(--grass-soft); color: var(--grass); border-color: var(--grass); }
.ach-badges em.on.d-normal { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }
.ach-badges em.on.d-real { background: var(--clay-soft); color: var(--clay); border-color: var(--clay); }
.ach-badges em.on.d-unknown { background: var(--surface-2); color: var(--ink-2); }

.field-error { color: var(--clay); font-size: 13px; margin-top: 4px; }
.input[aria-invalid="true"] { border-color: var(--clay); }
.setup-summary, .choice-summary { margin: 8px 0; color: var(--ink-2); font-size: 14px; }
.table-scroll-hint { display: none; }
@media (max-width: 639px) { .table-scroll-hint { display: block; } }
@media (prefers-reduced-motion: reduce) { .journey-rot figure:not(:first-child) { display: none; } .journey-rot figure:first-child { opacity: 1; } }

.guide-topic { border-bottom: 1px solid var(--line); padding: 8px 0; }
.guide-topic summary { cursor: pointer; font-weight: 700; }
.guide-topic p { margin: 8px 0 0; }

.season-prep > .sub { margin-bottom: 8px; }
.season-prep > .dock { position: static; }
.season-prep > .dock::before { display: none; }
.prep-task { border-top: 1px solid var(--line); }
.prep-task > summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.prep-task > summary .chip { float: right; margin-left: 8px; }
.prep-task > summary::after { content: ""; display: block; clear: both; } /* 칩이 길어 줄이 넘어가도 펼친 내용과 겹치지 않게 */
.prep-task > .card { margin: 0; }
.offer-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.offer-term { display: flex; flex-direction: column; padding: 6px 8px; font-size: 13px; overflow-wrap: break-word; }
.offer-term .won { display: inline-block; white-space: nowrap; font-weight: 600; font-size: 12px; }
.offer-term.changed { background: var(--grass-soft); border: 0; border-radius: 0; } /* 선 상자 없이 바탕 면으로 구분 */
.offer-term.changed strong { color: var(--gold, #b8860b); }
.offer-term small { color: var(--ink-2); }

/* 작은 그림의 가장자리와 배경 대비를 유지한다. */
.logo-small, .art.mini, .art.shop-icon { background-color: #f6f1e8; border-radius: 5px; box-shadow: inset 0 0 0 1px #17251d26; }
img.logo-small { padding: 1px; }
.scene { object-position: 50% var(--scene-focus, 50%); }
.scene-feature { max-width: 620px; margin-inline: auto; }
.season-result-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.season-result-intro .screen-desc { margin-bottom: 0; }
.result-portrait { flex: none; display: grid; place-items: end center; width: 76px; min-height: 100px; background: var(--surface-2); border-radius: 12px; }
.result-portrait :is(.body-art.full, .spr) { margin: 0; background-color: transparent; box-shadow: none; }
@media (max-width: 639px) {
  .scene-compact { aspect-ratio: 2 / 1; }
  .view-ceremony > .scene-feature { aspect-ratio: 2 / 1; }
}

.pitch-action { object-fit: contain; border-radius: 10px; }
/* 투수 기본 그림: 칸을 채우고, 던지는 손이 그림과 다르면 좌우를 뒤집는다 (위치·손은 js 의 SCENE_ART) */
.pitch-default { object-fit: cover; }
.pitch-right, .pitch-left { transform: scaleX(-1); }
.debut-scene { border-inline-start: 4px solid var(--grass); }
.debut-scene-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* 그림 파일의 비율이 바뀌어도 카드 모양이 흔들리지 않게 3:2 로 맞춘다 */
.debut-art { display: block; width: 100%; max-width: 620px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 10px; margin-inline: auto; border-radius: 8px; }
.debut-scene .sub { margin-top: 4px; }
.league-total-inline { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* 좌타에게 보여 주는 훈련 그림, 낱장으로 바뀐 작은 장면 */
.scene-flip { transform: scaleX(-1); }
.season-stage .small-scene { margin: 0 auto; }
/* 전설 업적 달성 창 */
/* 글자를 키우면 dvh 도 함께 커져 창이 화면 밖으로 나가므로, 화면 높이 안에 묶어 끝까지 스크롤되게 한다 */
.modal:has(.legend-list) { max-height: min(84dvh, 100%); }
.legend-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin: 4px 0 12px; }
.legend-flip { transform: scaleX(-1); }
.legend-fallback { display: block; width: 120px; height: 120px; object-fit: contain; margin: 4px auto 12px; }
.legend-list { margin-bottom: 14px; }
.legend-name { font-size: 17px; font-weight: 800; margin-top: 6px; overflow-wrap: anywhere; }
.card-preview { display: block; width: 100%; object-fit: contain; margin: 6px auto 14px; }
/* 미리보기 창: 190 = 창 위아래 여백 40 + 제목 36 + 버튼 두 개와 간격 114. 그림·버튼이 창 스크롤 없이 들어간다 */
.card-sheet .card-preview { max-height: calc(86dvh - 190px); width: auto; max-width: 100%; }
/* 테마의 큰 버튼(48px)·좁은 화면에서도 버튼이 창 안에 남게: 시트를 창 높이에 맞춘 세로 줄로 두고 그림만 줄어든다 */
.card-sheet { display: flex; flex-direction: column; max-height: calc(86dvh - 48px - env(safe-area-inset-bottom)); }
.card-sheet > .card-preview { flex: 0 1 auto; min-height: 0; align-self: center; }
.card-sheet > h2, .card-sheet > .stack { flex: none; }
.card-sheet .card-hint { margin: 0 0 4px; }
@media (orientation: landscape) and (max-height: 600px) {
  .card-sheet { display: grid; grid-template-columns: auto minmax(160px, 1fr); gap: 16px; align-items: center; }
  /* 그림 칸 + 버튼 칸(160px 이상)이 나란히 들어가게 창을 넓힌다 */
  .modal:has(> .card-sheet) { max-width: min(96vw, 760px); }
  .card-sheet > h2 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  /* 창 바깥 여백까지 생각해 64px 를 남긴다(717×512 처럼 창이 86dvh 보다 낮아지는 경우) */
  .card-sheet, .card-sheet > .card-preview { max-height: calc(86dvh - 64px - env(safe-area-inset-bottom)); }
  .card-sheet > .card-preview { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .card-sheet > .stack { grid-column: 2; grid-row: 2; align-self: start; }
}
@media (max-width: 300px) { .card-sheet .btn { font-size: 14px !important; padding-left: 10px !important; padding-right: 10px !important; } }
.rows > .nat-why { margin: 0 0 8px; text-align: right; }
/* 입대 권유 화면의 국가대표 카드: 두 번째 제목(병역 혜택 대회)을 위 문장과 띄운다 */
.mil-nat > h3:not(:first-child) { margin-top: 18px; }
.mil-nat .v small { white-space: nowrap; }

/* 0028: 해외 스카우트 리포트·새 설명 줄은 길어도 줄바꿈으로 넘긴다(말줄임 없이) */
.abroad-card .abroad-row { flex-wrap: wrap; gap: 2px 8px; }
.abroad-card .abroad-row .v { flex: 1 1 200px; text-align: right; overflow-wrap: anywhere; white-space: normal; }
.abroad-card .abroad-row b.ok { color: var(--grass); }
.pos-why, .coach-offer-line, .opt .s { overflow-wrap: anywhere; }
/* 0030: 투타겸업 — 선 상자 없이 여백·글자·면으로 나눈다 */
.two-way { margin-top: 12px; padding: 10px 12px; border-radius: 0; background: rgba(255, 207, 92, 0.07); }
.two-way .two-way-note { margin: 6px 0 0; overflow-wrap: anywhere; }
.two-way .chips .pick { white-space: normal; }
.ovr.ovr-two b { font-size: 30px; white-space: nowrap; }
.ovr.ovr-two b small { font-size: 0.6em; opacity: 0.7; }
.two-sub { margin: 14px 0 4px; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.rec-side { margin: 0 0 12px; }
.two-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fa-side { margin-top: 14px; color: var(--gold, #ffcf5c); }
.bat-season .sub { overflow-wrap: anywhere; }
/* 0030 한쪽 전념 권유 이유 줄 */
.two-why { margin: 4px 0 12px; }
.two-why li { overflow-wrap: anywhere; }

/* 선수 만들기(2026-11-20): 왼쪽 선수 그림 + 오른쪽 콤보. 선으로 가두지 않고 면의 밝기와 여백으로 나눈다. */
.create-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.create-figure { position: sticky; top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); text-align: center; min-width: 0; }
.cf-stage { width: 100%; display: grid; place-items: end center; }
.cf-stage .body-art.full { width: 100% !important; max-width: 260px; height: auto !important; aspect-ratio: 2 / 3; background: transparent; }
.cf-stage .face-thumb, .cf-stage > svg { max-width: 100%; height: auto; }
.cf-name { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.cf-name .num { font-family: 'Barlow Condensed', var(--font), sans-serif; font-size: 30px; font-weight: 600; color: var(--gold); line-height: 1; }
.cf-meta { font-size: 13px; color: var(--ink-2); }
.cf-school { display: flex; align-items: center; justify-content: center; gap: 6px; }
.create-form { min-width: 0; }
.create-form .screen-title { margin-top: 0; }
.create-form .screen-desc { font-size: 13px; margin-bottom: 12px; }
.cf-sec { margin-bottom: 14px; }
.cf-sec h3 { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.cf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cf { min-width: 0; }
.cf > label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.cf .input { height: 42px; font-size: 14px; }
.cf select.input { padding: 0 8px; cursor: pointer; }
.cf-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.cf-note b { color: var(--ink-2); }
@media (min-width: 640px) {
  .create-split { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); }
  .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf.wide { grid-column: 1 / -1; }
}
.view-create .steps { display: flex; gap: 18px; margin: 0 0 12px; }
.view-create .steps span { flex-direction: row; gap: 6px; font-size: 12px; }
.view-create .steps b { width: 20px; height: 20px; font-size: 11px; }
.create-form .screen-title small { display: block; margin-top: 4px; font-family: var(--font), sans-serif; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.cf-sec { margin-bottom: 10px; }
.cf-sec h3 { margin-bottom: 4px; }
.cf-grid { gap: 6px 10px; }
.cf > label { font-size: 11.5px; margin-bottom: 2px; }
.cf .input { height: 38px; }
.cf-note { margin-top: 4px; }
@media (max-width: 639px) {
  .create-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 10px; }
  .create-figure { padding: 10px 4px; }
  .cf-name { font-size: 14px; gap: 4px; }
  .cf-name .num { font-size: 24px; }
  .cf-meta { font-size: 11.5px; }
  .cf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 6px; }
  .cf.wide { grid-column: 1 / -1; }
  .cf .input { font-size: 13px; padding: 0 6px; }
  .cf select.input { padding: 0 2px; }
  .create-form .screen-title { font-size: 19px !important; }
}
/* 휴대폰 선수 만들기: 설명 묶음 대신 그림 아래 한 칸 안내(cf-tip), 칸 높이를 줄여 스크롤 없이 */
.cf-tip { display: none; }
@media (max-width: 639px) {
  .wide-only { display: none; }
  .cf-tip { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
  .cf-tip b { display: block; color: var(--gold); }
  .view-create .steps { margin-bottom: 8px; }
  .create-form .screen-title { margin-bottom: 2px; }
  .cf-sec { margin-bottom: 6px; }
  .cf-sec h3 { margin-bottom: 2px; font-size: 12.5px; }
  .cf > label { font-size: 11px; margin-bottom: 1px; }
  .cf .input { height: 34px; }
  .cf-grid { gap: 4px 6px; }
}
@media (max-width: 639px) and (max-height: 780px) { .create-form .screen-title small { display: none; } }
.app.view-create { padding-bottom: 16px; }
.view-create .dock::before { bottom: -12px; }
/* 콤보 상자의 펼친 목록: 어두운 화면에 맞춰 어두운 바탕 + 밝은 글자(기본은 흰 바탕이라 읽기 힘듦) */
select { color-scheme: dark; }
select option, select optgroup { background-color: #141a3c; color: #f4f5ff; }
select option:checked { background-color: #3a3166; color: #ffcf5c; }
select option:disabled { color: #6b7199; }
/* 그림 아래 지명 확률(늘 보임) */
.cf-outlook { width: 100%; margin-top: 10px; padding: 10px 10px 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); text-align: left; }
.cf-ol-title { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.cf-ol-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.cf-ol-row b { font-family: 'Barlow Condensed', var(--font), sans-serif; font-size: 17px; font-weight: 600; color: #fff; }
.cf-ol-sub { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); word-break: keep-all; }
@media (max-width: 639px) {
  .cf-outlook { padding: 8px 6px 6px; }
  .cf-ol-row { font-size: 11.5px; }
  .cf-ol-row b { font-size: 15px; }
}
/* 2단계: 스타일 카드(n각형) + 집중 육성 칩 */
.create-form .style-grid { margin-bottom: 12px; }
.create-form .style-pick h3 small, .create-form .focus-pick h3 small { font-weight: 500; }
.create-form .style-pick .radar-wrap { max-width: 300px; margin: 6px auto 0; }
@media (min-width: 640px) { .create-form .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .create-form .style-card { padding: 6px 4px; }
  .create-form .style-card .style-desc { display: none; }
  .create-form .style-card .radar { width: 64px; height: auto; }
  .create-form .focus-pick .pick { padding: 6px 9px; font-size: 12px; }
}
/* 2단계: 고른 스타일 상세는 왼쪽 그림 아래 */
.cf-style { width: 100%; margin-top: 10px; padding: 10px 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); text-align: left; }
.cf-style h3 { font-size: 14px; color: var(--gold); }
.cf-style .style-guide { font-size: 12.5px; }
.cf-style .radar-wrap { margin: 4px auto 0; }
@media (max-width: 639px) {
  .cf-style { padding: 8px 6px; }
  .cf-style .radar-wrap { display: none; }
  .cf-style .style-guide { font-size: 11.5px; }
}
@media (max-width: 639px) {
  .cf-ol-sub { display: none; }
  .cf-ol-title { font-size: 11px; }
  .cf-style .radar-wrap { display: none !important; }
  .create-form .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
  .create-form .style-card { padding: 5px 2px; gap: 2px; }
  .create-form .style-card .radar { width: 52px; }
  .create-form .style-card .style-name { font-size: 11.5px; line-height: 1.25; word-break: keep-all; }
}
.create-form .cf-sec { margin-bottom: 6px; }
.create-form .cf-note { line-height: 1.4; }
/* 0033 재작업: 이름표 아래 줄은 조각마다 줄바꿈 없이(폰은 한 줄씩), 낮은 화면에서는 그림을 줄여 스크롤 없이 */
.cf-pos span { white-space: nowrap; }
.cf-pos span + span::before { content: ' · '; }
@media (max-width: 639px) {
  .cf-pos span { display: block; }
  .cf-pos span + span::before { content: none; }
}
@media (min-width: 640px) {
  /* 그림 높이 = 화면 높이에서 위 막대·이름표·지명 확률·아래 버튼 자리를 뺀 만큼(2:3 비율이라 너비는 그 2/3) */
  .create-figure.s1 .cf-stage .body-art.full { max-width: clamp(150px, calc((100vh - 510px) * 0.667), 260px); }
  /* 2단계는 그림 아래에 큰 n각형이 붙어서 그림을 더 작게 */
  .create-figure.s2 .cf-stage .body-art.full { max-width: clamp(110px, calc((100vh - 640px) * 0.667), 200px); }
  .create-figure .cf-radar { max-width: clamp(180px, calc(100vh - 580px), 240px) !important; margin: 4px auto 0; }
  .create-figure .cf-radar svg { width: 100%; height: auto; }
}
/* 넓고 낮은 화면(노트북 1280×800 등): 제목 보조 줄을 숨기고 칸 높이를 조금 줄인다 */
@media (min-width: 640px) and (max-height: 860px) {
  .create-form .screen-title small { display: none; }
  .view-create .cf .input { height: 36px; }
}
/* 후보가 9개(투수)면 카드가 3줄이라, 낮은 화면에서는 카드 설명을 숨긴다(고른 스타일의 설명은 왼쪽에 바로 나온다) */
/* 후보가 9개(투수)면: 넓은 화면은 5칸(2줄), 그 밖의 낮은 화면은 n각형을 줄이고 설명을 2줄로(터치 기기도 고르기 전에 읽게) */
@media (min-width: 1024px) { .create-form .style-grid.many { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 960px) {
  .create-form .style-grid.many .style-card .radar { width: 60px; height: auto; }
  .create-form .style-grid.many .style-card .style-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; }
}
/* 선수 만들기 입력 오류: 칸 이름 줄 오른쪽에 붙여 칸 높이가 늘지 않게(스크롤 방지) */
.cf > label .field-error { float: right; margin: 0 0 0 6px; font-size: 11px; font-weight: 700; line-height: inherit; white-space: nowrap; }
@media (max-width: 639px) { .cf > label .field-error { font-size: 11px; } }
@media (min-width: 640px) and (max-height: 800px) {
  .view-create .steps { margin-bottom: 8px; }
  .view-create .cf .input { height: 34px; }
  .view-create .cf-grid { gap: 4px 10px; }
  .view-create .cf-sec h3 { margin-bottom: 2px; }
  .view-create .style-grid { gap: 6px; }
  .view-create .style-card { padding: 6px 6px; }
}
/* 0033 시도 3: 이름표 조각 사이에서만 줄바꿈(가운뎃점은 다음 조각 앞에) */
@media (min-width: 640px) { .cf-pos span + span::before { content: '· '; } }
@media (max-width: 639px) {
  .create-figure .cf-radar { display: none !important; }
  /* 고교 칸을 넓게(긴 학교 이름이 잘리지 않게) */
  .cf-grid.school { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
  .cf-grid.school #f-school { font-size: 12px; }
}
/* PC(1024px 이상) 2단계: 그림 오른쪽에 이름표·스타일 설명, 아래에 큰 n각형 — 그림이 1단계보다 크게 줄지 않는다 */
@media (min-width: 1024px) {
  .create-figure.s2 { display: grid; grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr); column-gap: 14px; row-gap: 4px; align-items: start; align-content: start; text-align: left; }
  .create-figure.s2 .cf-stage { grid-column: 1; grid-row: 1 / span 4; }
  .create-figure.s2 > :not(.cf-stage):not(.cf-radar) { grid-column: 2; }
  .create-figure.s2 .cf-name, .create-figure.s2 .cf-school { justify-content: flex-start; }
  .create-figure.s2 .cf-style { margin-top: 6px; padding: 8px 10px; }
  .create-figure.s2 .cf-stage .body-art.full { max-width: clamp(130px, calc((100vh - 500px) * 0.667), 200px); }
  .create-figure.s2 .cf-radar { grid-column: 1 / -1; max-width: clamp(200px, calc(100vh - 540px), 250px) !important; }
}
/* 그림 아래 학교 이름: 한 줄로(두 줄이 되면 폰 높이가 넘친다). 폰은 엠블럼을 빼고 글자를 줄이며, 그래도 길면 말줄임(전체 이름은 바로 옆 고교 콤보에) */
.cf-school span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) {
  .cf-school > :not(span:last-child) { display: none; }
  .cf-school span { font-size: 10.5px; letter-spacing: -0.2px; }
}
/* 콤보의 기본 화살표가 자리를 많이 차지해 긴 항목이 잘려서, 작은 화살표를 직접 그린다(PC 는 왼쪽 8px·오른쪽 20px, 폰은 3px·13px) */
.cf select.input { padding: 0 20px 0 8px; }
@media (max-width: 639px) { .cf select.input { padding: 0 13px 0 3px; } }
@media all {
  .cf select.input { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23cdd2ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 6px center !important; background-size: 9px 6px !important; }
  @media (max-width: 639px) { .cf select.input { background-position: right 4px center !important; } }
}
/* PC 고교 칸은 두 칸 너비(3칸 격자에 지역·고교 둘뿐이라 빈자리를 고교 이름에) */
@media (min-width: 640px) { .cf-grid.school .cf:last-child { grid-column: span 2; } }
/* 0033 시도 4 */
/* 난이도 설명: 낮은 화면(800 이하)은 짧은 설명(좌투좌타 + 투타겸업 + 쉬움에서 설명이 7줄이 되어 넘쳤다) */
.cf-note .d-short { display: none; }
@media (min-width: 640px) and (max-height: 800px) { .cf-note .d-full { display: none; } .cf-note .d-short { display: inline; } }
/* 640~1023px 투수 후보 9개: 3칸 3줄(4칸이면 9번째가 혼자 남는다) */
@media (min-width: 640px) and (max-width: 1023px) { .create-form .style-grid.many { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 콤보·입력칸 키보드 포커스: 선 대신 바탕을 금빛으로 */
.cf .input:focus-visible { background-color: rgba(255, 207, 92, 0.2) !important; }
/* 랜딩 여정 틀(2026-11-21): 조명 받은 무대 + 「3 / 5」·문장 + 다섯 단계 줄. 선으로 가두지 않고 빛과 여백으로 나눈다 */
.journey-rot { max-width: 300px; padding-bottom: 0; aspect-ratio: auto; }
.jr-stage { position: relative; width: 100%; aspect-ratio: 1; }
/* 바닥 조명(발밑 타원)과 위에서 떨어지는 옅은 빛 */
.jr-stage::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 207, 92, 0.28), rgba(255, 207, 92, 0.08) 60%, transparent); }
.jr-stage::after { content: ''; position: absolute; inset: -6% 14% 10%; background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255, 236, 190, 0.12), transparent 70%); pointer-events: none; }
.journey-rot .jr-stage > figure { position: absolute; inset: 0; z-index: 1; display: block; opacity: 0; transform: translateY(6px) scale(0.98); transition: opacity 0.5s ease, transform 0.6s ease; }
.journey-rot .jr-stage > figure.on { opacity: 1; transform: none; }
.jr-cap { margin: 2px 0 0; text-align: center; }
.jr-cap small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.jr-cap small b { color: var(--gold); }
.jr-cap span { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; color: #fff; word-break: keep-all; }
.jr-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.jr-steps button { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-align: center; white-space: nowrap; }
.jr-steps button:hover, .jr-steps button:focus-visible { color: var(--ink); }
.jr-steps button.on { color: #fff; font-weight: 800; }
.jr-steps i { position: relative; display: block; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.jr-steps i::after { content: ''; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left center; background: var(--gold); }
.jr-steps .done i::after { transform: scaleX(1); opacity: 0.5; }
.jr-steps .on i::after { animation: jr-fill var(--jr-ms, 3200ms) linear forwards; }
.journey-rot:hover .jr-steps .on i::after, .journey-rot:focus-within .jr-steps .on i::after { animation-play-state: paused; }
@keyframes jr-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .jr-steps .on i::after { animation: none; transform: scaleX(1); }
  .journey-rot .jr-stage > figure { transition: none; transform: none; }
}
@media (max-width: 400px) { .jr-steps button { font-size: 10.5px; letter-spacing: -0.02em; } }
@media (min-width: 1024px) { .journey-rot { max-width: 360px; } .jr-cap span { font-size: 19px; } }
/* 고교 고르기(0034): 1단계의 고교 칸은 지도 창을 여는 버튼, 창은 왼쪽 도트 지도 + 오른쪽 지역 버튼·학교 목록 */
.cf .cf-pick { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 0 22px 0 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23cdd2ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 6px center !important; background-size: 9px 6px !important; }
.cf-pick .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cf-pick small { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 11.5px; }
.cf-pick .logo, .cf-pick .crop, .cf-pick svg { flex: none; }
@media (max-width: 639px) { .cf .cf-pick { padding: 0 15px 0 4px; gap: 6px; background-position: right 4px center !important; } .cf-pick small { font-size: 10.5px; } }
.modal:has(.smap) { max-width: 720px; }
.smap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.smap-map { position: sticky; top: 0; }
.kmap { display: block; width: 216px; height: auto; }
/* 지역마다 다른 색(팔도 지도처럼), 고른 지역은 금색, 나머지는 흐리게. 「지역 전체」면 모두 선명 */
.kmap .km-r { cursor: pointer; opacity: 0.55; transition: opacity 0.15s ease; }
.kmap .km-r:hover { opacity: 0.75; }
.kmap .km-r.on { opacity: 1; }
.kmap [data-region="서울"] rect { fill: #f1e3b3; }
.kmap [data-region="경기"] rect { fill: #6f86c9; }
.kmap [data-region="강원"] rect { fill: #4f9f88; }
.kmap [data-region="충청"] rect { fill: #d29bc4; }
.kmap [data-region="전라"] rect { fill: #74ad62; }
.kmap [data-region="경상"] rect { fill: #cf8664; }
.kmap [data-region="제주"] rect { fill: #d3a85a; }
.kmap .km-r.pick rect { fill: #ffcf5c; }
.kmap .km-l { font-size: 10px; font-weight: 800; fill: #f4f5ff; pointer-events: none; paint-order: stroke; stroke: #0c1230; stroke-width: 3px; stroke-linejoin: round; opacity: 0.8; }
.kmap .km-l.on { opacity: 1; }
.kmap .km-l.pick { fill: #241300; stroke: #ffcf5c; }
.kmap .km-lead { fill: none; stroke: #cdd2ee; stroke-width: 0.9; opacity: 0.7; }
.smap-regions { gap: 5px; margin: 0 0 10px; }
.smap-regions .pick { min-height: 36px; padding: 5px 9px; font-size: 12.5px; }
.smap-regions .pick small { opacity: 0.7; font-size: 11px; }
.smap-title { font-size: 13px; color: var(--gold); margin: 0 0 4px; }
.smap-title small { color: var(--ink-3); font-weight: 600; }
.smap-list { list-style: none; margin: 0; padding: 0; max-height: min(52dvh, 420px); overflow: auto; }
.smap-school { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 6px; border-radius: 8px; text-align: left; }
.smap-school:hover, .smap-school:focus-visible { background: rgba(255, 255, 255, 0.07); }
.smap-school.on { background: rgba(255, 207, 92, 0.18); }
.smap-school .nm { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 14px; }
.smap-school small { flex: none; font-size: 11.5px; color: var(--ink-3); }
.smap-school.on small { color: var(--gold); }
@media (max-width: 639px) {
  .smap { grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
  .kmap { width: 116px; }
  .smap-regions .pick { padding: 4px 7px; font-size: 11.5px; }
  .smap-list { max-height: 46dvh; }
  .smap-school { padding: 6px 4px; gap: 6px; }
  .smap-school .nm { font-size: 13px; }
  .smap-school small { font-size: 10.5px; }
}
/* 0033 시도 5: 머리색 안내는 설명 줄(높이 768 PC 에서 넘침) 대신 「머리색」 칸 이름 오른쪽에 짧게. 폰은 안내 칸에 나온다 */
.cf > label .lbl-note { float: right; margin-left: 6px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
/* 그림 아래 학교 이름 줄이 칸 폭을 넘지 않게(가운데 정렬 flex 라 말줄임이 걸리지 않던 것) */
.cf-school { max-width: 100%; min-width: 0; }
/* 0034 시도 2: 지도 창 높이를 고정해 지역을 바꿔도 지도·버튼이 움직이지 않게, 목록만 창 안에서 스크롤 */
.modal.still { animation: none; }
.modal:has(.smap) { display: flex; flex-direction: column; height: min(86dvh, 600px); overflow: hidden; }
.smap { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.smap-map { align-self: start; }
.smap-side { display: flex; flex-direction: column; min-height: 0; }
.smap-side .smap-list { flex: 1 1 auto; min-height: 0; max-height: none; }
/* 학교 이름과 「지역 · 등급」: PC 는 한 줄 양 끝, 폰은 이름 아래 작은 줄(긴 이름이 겹치지 않게) */
.smap-school .tx { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.smap-school .tx .nm { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) { .smap-school .tx { flex-direction: column; align-items: flex-start; gap: 0; } .modal:has(.smap) { height: 86dvh; } }
/* 640~760px 여정 단계 줄: 칸이 좁아 「월드시리즈」가 옆 칸과 붙어 보여 글자를 줄인다 */
/* 단계 줄이 300px 칸에 들어가는 폭(1024px 미만)은 「월드시리즈」가 칸 안에 들어가게 글자를 줄인다 */
@media (max-width: 1023px) { .jr-steps { gap: 4px; } .jr-steps button { font-size: 10.5px; letter-spacing: -0.03em; } }
/* 0034 시도 5(사용자 요청): 빈자리 없애기
 * PC: 창 높이를 내용만큼(최대 640). 지역을 바꿔 높이가 달라져도 지도가 움직이지 않게 창을 위쪽에 붙인다. 지도·지역 버튼 높이가 최소 높이라 짧은 목록도 지도 옆을 채운다.
 * 폰: 지도(왼쪽 위)와 지역 버튼(오른쪽 위) 아래로 목록을 창 전체 폭으로 펼친다. 지도 아래 빈자리가 없다. */
@media (min-width: 640px) {
  .modal-back:has(.smap) { place-items: start center; padding-top: max(24px, 7dvh); }
  .modal:has(.smap) { height: auto; max-height: min(86dvh, 640px); }
}
@media (max-width: 639px) {
  .smap { grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 8px 10px; }
  .smap-map { grid-column: 1; grid-row: 1; }
  .smap-side { display: contents; }
  .smap-regions { grid-column: 2; grid-row: 1; align-self: start; margin: 0; }
  .smap-title { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .smap-side .smap-list, .smap-list { grid-column: 1 / -1; grid-row: 3; min-height: 0; max-height: none; overflow: auto; }
  .smap-school .tx { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
}
@media (max-width: 639px) {
  /* 폰도 위쪽에 붙인 창, 높이는 내용만큼(짧은 목록이면 창이 짧아진다). 지도는 늘 같은 자리 */
  .modal-back:has(.smap) { place-items: start center; padding: 10px 8px 0; }
  .modal:has(.smap) { height: auto; max-height: calc(100dvh - 20px); border-radius: 14px !important; }
}
/* ── 0035 고교 팀 단계(2026-11-21 사용자 요청): 창 없이 지도와 학교 목록을 화면에 바로. 화면 높이에 맞춰 목록만 스크롤 ── */
.view-create { --cs-chrome: 186px; }
.create-split.school-step { height: calc(100dvh - var(--cs-chrome)); align-items: stretch; }
.school-step .create-figure { align-self: start; }
.school-step .create-form { display: flex; flex-direction: column; min-height: 0; }
.school-step .screen-title { flex: none; }
.school-step .smap { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 22px; }
.school-step .smap-map { align-self: start; }
.school-step .smap-side { display: flex; flex-direction: column; min-height: 0; }
.school-step .smap-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
.school-step .smap-tier { flex: none; margin-top: 8px; }
.school-step .kmap { width: clamp(220px, calc((100dvh - 300px) * 0.62), 300px); }
@media (max-width: 639px) {
  .view-create { --cs-chrome: 172px; }
  /* 폰: 그림 칸은 접고(1단계에서 봤다) 지도(왼쪽 위)·지역 버튼(오른쪽 위) 아래로 목록을 전체 폭으로 */
  .create-split.school-step { grid-template-columns: minmax(0, 1fr); }
  .school-step .create-figure { display: none; }
  .school-step .kmap { width: 130px; }
  .school-step .smap { grid-template-columns: 130px minmax(0, 1fr); gap: 8px 10px; }
  .school-step .screen-title small { display: none; }
  .school-step .smap-tier { font-size: 11.5px; margin-top: 4px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .school-step .kmap { width: 200px; } .school-step .smap { gap: 14px; } }
/* 지도 새 모양: 칸 대신 부드러운 곡선 지역, 지역 사이 가는 바다색 경계, 고른 지역은 금빛으로 떠오른다 */
.kmap { overflow: visible; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45)); }
.kmap .km-r { cursor: pointer; stroke: #0b1030; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: 0.6; transition: opacity 0.15s ease, fill 0.15s ease; }
.kmap .km-r.on { opacity: 1; }
.kmap .km-r:hover { opacity: 0.92; }
.kmap .km-r[data-region="서울"] { fill: #f1e3b3; }
.kmap .km-r[data-region="경기"] { fill: #6f8bd6; }
.kmap .km-r[data-region="강원"] { fill: #4fae93; }
.kmap .km-r[data-region="충청"] { fill: #d29bc4; }
.kmap .km-r[data-region="전라"] { fill: #7dbb68; }
.kmap .km-r[data-region="경상"] { fill: #de8d68; }
.kmap .km-r[data-region="제주"] { fill: #e0b45e; }
.kmap .km-r.pick { fill: #ffcf5c; stroke: #fff3c4; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255, 207, 92, 0.75)); }
.kmap .km-tag { pointer-events: none; }
.kmap .km-tag text { font-size: 2.1px; font-weight: 800; fill: #f4f5ff; paint-order: stroke; stroke: rgba(11, 16, 48, 0.85); stroke-width: 0.55px; stroke-linejoin: round; opacity: 0.75; }
.kmap .km-tag text.n { font-size: 1.6px; font-weight: 600; fill: #dfe3ff; }
.kmap .km-tag.on text { opacity: 1; }
.kmap .km-tag.pick text { fill: #241300; stroke: rgba(255, 243, 196, 0.9); }
.kmap .km-lead { fill: none; stroke: #cdd2ee; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.7; }
@media (max-width: 639px) { .kmap .km-tag text { font-size: 2.9px; stroke-width: 0.7px; } .kmap .km-tag text.n { display: none; } }
/* 0035 시도 2: 폰 2단계는 지도(왼쪽 위)·지역 버튼(오른쪽 위) 아래로 목록 전체 폭(0034 의 폰 규칙을 2단계 칸 규칙이 덮던 것) */
@media (max-width: 639px) {
  .school-step .smap { grid-template-columns: 130px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .school-step .smap-side { display: contents; }
  .school-step .smap-regions { grid-column: 2; grid-row: 1; align-self: start; margin: 0; }
  .school-step .smap-title { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .school-step .smap-list { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 639px) { .school-step .smap-tier { display: none; } } /* 폰은 목록마다 등급이 있고, 아래 버튼 그늘에 묻혀서 뺀다 */
/* 0035 시도 3 */
/* PC: 아래 등급 줄이 버튼 위 그늘에 덮이지 않게 칸 높이를 조금 줄인다 */
.view-create { --cs-chrome: 186px; }
/* 900px 미만은 그림 칸을 접어 목록을 넓게(640px 에서 목록이 202px 로 좁았다) */
@media (min-width: 640px) and (max-width: 899px) {
  .create-split.school-step { grid-template-columns: minmax(0, 1fr); }
  .school-step .create-figure { display: none; }
}
@media (max-width: 639px) {
  .view-create { --cs-chrome: 172px; }
  /* 폰: 지역 버튼 아래 빈자리에 목록 제목을 올리고, 지도는 두 줄에 걸친다 */
  .school-step .smap-map { grid-column: 1; grid-row: 1 / span 2; }
  .school-step .smap-title { grid-column: 2; grid-row: 2; align-self: end; }
  .school-step .smap-list { grid-row: 3; }
  .kmap .km-tag text { stroke-width: 0.9px; }
}
/* 아래 버튼 위 그늘(18px)이 등급 줄을 덮지 않게, 2단계 오른쪽 칸 아래에 그늘만큼 여백 */
.school-step .create-form { padding-bottom: 20px; }
@media (max-width: 639px) { .school-step .create-form { padding-bottom: 10px; } }
/* 0035 시도 4 */
/* 그림 칸을 접는 폭(900px 미만·폰)에서는 지명 확률을 제목 아래 한 줄로 */
.smap-odds { display: none; }
@media (max-width: 899px) {
  .smap-odds { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; font-size: 12px; color: var(--ink-2); }
  .smap-odds .t { color: var(--gold); font-weight: 700; }
  .smap-odds .num { color: #fff; font-family: 'Barlow Condensed', var(--font), sans-serif; font-size: 15px; font-weight: 600; }
}
/* 640~899px 도 폰처럼 지도(왼쪽)·지역 버튼(오른쪽) 아래로 목록 전체 폭(지도 아래 빈자리 없애기) */
@media (min-width: 640px) and (max-width: 899px) {
  .school-step .smap { grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 8px 16px; }
  .school-step .smap-side { display: contents; }
  .school-step .smap-map { grid-column: 1; grid-row: 1 / span 2; }
  .school-step .smap-regions { grid-column: 2; grid-row: 1; align-self: start; margin: 0; }
  .school-step .smap-title { grid-column: 2; grid-row: 2; align-self: end; margin: 0; }
  .school-step .smap-list { grid-column: 1 / -1; grid-row: 3; }
}
/* 폰: 목록 끝이 버튼 그늘(18px)에 들어가지 않게 */
@media (max-width: 639px) { .school-step .create-form { padding-bottom: 20px; } .smap-odds { margin-bottom: 6px; } }
/* 지도 옆 지역 버튼을 세로 범례로(900px 미만·폰): 지도 높이만큼 채워 빈자리가 없고, 목록 제목·목록은 그 아래 전체 폭 */
@media (max-width: 899px) {
  .school-step .smap-regions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; align-self: stretch; gap: 4px; }
  .school-step .smap-regions .pick { justify-content: space-between; min-height: 0; padding: 6px 10px; }
  .school-step .smap-map { grid-row: 1; }
  .school-step .smap-title { grid-column: 1 / -1; grid-row: 2; align-self: start; }
}
@media (min-width: 640px) and (max-width: 899px) { .school-step .smap-regions .pick { padding: 8px 12px; font-size: 13px; } }
@media (max-width: 639px) { .school-step .smap-regions .pick { padding: 3px 8px; font-size: 11.5px; } }
/* 0035 시도 5(사용자 요청 1·2): 900px 미만·폰은 지역 버튼을 2열(누르기 좋은 높이), 지명 확률은 지도 옆 버튼 아래. 목록 자리를 넓힌다 */
@media (max-width: 899px) {
  .school-step .smap { grid-template-rows: auto auto auto minmax(0, 1fr); }
  .school-step .smap-map { grid-column: 1; grid-row: 1 / span 3; }
  .school-step .smap-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; grid-column: 2; grid-row: 1; align-self: start; }
  .school-step .smap-regions .pick { min-height: 36px; padding: 4px 10px; }
  .school-step .smap-odds { grid-column: 2; grid-row: 2; margin: 2px 0 0; }
  .school-step .smap-title { grid-column: 2; grid-row: 3; align-self: end; }
  .school-step .smap-list { grid-column: 1 / -1; grid-row: 4; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .school-step .kmap { width: 180px; }
  .school-step .smap { grid-template-columns: 180px minmax(0, 1fr); }
  .school-step .smap-regions { max-width: 380px; }
  .school-step .smap-regions .pick { min-height: 38px; font-size: 13px; }
}
@media (max-width: 639px) {
  .school-step .smap-regions .pick { min-height: 34px; padding: 3px 7px; font-size: 11.5px; }
  .school-step .smap-odds { font-size: 11px; gap: 2px 8px; }
  .school-step .smap-odds .num { font-size: 13px; }
}
/* 0035 시도 6(사용자 요청 1·2): 지명 확률은 제목 한 줄 + 세 칸 한 줄(폰에서 「특급」만 꺾이지 않게), 지도 크기를 오른쪽 칸 높이에 맞춰 빈자리 없애기 */
@media (max-width: 899px) {
  .school-step .smap-odds { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 10px; row-gap: 0; }
  .school-step .smap-odds .t { grid-column: 1 / -1; }
  .school-step .smap-odds span { white-space: nowrap; }
  .school-step .smap-title { align-self: start; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .school-step .kmap { width: 164px; }
  .school-step .smap { grid-template-columns: 164px minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .school-step .smap-odds { column-gap: 7px; }
  .school-step .kmap { width: 154px; }
  .school-step .smap { grid-template-columns: 154px minmax(0, 1fr); }
}
@media (max-width: 899px) { .school-step .smap-regions .pick { white-space: nowrap; } }
/* 360px 폰: 「>99%」가 겹치면 확률 세 칸이 오른쪽 칸(164px)을 넘어, 간격과 글자를 줄인다 */
@media (max-width: 374px) {
  .school-step .smap-odds { column-gap: 3px; font-size: 10.5px; letter-spacing: -0.02em; }
  .school-step .smap-odds .num { font-size: 12px; }
}
/* 0035 시도 8(사용자 요청: 남은 낮음 모두): 640~899px 는 왼쪽 지도(화면 높이에 맞춘 크기) + 그 아래 지명 확률, 오른쪽 지역 버튼·목록 제목·목록.
 * 목록이 지도 옆 높이를 모두 써서 길어지고, 지도와 버튼 묶음 크기 차이·확률 줄 옆 빈자리가 없어진다 */
@media (min-width: 640px) and (max-width: 899px) {
  .school-step .smap { --mw: clamp(190px, calc((100dvh - 360px) * 0.6), 290px); grid-template-columns: var(--mw) minmax(0, 1fr); grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas: "map reg" "map ttl" "map list" "odds list" ". list"; gap: 6px 18px; }
  .school-step .kmap { width: var(--mw); }
  .school-step .smap-map { grid-area: map; }
  .school-step .smap-regions { grid-area: reg; max-width: none; }
  .school-step .smap-regions .pick { justify-content: flex-start; gap: 6px; }
  .school-step .smap-title { grid-area: ttl; margin: 4px 0 0; }
  .school-step .smap-list { grid-area: list; }
  .school-step .smap-odds { grid-area: odds; margin: 6px 0 0; }
}
/* 640~1023px·높이 760 이하 3단계: 그림 칸(그림 + 스타일 설명 + 큰 n각형)이 오른쪽보다 길어 스크롤이 생겨, 그림과 n각형을 줄인다(899×700 에서 27~30px 넘침) */
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 760px) {
  .create-figure.s2 .cf-stage .body-art.full { max-width: 90px; }
  .create-figure .cf-radar { max-width: 150px !important; }
}
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 760px) {
  .create-form .style-grid.many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .create-form .style-card { padding: 6px 4px; gap: 2px; }
  .create-form .style-card .radar { width: 52px; height: auto; }
  .create-form .style-card .style-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10.5px; }
}
