/* 짝 점프 (/grammar/infinitive/jump.jsp, 2026-10-18). js/ps2-infinitive-jump.js 가 만드는 화면. 로비 · 한 판(공책 캔버스 + 안내) · 결과 */
#main .gi .fj { min-width: 0; --fj-ink: #0f172a; --fj-mute: #64748b; --fj-line: #e2e8f0; --fj-accent: #2563eb; --fj-paper: #fffdf6; margin: 0 0 28px; }
#main .gi .fj .fj-view[hidden] { display: none; }

/* 로비 */
#main .gi .fj .fj-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: center; padding: 22px; border-radius: 22px; color: #fff;
    background: radial-gradient(120% 90% at 50% 100%, #1e3a8a 0%, #0b1120 62%, #07101f 100%); box-shadow: 0 30px 60px -36px rgba(2, 6, 23, .9); overflow: hidden; }
#main .gi .fj .fj-hero__art { position: relative; height: 240px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(rgba(59,130,246,.14) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(59,130,246,.14) 1px, transparent 1px) 0 0 / 22px 100%, linear-gradient(#fffdf6, #f5edd8); }
#main .gi .fj .fj-hero__art::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 1.5px; background: rgba(239, 68, 68, .45); }
#main .gi .fj .fj-hero__note { position: absolute; top: 30%; display: grid; place-items: center; width: 27%; height: 40px; border-radius: 9px; background: #fff; box-shadow: 0 4px 0 rgba(15, 23, 42, .12); border: 1px solid rgba(15, 23, 42, .18); }
#main .gi .fj .fj-hero__note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 34px; height: 10px; margin-left: -17px; border-radius: 3px; background: hsla(var(--h, 205) 80% 60% / .85); }
#main .gi .fj .fj-hero__note i { font-weight: 800; font-size: 14px; line-height: 1; font-family: inherit; font-style: normal; color: var(--fj-ink); }
#main .gi .fj .fj-hero__note.n1 { left: 4%; --h: 205; }
#main .gi .fj .fj-hero__note.n2 { left: 36.5%; --h: 285; animation: fj-real 2.4s ease-in-out infinite; }
#main .gi .fj .fj-hero__note.n3 { right: 4%; --h: 32; animation: fj-crack 2.4s ease-in-out infinite; }
@keyframes fj-real { 0%, 40% { background: #fff; } 52%, 90% { background: #dcfce7; border-color: #16a34a; } 100% { background: #fff; } }
@keyframes fj-crack { 0%, 60% { transform: none; opacity: 1; } 70% { transform: rotate(6deg) translateY(6px); opacity: .9; } 85% { transform: rotate(16deg) translateY(60px); opacity: 0; } 100% { opacity: 0; } }
#main .gi .fj .fj-hero__ruler { position: absolute; left: 0; right: 0; bottom: 34px; height: 14px; border-top: 1.5px solid #b45309;
    background: repeating-linear-gradient(90deg, #b45309 0 1px, transparent 1px 10px) 0 0 / 100% 5px no-repeat, linear-gradient(#fde68a, #f6c453); }
#main .gi .fj .fj-hero__pencil { position: absolute; left: 50%; bottom: 48px; width: 18px; height: 54px; margin-left: -9px;
    background: linear-gradient(#f472b6 0 15%, #cbd5e1 15% 26%, #fbbf24 26% 78%, #f2c38b 78% 90%, #374151 90%);
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); filter: drop-shadow(0 4px 4px rgba(15, 23, 42, .25)); animation: fj-hop 2.4s cubic-bezier(.3, .6, .4, 1) infinite; }
#main .gi .fj .fj-hero__pencil::before { content: ""; position: absolute; left: 4px; top: 22px; width: 3px; height: 4px; border-radius: 50%; background: #0f172a; box-shadow: 7px 0 0 #0f172a; }
@keyframes fj-hop { 0%, 10% { transform: translateY(0); } 22% { transform: translateY(-14px); } 34% { transform: translateY(0); } 50% { transform: translateY(-122px); } 60%, 90% { transform: translateY(-104px); } 100% { transform: translateY(0); } }
#main .gi .fj .fj-hero__star { position: absolute; width: 16px; height: 16px; background: #facc15; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 6px rgba(250, 204, 21, .9)); animation: fj-twinkle 1.6s ease-in-out infinite; }
#main .gi .fj .fj-hero__star.s1 { left: 22%; top: 10%; }
#main .gi .fj .fj-hero__star.s2 { right: 18%; top: 14%; animation-delay: -.8s; }
@keyframes fj-twinkle { 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }
#main .gi .fj .fj-hero__txt h2 { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; letter-spacing: -0.02em; color: #fff; }
#main .gi .fj .fj-hero__txt p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
#main .gi .fj .fj-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
#main .gi .fj .fj-how kbd, #main .gi .fj .fj-tip kbd { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); font-weight: 700; font-size: 12px; line-height: 1.6; font-family: inherit; color: #fff; text-align: center; }
#main .gi .fj .fj-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0 10px; }
#main .gi .fj .fj-level { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--fj-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
#main .gi .fj .fj-level.is-locked { opacity: .62; }
#main .gi .fj .fj-level h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
#main .gi .fj .fj-level h3 i { font-style: normal; color: #f59e0b; letter-spacing: 1px; font-size: 14px; }
#main .gi .fj .fj-level p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fj-mute); }
#main .gi .fj .fj-level__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--fj-mute); }
#main .gi .fj .fj-level__box { padding: 0 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; }
#main .gi .fj .fj-level .gi-btn { justify-self: start; }
#main .gi .fj .fj-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 13px; color: var(--fj-mute); }
#main .gi .fj .fj-tool { padding: 6px 12px; border: 1px solid var(--fj-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; line-height: 1.4; font-family: inherit; color: var(--fj-ink); cursor: pointer; }

/* 한 판 */
#main .gi .fj .fj-stage { display: grid; gap: 10px; }
#main .gi .fj .fj-top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--fj-mute); }
#main .gi .fj .fj-top b { font-size: 18px; color: var(--fj-ink); font-variant-numeric: tabular-nums; display: inline-block; }
#main .gi .fj .fj-top b.is-pop { animation: fj-pop .45s ease; }
@keyframes fj-pop { 30% { transform: scale(1.35); color: #16a34a; } }
#main .gi .fj .fj-combo.is-hot b { color: #ea580c; }
#main .gi .fj .fj-combo.is-hot::after { content: " 🔥"; }
#main .gi .fj .fj-hearts i { font-style: normal; color: #ef4444; font-size: 18px; margin-right: 2px; }
#main .gi .fj .fj-hearts i.is-off { color: #cbd5e1; }
#main .gi .fj .fj-height { padding: 1px 9px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-weight: 800; font-variant-numeric: tabular-nums; }
#main .gi .fj .fj-wave { margin-left: auto; font-weight: 700; }
#main .gi .fj .fj-q { min-height: 74px; padding: 12px 16px; border-radius: 16px; background: #0f172a; color: #fff; text-align: center; }
#main .gi .fj .fj-sent { margin: 0; font-weight: 800; font-size: clamp(17px, 2.4vw, 23px); line-height: 1.55; font-family: inherit; letter-spacing: -0.01em; }
#main .gi .fj .fj-sent mark { display: inline-block; min-width: 86px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fde68a; border: 1px dashed rgba(253, 230, 138, .6); }
#main .gi .fj .fj-sent mark.is-ok { background: #16a34a; color: #fff; border-style: solid; border-color: #16a34a; }
#main .gi .fj .fj-chunk { text-decoration: none; padding: 0 2px; border-bottom: 2px dotted rgba(253, 230, 138, .75); }
#main .gi .fj .fj-chunk.is-real { padding: 0 6px; border-radius: 7px; border-bottom: 0; background: #16a34a; color: #fff; }
#main .gi .fj .fj-ko { display: block; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.78); }
#main .gi .fj .fj-ko--hint { color: rgba(255,255,255,.5); }
#main .gi .fj .fj-ko--why { color: #86efac; font-weight: 700; }
#main .gi .fj .fj-timer { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
#main .gi .fj .fj-timer i { display: block; width: 100%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #facc15); transition: width .1s linear; }
#main .gi .fj .fj-timer.is-low i { background: #ef4444; }
#main .gi .fj .fj-paper-wrap { position: relative; display: grid; justify-items: center; }
#main .gi .fj .fj-paper { display: block; width: 100%; border-radius: 18px; touch-action: none; cursor: pointer; box-shadow: 0 30px 60px -30px rgba(2, 6, 23, .55), 0 0 0 1px rgba(15, 23, 42, .06); user-select: none; -webkit-user-select: none; }
#main .gi .fj .fj-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(2, 6, 23, .45); border-radius: 18px; backdrop-filter: blur(2px); }
#main .gi .fj .fj-overlay[hidden] { display: none; }
#main .gi .fj .fj-card { width: min(560px, 100%); padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--fj-ink); box-shadow: 0 30px 60px -20px rgba(2, 6, 23, .8); animation: fj-card .25s ease; }
@keyframes fj-card { from { transform: translateY(14px); opacity: 0; } }
#main .gi .fj .fj-card .fj-sent, #main .gi .fj .fj-wrong .fj-sent { color: var(--fj-ink); font-size: 18px; text-align: left; }
#main .gi .fj .fj-card .fj-chunk, #main .gi .fj .fj-wrong .fj-chunk { border-bottom-color: #94a3b8; }
#main .gi .fj .fj-card .fj-chunk.is-fake, #main .gi .fj .fj-wrong .fj-chunk.is-fake { color: #b91c1c; text-decoration: line-through; text-decoration-thickness: 2px; border-bottom: 0; }
#main .gi .fj .fj-card .fj-sent mark { background: #e2e8f0; color: var(--fj-ink); border-color: #cbd5e1; }
#main .gi .fj .fj-card .fj-sent mark.is-ok, #main .gi .fj .fj-wrong .fj-sent mark.is-ok { background: #16a34a; color: #fff; border-color: #16a34a; }
#main .gi .fj .fj-card__tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 12.5px; font-weight: 800; }
#main .gi .fj .fj-card__ko { margin: 4px 0 0; font-size: 14px; color: var(--fj-mute); }
#main .gi .fj .fj-card__why { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #14532d; font-size: 15px; line-height: 1.6; font-weight: 600; }
#main .gi .fj .fj-card__mine { margin: 8px 0 0; font-size: 13.5px; color: #b91c1c; }
#main .gi .fj .fj-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
#main .gi .fj .fj-card__link { font-size: 13.5px; font-weight: 700; color: var(--fj-accent); }
#main .gi .fj .fj-ctl { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: stretch; }
#main .gi .fj .fj-ctl__btn { height: 48px; border: 1px solid var(--fj-line); border-radius: 12px; background: #f8fafc; font-weight: 800; font-size: 20px; line-height: 1; font-family: inherit; color: var(--fj-ink); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
#main .gi .fj .fj-ctl__btn:active { background: #e2e8f0; }
#main .gi .fj .fj-ctl__lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#main .gi .fj .fj-ctl__lanes button { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; border: 1px solid var(--fj-line); border-top: 4px solid hsl(var(--hue, 210) 70% 55%); border-radius: 12px; background: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; font-family: inherit; color: var(--fj-mute); text-align: center; cursor: pointer; touch-action: manipulation; transition: background .15s, color .15s, box-shadow .15s; }
#main .gi .fj .fj-ctl__lanes button.is-on { background: #0f172a; color: #fff; border-color: #0f172a; border-top-color: hsl(var(--hue, 210) 85% 60%); }
#main .gi .fj .fj-ctl__lanes button.is-on::after { content: "▲ 뛰기"; display: block; font-size: 10.5px; font-weight: 800; color: #fde68a; letter-spacing: .02em; }
#main .gi .fj .fj-ctl__lanes button.is-locked { background: #ca8a04; border-color: #ca8a04; color: #fff; box-shadow: 0 0 0 3px rgba(250, 204, 21, .35); }
#main .gi .fj .fj-ctl__lanes button.is-locked::after { content: "점프!"; color: #fff; }
#main .gi .fj .fj-tip { margin: 0; font-size: 12.5px; color: var(--fj-mute); text-align: center; }
#main .gi .fj .fj-tip kbd { border-color: var(--fj-line); background: #f1f5f9; color: var(--fj-ink); }

/* 결과 */
#main .gi .fj .fj-result__head { padding: 22px; border-radius: 20px; color: #fff; text-align: center; background: linear-gradient(135deg, #0f172a, #1e293b); }
#main .gi .fj .fj-result__head.is-win { background: radial-gradient(120% 100% at 50% 0, #1d4ed8 0%, #0f172a 70%); }
#main .gi .fj .fj-result__tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 800; }
#main .gi .fj .fj-result__score { margin: 8px 0 0; }
#main .gi .fj .fj-result__score b { font-size: clamp(44px, 7vw, 64px); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#main .gi .fj .fj-result__score small { margin-left: 4px; font-size: 16px; color: rgba(255,255,255,.7); }
#main .gi .fj .fj-result__stars { font-size: 26px; color: #fbbf24; letter-spacing: 3px; }
#main .gi .fj .fj-result__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
#main .gi .fj .fj-result__row div { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.08); }
#main .gi .fj .fj-result__row small { display: block; font-size: 12px; color: rgba(255,255,255,.7); }
#main .gi .fj .fj-result__row b { font-size: 18px; }
#main .gi .fj .fj-result__note { margin: 12px 0 0; font-size: 14px; color: #fde68a; }
#main .gi .fj .fj-result__sec { margin-top: 18px; }
#main .gi .fj .fj-result__sec h3 { margin: 0 0 8px; font-size: 17px; }
#main .gi .fj .fj-wrong { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#main .gi .fj .fj-wrong li { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--fj-line); border-left: 4px solid #ef4444; border-radius: 12px; background: #fff; }
#main .gi .fj .fj-wrong .fj-sent { font-size: 16px; }
#main .gi .fj .fj-wrong__ko { font-size: 13.5px; color: var(--fj-mute); }
#main .gi .fj .fj-wrong__why { font-size: 14px; color: #14532d; font-weight: 600; }
#main .gi .fj .fj-wrong__link { justify-self: start; font-size: 13px; font-weight: 700; color: var(--fj-accent); }
#main .gi .fj .fj-skills { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
#main .gi .fj .fj-skills li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; }
#main .gi .fj .fj-skills b { color: var(--fj-ink); }
#main .gi .fj .fj-result__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

@media (max-width: 760px) {
    #main .gi .fj .fj-hero { padding: 16px; }
    #main .gi .fj .fj-hero__art { height: 200px; }
    #main .gi .fj .fj-hero__note i { font-size: 12px; }
    #main .gi .fj .fj-ctl { grid-template-columns: 48px 1fr 48px; }
    #main .gi .fj .fj-ctl__lanes button { font-size: 12.5px; }
    #main .gi .fj .fj-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #main .gi .fj .fj-hero__pencil, #main .gi .fj .fj-hero__note, #main .gi .fj .fj-hero__star { animation: none; }
}
