/* 농구선수 키우기 화면. 밝게 = 기록지, 어둡게 = 체육관 전광판. 색은 아래 토큰만 쓴다. */
:root { --bg: #e8ece5; --paper: #fbfbf5; --ink: #17212a; --sub: #55616a; --rule: #c4cfc7; --print: #1c5a43; --print-t: #fbfbf5; --pencil: #b3301e; --good: #1a6b43; --bad: #b3301e; --warn: #7a5200; --board: #12362a; --board-2: #0b241c; --chalk: #f3f1e4; --chalk-2: #a9c4b6; --lamp: #f4b92e; --lamp-off: #2b5646; --lamp-r: #ff7a66; --scrim: rgba(9, 20, 15, .62); --mono: ui-monospace, "SFMono-Regular", Consolas, "D2Coding", "Malgun Gothic", monospace; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0a100e; --paper: #131b18; --ink: #eae8dc; --sub: #9aa7a0; --rule: #2a3a33; --print: #86cfae; --print-t: #0a100e; --pencil: #ff9079; --good: #86d3a8; --bad: #ff9079; --warn: #e7ba5c; --board: #050908; --board-2: #1c2823; --chalk: #f3f1e4; --chalk-2: #8fa69b; --lamp: #f6c44e; --lamp-off: #232f2a; --lamp-r: #ff7a66; --scrim: rgba(0, 0, 0, .72); } }
:root[data-theme="dark"] { --bg: #0a100e; --paper: #131b18; --ink: #eae8dc; --sub: #9aa7a0; --rule: #2a3a33; --print: #86cfae; --print-t: #0a100e; --pencil: #ff9079; --good: #86d3a8; --bad: #ff9079; --warn: #e7ba5c; --board: #050908; --board-2: #1c2823; --chalk: #f3f1e4; --chalk-2: #8fa69b; --lamp: #f6c44e; --lamp-off: #232f2a; --lamp-r: #ff7a66; --scrim: rgba(0, 0, 0, .72); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 바탕은 기록지 모눈 */
body { zoom: var(--fz, 1); }
body { margin: 0; background-color: var(--bg); background-image: linear-gradient(color-mix(in srgb, var(--rule) 38%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--rule) 38%, transparent) 1px, transparent 1px); background-size: 24px 24px; color: var(--ink); 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(--print); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.wrap { max-width: 30rem; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: 32px; background: var(--paper); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.pad { padding: 0 16px; }
.ib.on { color: var(--pencil); }
/* 좁은 폭·큰 글씨: 서버비 버튼은 아이콘만, 큰 글씨에서는 제목이 윗줄을 다 쓴다 */
.top .name { min-width: 7em; }
.fzbig .top { justify-content: flex-end; }
@media (max-width: 419px) { .top .spt { display: none; } }
.fzbig .top .spt { display: none; }
.fzbig .top { flex-wrap: wrap; padding-top: 2px; }
.fzbig .top .name { flex: 1 0 100%; min-height: 36px; }

/* 글 */
.h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1.35; }
.h2, .cap { font: 700 12.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--print); display: flex; align-items: baseline; gap: 8px; }
.h2 { margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1.5px solid var(--print); }
.cap { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; } /* 긴 유형 이름은 글 사이에서 꺾이지 않고 통째로 아랫줄 오른쪽으로 */
.h2 small, .cap small { font: 500 12.5px/1.3 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: 0; color: var(--sub); margin-left: auto; text-align: right; }
.sub { color: var(--sub); font-size: 13.5px; }
.sm { font-size: 13px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); font-weight: 700; text-decoration: none; color: var(--ink); box-shadow: 2px 2px 0 var(--rule); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--rule); }
.btn.pri { background: var(--print); border-color: var(--print); color: var(--print-t); }
.btn.quiet { border-color: transparent; box-shadow: none; background: none; color: var(--sub); font-weight: 600; min-height: 44px; text-decoration: underline dotted; text-underline-offset: 4px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn.sel { border-color: var(--pencil); box-shadow: inset 0 0 0 1px var(--pencil); }
.btns { display: grid; gap: 8px; }
.card { border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); padding: 12px 14px; margin: 10px 0; }
.stat { display: grid; grid-template-columns: 4.6em 1fr 2.4em; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.bar { height: 8px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--print); }
.line { font-weight: 600; font-size: 15px; line-height: 1.6; }
.box { display: flex; gap: 6px; margin-top: 8px; text-align: center; }
.box div { flex: 1 1 auto; white-space: nowrap; border: 1px solid var(--rule); border-radius: 3px; padding: 5px 2px 4px; }
.box small { display: block; font-size: 12px; color: var(--sub); }
.box b { font: 700 15px/1.3 var(--mono); }
.court { display: block; width: 100%; height: auto; margin: 12px 0 4px; border: 1.5px solid var(--ink); border-radius: 3px; background: color-mix(in srgb, var(--lamp) 10%, var(--paper)); }
.court .ln { fill: none; stroke: var(--sub); stroke-width: 1.5; }
.court .rim { fill: none; stroke: var(--pencil); stroke-width: 2; }
.court .me { fill: var(--print); stroke: var(--paper); stroke-width: 2; }
.court .arc { fill: none; stroke: var(--sub); stroke-width: 1.5; stroke-dasharray: 3 4; }
.court .ball { fill: var(--lamp); stroke: var(--ink); stroke-width: 1.5; }
.court.made .rim { stroke: var(--good); }
.court.miss .rim { stroke: var(--bad); }
.court .ball { offset-rotate: 0deg; offset-distance: 100%; animation: shot 1.1s ease-out both; }
.court .arc { animation: draw 1.1s ease-out both; }
@keyframes shot { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes draw { from { stroke-dashoffset: 120; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .court .ball, .court .arc { animation: none; } }
.endcard { border-width: 2px; background: color-mix(in srgb, var(--print) 9%, var(--paper)); text-align: center; padding: 18px 14px; }
.endcard .big { font-size: 32px; line-height: 1.25; margin: 4px 0 8px; color: var(--print); }
.tbl tr.best td { background: color-mix(in srgb, var(--lamp) 22%, transparent); font-weight: 700; }
.tbl .mk { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 2px; background: var(--pencil); color: var(--paper); font-size: 11px; font-weight: 700; }
.prose { font-size: 16px; font-weight: 600; line-height: 1.65; }
.fx { margin-top: 6px; color: var(--print); font-size: 13.5px; font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 5px 4px; border-bottom: 1px solid var(--rule); text-align: right; }
.tbl th:nth-child(-n+2), .tbl td:nth-child(-n+2) { text-align: left; }
.title { padding-top: 48px; }
.fld { display: block; width: 100%; min-height: 48px; padding: 8px 12px; margin: 6px 0 14px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); }
.big { font-size: 26px; font-weight: 800; }
.toast { position: fixed; left: 50%; width: max-content; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 3px; font-size: 14px; font-weight: 600; z-index: 9; }
