/* 분사 다리 (/grammar/participle/bridge.jsp, 2026-10-19). 틀(.pa-*)은 css/ps2-participle-arcade.css, 여기는 색 · 로비 그림 · 문장 칩 · 모양 단추(.pbr-*) */
#main .gi .pa--bridge { --pa-bg1: #0b1d33; --pa-bg2: #1d4566; --pa-glow: #fbbf24; --pa-halo: rgba(251, 191, 36, .22); --pa-win: #0f766e; --pa-accent: #0284c7; }

/* 로비 그림: 해 질 녘 기둥 셋. 막대가 자라 넘어지고, 주인공이 '들고 가는 말'과 함께 2번 기둥으로 건너가면 기둥이 빛난다 */
#main .gi .pa--bridge .pa-hero__art { background: linear-gradient(180deg, #0b1d33 0%, #173f5f 58%, #3f6f86 100%); }
#main .gi .pa--bridge .pbr-hero__sun { position: absolute; right: 14%; top: 26%; width: 26px; height: 26px; border-radius: 50%; background: #ffd8a8; box-shadow: 0 0 46px 22px rgba(255, 214, 165, .32); }
#main .gi .pa--bridge .pbr-hero__ridge { position: absolute; left: -5%; right: -5%; bottom: 22%; height: 36%; background: #1b3b55;
    clip-path: polygon(0 100%, 0 55%, 9% 38%, 18% 52%, 30% 22%, 41% 46%, 52% 30%, 63% 50%, 74% 18%, 86% 44%, 100% 30%, 100% 100%); }
#main .gi .pa--bridge .pbr-hero__ridge--near { bottom: 14%; height: 26%; background: #12304a; clip-path: polygon(0 100%, 0 60%, 14% 40%, 27% 62%, 40% 36%, 55% 58%, 69% 34%, 83% 56%, 100% 42%, 100% 100%); }
#main .gi .pa--bridge .pbr-hero__sent { position: absolute; z-index: 5; left: 50%; top: 10px; transform: translateX(-50%); padding: 4px 12px; border-radius: 10px; background: rgba(2, 6, 23, .82);
    font-weight: 800; font-size: 13.5px; line-height: 1.5; font-family: inherit; color: #fff; white-space: nowrap; }
#main .gi .pa--bridge .pbr-hero__sent b, #main .gi .pa--bridge .pbr-hero__p b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #0f172a;
    font-size: 11px; font-weight: 900; line-height: 1; vertical-align: 1px; }
#main .gi .pa--bridge .pbr-hero__sent b:nth-of-type(2) { animation: pbr-chip 4.6s steps(1) infinite; }
#main .gi .pa--bridge .pbr-hero__p { position: absolute; z-index: 2; bottom: 0; height: 30%; background: linear-gradient(#1e293b, #0b1220); border-top: 4px solid var(--c, #e2e8f0);
    box-shadow: 0 -2px 12px -2px var(--c, transparent); }
#main .gi .pa--bridge .pbr-hero__p::after { content: ""; position: absolute; left: 50%; top: -4px; width: 6px; height: 4px; margin-left: -3px; background: #ef4444; }
#main .gi .pa--bridge .pbr-hero__p--base { left: 0; width: 18%; --c: #e2e8f0; box-shadow: none; }
#main .gi .pa--bridge .pbr-hero__p--base::after { display: none; }
#main .gi .pa--bridge .pbr-hero__p--1 { left: 31%; width: 11%; --c: #22d3ee; }
#main .gi .pa--bridge .pbr-hero__p--2 { left: 55%; width: 12%; --c: #fbbf24; animation: pbr-ok 4.6s steps(1) infinite; }
#main .gi .pa--bridge .pbr-hero__p--3 { left: 80%; width: 11%; --c: #f472b6; }
#main .gi .pa--bridge .pbr-hero__p b { position: absolute; left: 50%; top: -28px; margin-left: -9px; }
#main .gi .pa--bridge .pbr-hero__p i { position: absolute; left: 50%; bottom: calc(100% + 64px); transform: translateX(-50%); padding: 2px 7px; border-radius: 7px; border: 1.5px solid var(--c);
    background: rgba(2, 6, 23, .78); color: #fff; font-style: normal; font-weight: 800; font-size: 11px; line-height: 1.5; white-space: nowrap; }
