/* 핀볼 추첨(2026-10-26 개발자3). 공용 /psych/style.css 위에 덮는다. 본문 14px 이상. */
.stage.pb { padding: 0 0 40px; }
.hidden { display: none !important; }
.pb-head { text-align: center; margin: 12px 16px 0; background: #F3F0FF; border-radius: 22px; padding: 18px 14px 20px; }
.pb-eyebrow { font-size: 14px; font-weight: 800; color: #7048E8; }
.pb-title { font-size: 28px; font-weight: 900; color: #111827; margin: 4px 0 0; }
.pb-sub { font-size: 15px; line-height: 1.6; color: #4B5563; margin: 8px 0 0; word-break: keep-all; }
.pb-box { background: #fff; border: 1.5px solid #E5E7EB; border-radius: 20px; padding: 16px; margin: 16px 16px 0; }
.pb-label { font-size: 16px; font-weight: 900; color: #111827; }
.pb-hint-inline { font-size: 14px; font-weight: 600; color: #6B7280; margin-left: 6px; }
.pb-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-label b { color: #7048E8; }
.pb-clear { font-family: inherit; font-size: 14px; font-weight: 800; color: #6B7280; background: none; border: 0; padding: 6px 2px; cursor: pointer; }
.pb-clear:disabled { opacity: .4; cursor: default; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 40px; align-items: flex-start; }
.pb-chips .empty { font-size: 14px; color: #9CA3AF; padding: 9px 2px; }
.pb-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-family: inherit; font-size: 15px; font-weight: 800; color: #212529;
    background: #F8F9FA; border: 1.5px solid #E9ECEF; border-radius: 999px; padding: 6px 6px 6px 10px; }
.pb-chip i { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; box-shadow: inset -2px -3px 0 rgba(0,0,0,.15); }
.pb-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-chip button { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #E9ECEF; color: #495057; font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer; padding: 0; }
.pb-add { display: flex; gap: 8px; margin-top: 10px; }
.pb-add input { flex: 1; min-width: 0; box-sizing: border-box; font-family: inherit; font-size: 16px; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 11px 12px; background: #F9FAFB; }
.pb-add input:focus { outline: none; border-color: #7048E8; background: #fff; }
.pb-add button { flex-shrink: 0; font-family: inherit; font-size: 15px; font-weight: 900; color: #fff; background: #845EF7; border: 0; border-radius: 12px; padding: 0 16px; cursor: pointer; }
.pb-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; align-items: center; }
.pb-quick::-webkit-scrollbar { display: none; }
.pb-quick span { flex-shrink: 0; font-size: 14px; font-weight: 800; color: #6B7280; margin-right: 2px; }
.pb-quick button { flex-shrink: 0; font-family: inherit; font-size: 14px; font-weight: 800; color: #5F3DC4; background: #F3F0FF; border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.pb-err { font-size: 14px; font-weight: 700; color: #C92A2A; min-height: 1.2em; margin-top: 6px; }
.pb-label2 { margin-top: 16px; }
.pb-boards { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 2px 16px 4px; }
.pb-boards::-webkit-scrollbar { display: none; }
.pb-board { flex-shrink: 0; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; border: 0; border-radius: 16px;
    padding: 12px 4px 10px; cursor: pointer; color: #fff; box-shadow: inset 0 0 0 3px transparent; -webkit-tap-highlight-color: transparent; }
.pb-board .e { font-size: 28px; line-height: 1; }
.pb-board .n { font-size: 14px; font-weight: 900; text-align: center; word-break: keep-all; line-height: 1.25; }
.pb-board.on { box-shadow: inset 0 0 0 3px #FFD43B, 0 4px 0 rgba(0,0,0,.15); transform: translateY(-2px); }
.pb-board-desc { font-size: 14px; font-weight: 700; color: #5F3DC4; margin-top: 8px; min-height: 1.3em; }
.pb-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pb-mode button { font-family: inherit; font-size: 15px; font-weight: 800; color: #374151; background: #F3F4F6; border: 2px solid transparent; border-radius: 12px; padding: 11px; cursor: pointer; }
.pb-mode button.on { background: #F3F0FF; border-color: #7048E8; color: #5F3DC4; }
.pb-main:disabled { background: #B9AEF0; cursor: default; }
.pb-main { display: block; width: 100%; margin-top: 14px; font-family: inherit; font-size: 17px; font-weight: 900; color: #fff; background: #7048E8; border: 0; border-radius: 14px; padding: 14px; cursor: pointer; }
.pb-sub-btn { display: block; width: 100%; font-family: inherit; font-size: 15px; font-weight: 800; color: #374151; background: #F3F4F6; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; }
.pb-link { display: block; width: 100%; font-family: inherit; font-size: 15px; font-weight: 900; color: #1E4FA8; background: #DCEBFC; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; }
.pb-actions { margin-top: 10px; }
.pb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.pb-status { text-align: center; font-size: 16px; font-weight: 900; color: #5F3DC4; margin-bottom: 8px; min-height: 1.4em; }
.pb-field { position: relative; border-radius: 18px; overflow: hidden; background: #1A2457; box-shadow: 0 0 0 3px #7048E8, 0 12px 28px rgba(112,72,232,.3); }
#pbCanvas { display: block; width: 100%; height: min(540px, 64vh); touch-action: pan-y; }
.pb-ticker { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 32px; margin-bottom: 8px; }
.pb-ticker .rk { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; color: #374151; background: #F3F0FF; border-radius: 999px; padding: 5px 10px; }
.pb-ticker .rk:first-child { background: #7048E8; color: #fff; }
.pb-ticker i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pb-flash { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; white-space: nowrap;
    font-size: 30px; font-weight: 900; color: #FFD43B; text-shadow: 0 3px 0 #5F3DC4, 0 0 18px rgba(255,212,59,.6); }
.pb-flash.show { animation: pbFlash 1.4s ease-out; }
@keyframes pbFlash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
.pb-podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin-top: 16px; }
.pd { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; }
.pd-ball { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -4px -5px 0 rgba(0,0,0,.15), 0 3px 6px rgba(0,0,0,.15); }
.pd-name { font-size: 15px; font-weight: 900; color: #111827; margin: 6px 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-step { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; border-radius: 12px 12px 0 0; font-size: 26px; }
.pd1 .pd-step { height: 86px; background: linear-gradient(180deg, #FFE066, #FAB005); }
.pd2 .pd-step { height: 62px; background: linear-gradient(180deg, #E9ECEF, #ADB5BD); }
.pd3 .pd-step { height: 46px; background: linear-gradient(180deg, #FFC078, #E8590C); }
.pd1 .pd-ball { width: 34px; height: 34px; }
.pb-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
@media (prefers-reduced-motion: reduce) { .pb-flash.show { animation: none; opacity: 1; transform: translate(-50%, -50%); } }

.pb-winner { text-align: center; font-size: 15px; font-weight: 700; color: #6B7280; }
.pb-winner b { display: block; font-size: 30px; font-weight: 900; color: #7048E8; margin-top: 4px; word-break: keep-all; }
.pb-order { margin: 14px 0 0; padding: 0 0 0 24px; }
.pb-order li { font-size: 15px; color: #374151; padding: 7px 0; border-top: 1px solid #F1F1EE; }
.pb-order li:first-child { border-top: 0; }
.pb-order li.win { font-weight: 900; color: #5F3DC4; }
.pb-order.folded li:nth-child(n+6) { display: none; }
.pb-more { display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 15px; font-weight: 800; color: #5F3DC4; background: #F3F0FF; border: 0; border-radius: 12px; padding: 11px; cursor: pointer; }
.pb-order .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

@media (min-width: 768px) {
    .stage.pb { max-width: 760px; }
    .pb-title { font-size: 34px; }
    #pbCanvas { height: min(620px, 70vh); }
}
