/* 야구선수 키우기 화면. 색은 아래 토큰만 쓴다(밝게·어둡게). */
:root { --bg: #f5f4ef; --card: #ffffff; --text: #1b1b19; --sub: #66655f; --line: #dedcd3; --acc: #1c56ad; --acc-t: #ffffff; --good: #1b7340; --bad: #b0352a; --warn: #8a5f00; --track: #e6e4db; --scrim: rgba(20, 20, 18, .45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #131415; --card: #1b1d1f; --text: #ecebe6; --sub: #a5a49d; --line: #303336; --acc: #8db6ff; --acc-t: #0f141b; --good: #6fd09a; --bad: #ff8d7d; --warn: #e2b458; --track: #2a2d30; --scrim: rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] { --bg: #131415; --card: #1b1d1f; --text: #ecebe6; --sub: #a5a49d; --line: #303336; --acc: #8db6ff; --acc-t: #0f141b; --good: #6fd09a; --bad: #ff8d7d; --warn: #e2b458; --track: #2a2d30; --scrim: rgba(0, 0, 0, .6); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { max-width: 28rem; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: 84px; }
.pad { padding: 0 16px; }
.top { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top .name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; border: 0; background: none; text-align: left; padding: 0; min-height: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--sub); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 0 8px; border-radius: 8px; white-space: nowrap; }
.ib.on { color: var(--acc); }
.px { display: block; width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; background: var(--track); }
.scene { position: relative; border-bottom: 1px solid var(--line); }
.scene .stop { position: absolute; right: 6px; bottom: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.av { width: 56px; height: 72px; image-rendering: pixelated; flex: none; }
.h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.h2 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.h2 small { font-size: 13px; font-weight: 500; color: var(--sub); }
.sub { color: var(--sub); font-size: 13.5px; }
.sm { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); } .acc { color: var(--acc); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card + .card { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; text-decoration: none; color: var(--text); }
.btn:active { transform: scale(.985); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-t); }
.btn.quiet { border-color: transparent; background: none; color: var(--sub); font-weight: 500; min-height: 44px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn.sel { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.btns { display: grid; gap: 8px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.opt { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; width: 100%; text-align: left; padding: 11px 12px; min-height: 56px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.opt .n { grid-row: span 3; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; padding-top: 1px; }
.opt b { font-weight: 650; }
.opt span { font-size: 13px; color: var(--sub); }
.opt[disabled] { opacity: .45; }
.opt.sel { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.fact { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 12px 0; font-size: 13.5px; color: var(--sub); }
.fact b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--text); border-radius: 3px; transition: width .35s; }
.bar.acc i { background: var(--acc); } .bar.bad i { background: var(--bad); } .bar.good i { background: var(--good); }
.bar em { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--sub); opacity: .7; }
.st { display: grid; grid-template-columns: 4.4em 1fr 2.4em; align-items: center; gap: 8px; width: 100%; min-height: 32px; border: 0; background: none; padding: 0; text-align: left; }
.st .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--sub); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.age { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.age small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--sub); margin-left: 4px; }
.ctrl { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ctrl .ib { min-width: 40px; padding: 0 6px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar div { max-width: 28rem; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar button { min-height: 56px; border: 0; background: none; color: var(--sub); font-size: 11.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
.tabbar button i { font-size: 16px; }
.tabbar button[aria-selected="true"] { color: var(--text); }
.tabbar .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 28rem; max-height: 94dvh; overflow-y: auto; background: var(--bg); border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom));  overscroll-behavior: contain; }
.sheet .scene canvas { border-radius: 16px 16px 0 0; }
.sheet .body { padding: 14px 16px 0; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.list { border-top: 1px solid var(--line); }
.list > * { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; color: var(--text); }
.list .r { margin-left: auto; color: var(--sub); font-size: 13px; text-align: right; flex: none; }
.map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.map button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 11px; line-height: 1.15; padding: 0; color: var(--sub); font-variant-numeric: tabular-nums; position: relative; }
.map button b { display: block; font-size: 12px; color: var(--text); }
.map button.s-farm { border-style: dashed; } .map button.s-pro, .map button.s-abroad { border-color: var(--text); } .map button.s-abroad { border-width: 2px; }
.map button.cur { box-shadow: inset 0 0 0 2px var(--acc); border-color: var(--acc); }
.map button sup { position: absolute; top: 1px; right: 3px; font-size: 10px; color: var(--warn); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t th, table.t td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
table.t th { color: var(--sub); font-size: 12px; }
table.t tr.me td { font-weight: 700; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.in { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
textarea.in { min-height: 84px; resize: vertical; }
.lab { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin: 14px 0 6px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; min-height: 44px; border: 0; background: none; font-weight: 600; color: var(--sub); border-right: 1px solid var(--line); padding: 0 6px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { color: var(--acc-t); background: var(--acc); }
.avpick { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 6px 0 2px; display: flex; justify-content: center; min-height: 64px; }
.avpick canvas { width: 42px; height: 54px; image-rendering: pixelated; }
.avpick.sel { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.doc { border: 1px solid var(--text); padding: 16px; background: var(--card); font-size: 14px; }
.doc h3 { text-align: center; font-size: 18px; letter-spacing: .4em; margin-bottom: 12px; }
.doc dl { display: grid; grid-template-columns: 5em 1fr; gap: 6px 8px; margin: 0; }
.doc dt { color: var(--sub); } .doc dd { margin: 0; font-weight: 600; }
.sign { display: block; width: 100%; height: 110px; border: 1px dashed var(--sub); border-radius: 6px; background: var(--card); touch-action: none; margin-top: 10px; }
.steps { display: flex; gap: 4px; margin: 12px 0 16px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--track); }
.steps i.on { background: var(--text); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; max-width: 88vw; }
.quote { font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quote small { display: block; color: var(--sub); font-size: 12.5px; margin-bottom: 2px; }
.slide { min-height: 60dvh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 20px 16px; }
.slide .k { font-size: 13px; color: var(--sub); font-weight: 600; margin-bottom: 8px; }
.slide .v { font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.3; }
.slide p { margin-top: 12px; color: var(--sub); }
.roll { font-size: 26px; font-weight: 800; text-align: center; padding: 26px 0; font-variant-numeric: tabular-nums; }
.foot { margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--sub); font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motion-off * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.sheet.in { animation: up .22s ease-out; }
#sh-t:focus { outline: none; }