#main .gi .pa--bridge .pbr-hero__p--2 i { bottom: calc(100% + 90px); }
#main .gi .pa--bridge .pbr-hero__p i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 36px; background: var(--c); opacity: .5; }
#main .gi .pa--bridge .pbr-hero__p--2 i::after { height: 62px; }
/* 막대: 가로로 놓인 모양(왼쪽 끝 = 첫 기둥의 끝)을 -90도 세워 늘린 뒤 넘어뜨린다 */
#main .gi .pa--bridge .pbr-hero__stick { position: absolute; z-index: 3; left: 18%; bottom: 30%; width: 43%; height: 4px; margin-bottom: -2px; border-radius: 2px; transform-origin: 0 50%;
    background: linear-gradient(90deg, #fbbf24, #fff7d6); box-shadow: 0 0 10px rgba(251, 191, 36, .8); animation: pbr-stick 4.6s infinite; }
#main .gi .pa--bridge .pbr-hero__man { position: absolute; z-index: 4; left: 14.5%; bottom: 30%; width: 16px; height: 26px; animation: pbr-man 4.6s infinite; }
#main .gi .pa--bridge .pbr-hero__man::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 19px; border-radius: 6px; background: linear-gradient(#fff 0, #38bdf8 18%, #0f172a 100%); }
#main .gi .pa--bridge .pbr-hero__man::after { content: ""; position: absolute; left: 3px; bottom: 0; width: 10px; height: 7px; border-left: 3px solid #0f172a; border-right: 3px solid #0f172a; }
#main .gi .pa--bridge .pbr-hero__man i { position: absolute; left: -7px; top: 3px; width: 10px; height: 3px; background: #fb7185; border-radius: 2px; }
#main .gi .pa--bridge .pbr-hero__tag { position: absolute; z-index: 5; left: 6%; bottom: calc(30% + 36px); padding: 2px 8px; border-radius: 8px; background: #fff; color: #0f172a; font-weight: 800; font-size: 11.5px;
    line-height: 1.5; white-space: nowrap; animation: pbr-tag 4.6s infinite; }
#main .gi .pa--bridge .pbr-hero__pop { position: absolute; z-index: 6; left: 0; right: 0; top: 34%; text-align: center; font-weight: 900; font-size: 22px; color: #fde68a; text-shadow: 0 2px 10px rgba(2, 6, 23, .8);
    opacity: 0; animation: pbr-pop 4.6s ease-out infinite; }
@keyframes pbr-stick { 0%, 6% { transform: rotate(-90deg) scaleX(0); } 32% { transform: rotate(-90deg) scaleX(1); } 36% { transform: rotate(-60deg) scaleX(1); } 42%, 92% { transform: rotate(0) scaleX(1); opacity: 1; } 100% { transform: rotate(0) scaleX(1); opacity: 0; } }
@keyframes pbr-man { 0%, 42% { left: 14.5%; } 60%, 92% { left: 62.5%; opacity: 1; } 100% { left: 62.5%; opacity: 0; } }
@keyframes pbr-tag { 0%, 42% { left: 6%; opacity: 1; } 60% { left: 54%; bottom: calc(30% + 36px); opacity: 1; } 72%, 100% { left: 55%; bottom: calc(30% + 92px); opacity: 0; } }
@keyframes pbr-ok { 0%, 61% { border-top-color: #fbbf24; box-shadow: 0 -2px 12px -2px #fbbf24; } 62%, 94% { border-top-color: #4ade80; box-shadow: 0 -4px 26px 0 #4ade80; } }
@keyframes pbr-chip { 0%, 61% { background: #fbbf24; } 62%, 94% { background: #4ade80; } }
@keyframes pbr-pop { 0%, 60% { opacity: 0; transform: translateY(10px) scale(.85); } 66% { opacity: 1; transform: translateY(0) scale(1.08); } 86% { opacity: 1; transform: translateY(-14px) scale(1); } 94%, 100% { opacity: 0; transform: translateY(-20px); } }

/* 한 판: 문장 줄 */
#main .gi .pa--bridge .pbr-sent { line-height: 1.75; }
#main .gi .pa--bridge .pbr-slot { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--c, #22d3ee); color: #0f172a;
    font-size: 13px; font-weight: 900; line-height: 1; vertical-align: 2px; box-shadow: 0 0 12px -2px var(--c, #22d3ee); }
#main .gi .pa--bridge .pbr-slot.is-blank { min-width: 46px; background: transparent; border: 2px dashed #fde68a; color: #fde68a; box-shadow: none; }
#main .gi .pa--bridge .pbr-carry { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 2px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
#main .gi .pa--bridge .pbr-chunk { padding: 1px 10px; border-radius: 8px; background: #fff; color: #0f172a; font-size: 15px; font-weight: 800; }
#main .gi .pa--bridge .pbr-chunk.is-empty { background: #fef3c7; color: #92400e; }
#main .gi .pa--bridge .pa-q mark.pbr-in { display: inline-block; padding: 0 6px; border-radius: 7px; background: #bbf7d0; color: #14532d; animation: pbr-in .45s cubic-bezier(.2, .9, .3, 1.3); }
#main .gi .pa--bridge .pa-q mark.pbr-in.is-bad { background: #fecaca; color: #991b1b; text-decoration: line-through; text-decoration-thickness: 2px; }
@keyframes pbr-in { from { transform: translateY(-12px) scale(.6); opacity: 0; } }

/* 한 판: 모양 단추 · 길게 누르기 */
#main .gi .pa--bridge .pbr-forms { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; padding: 6px 8px; border-radius: 14px; background: #f1f5f9; }
#main .gi .pa--bridge .pbr-forms[hidden] { display: none; }
#main .gi .pa--bridge .pbr-forms.is-nudge { animation: pbr-nudge .45s ease; box-shadow: 0 0 0 3px #fbbf24; }
@keyframes pbr-nudge { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
#main .gi .pa--bridge .pbr-forms__lab { font-size: 12px; font-weight: 800; color: var(--pa-mute); }
#main .gi .pa--bridge .pbr-forms__rest { font-size: 13px; font-weight: 700; color: var(--pa-mute); }
#main .gi .pa--bridge .pbr-form { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--pa-ink);
    font-weight: 800; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; touch-action: manipulation; transition: border-color .12s, background .12s, transform .08s; }
#main .gi .pa--bridge .pbr-form small { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e2e8f0; color: var(--pa-mute); font-size: 11px; font-weight: 900; }
#main .gi .pa--bridge .pbr-form:active { transform: scale(.97); }
#main .gi .pa--bridge .pbr-form.is-on { border-color: var(--pa-accent); background: #e0f2fe; box-shadow: 0 0 0 3px rgba(2, 132, 199, .18); }
#main .gi .pa--bridge .pbr-form.is-on small { background: var(--pa-accent); color: #fff; }
#main .gi .pa--bridge .pbr-hold { min-width: 220px; height: 58px; gap: 1px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; font-size: 16px; }
#main .gi .pa--bridge .pbr-hold.is-down { transform: scale(.97); background: var(--pa-accent); border-color: var(--pa-accent); }
#main .gi .pa--bridge .pbr-hold__ico { display: none; }
#main .gi .pa--bridge .pbr-cv { -webkit-touch-callout: none; }
#main .gi .pa--bridge .pbr-sticks { display: inline-flex; gap: 3px; align-items: center; }
#main .gi .pa--bridge .pbr-sticks i { display: inline-block; width: 5px; height: 16px; border-radius: 3px; background: linear-gradient(#fff7d6, #f59e0b); box-shadow: 0 0 6px rgba(245, 158, 11, .6); }
#main .gi .pa--bridge .pbr-sticks i.is-off { background: #cbd5e1; box-shadow: none; }
@media (max-width: 760px) {
    #main .gi .pa--bridge .pbr-hero__sent { font-size: 12px; }
    #main .gi .pa--bridge .pbr-hero__p i { font-size: 10px; padding: 1px 5px; }
    #main .gi .pa--bridge .pbr-hero__p--3 i { left: auto; right: 0; transform: none; }
    #main .gi .pa--bridge .pbr-hero__p i { bottom: calc(100% + 46px); }
    #main .gi .pa--bridge .pbr-hero__p--2 i { bottom: calc(100% + 68px); }
    #main .gi .pa--bridge .pbr-hero__p i::after { height: 20px; }
    #main .gi .pa--bridge .pbr-hero__p--2 i::after { height: 42px; }
    #main .gi .pa--bridge .pbr-hero__tag { bottom: calc(30% + 28px); animation-name: pbr-tag-m; }
    #main .gi .pa--bridge .pbr-hero__pop { top: 46%; font-size: 18px; }
    #main .gi .pa--bridge .pbr-hold { flex: 1 1 100%; min-width: 0; }
    #main .gi .pa--bridge .pbr-form { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 14px; }
    #main .gi .pa--bridge .pa-side { grid-column: auto; }
}
@keyframes pbr-tag-m { 0%, 42% { left: 6%; opacity: 1; } 60% { left: 54%; opacity: 1; } 72%, 100% { left: 55%; bottom: calc(30% + 70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    #main .gi .pa--bridge .pbr-hero__stick { animation: none; transform: none; }
    #main .gi .pa--bridge .pbr-hero__man { left: 62.5%; }
    #main .gi .pa--bridge .pbr-hero__tag, #main .gi .pa--bridge .pbr-hero__pop { display: none; }
    #main .gi .pa--bridge .pa-q mark.pbr-in, #main .gi .pa--bridge .pbr-forms.is-nudge { animation: none; }
}
