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

/* 로비 */
#main .gi .fh .fh-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%, #1d4ed8 0%, #0b1a3b 58%, #050b1c 100%); box-shadow: 0 30px 60px -36px rgba(2, 6, 23, .9); overflow: hidden; }
#main .gi .fh .fh-hero__art { position: relative; height: 240px; border-radius: 16px; overflow: hidden; background: linear-gradient(#1e3a8a 0, #7c9cd8 55%, #f5d0e6 100%); }
#main .gi .fh .fh-hero__ramp { position: absolute; left: 2%; top: 8%; width: 30%; height: 40%; border-top: 6px solid #e2e8f0; border-radius: 0 60% 0 0; transform: skewY(28deg); transform-origin: left top; }
#main .gi .fh .fh-hero__hill { position: absolute; left: 24%; right: -10%; top: 46%; bottom: -30%; background: #f8fafc; border-radius: 30% 0 0 0; box-shadow: inset 0 -40px 60px rgba(148, 163, 184, .35); }
#main .gi .fh .fh-hero__z { position: absolute; height: 6px; border-radius: 3px; }
#main .gi .fh .fh-hero__z.z1 { left: 34%; top: 60%; width: 12%; background: #3b82f6; }
#main .gi .fh .fh-hero__z.z2 { left: 52%; top: 72%; width: 12%; background: #f97316; }
#main .gi .fh .fh-hero__z.z3 { left: 72%; top: 80%; width: 12%; background: #a855f7; }
#main .gi .fh .fh-hero__z i { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .96); color: var(--fh-ink);
    font-style: normal; font-weight: 800; font-size: 12px; line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 10px -6px rgba(2, 6, 23, .6); }
#main .gi .fh .fh-hero__z.is-ok i { animation: fh-ok 3s ease-in-out infinite; }
@keyframes fh-ok { 0%, 60% { background: rgba(255, 255, 255, .96); } 68%, 95% { background: #dcfce7; box-shadow: 0 0 0 2px #16a34a, 0 0 14px rgba(22, 163, 74, .6); } }
#main .gi .fh .fh-hero__skier { position: absolute; width: 26px; height: 8px; margin: -4px 0 0 -13px; border-radius: 4px; background: linear-gradient(90deg, #ef4444 0 30%, #1d4ed8 30% 100%); animation: fh-fly 3s ease-in-out infinite; }
@keyframes fh-fly { 0% { left: 6%; top: 12%; transform: rotate(35deg); opacity: 1; } 30% { left: 28%; top: 44%; transform: rotate(10deg); } 50% { left: 42%; top: 40%; transform: rotate(-10deg); } 66% { left: 58%; top: 70%; transform: rotate(25deg); opacity: 1; } 80%, 100% { left: 64%; top: 74%; transform: rotate(25deg); opacity: 0; } }
#main .gi .fh .fh-hero__line { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(2, 6, 23, .6); }
#main .gi .fh .fh-hero__line u { text-decoration: none; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); color: #fde68a; }
#main .gi .fh .fh-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 .fh .fh-hero__txt p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .84); }
#main .gi .fh .fh-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .86); }
#main .gi .fh .fh-how kbd, #main .gi .fh .fh-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 .fh .fh-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0 10px; }
#main .gi .fh .fh-level { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--fh-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
#main .gi .fh .fh-level.is-locked { opacity: .62; }
#main .gi .fh .fh-level h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
#main .gi .fh .fh-level h3 i { font-style: normal; color: #f59e0b; letter-spacing: 1px; font-size: 14px; }
#main .gi .fh .fh-level p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fh-mute); }
#main .gi .fh .fh-level__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--fh-mute); }
#main .gi .fh .fh-level__box { padding: 0 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; }
#main .gi .fh .fh-level .gi-btn { justify-self: start; }
#main .gi .fh .fh-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 13px; color: var(--fh-mute); }
#main .gi .fh .fh-tool { padding: 6px 12px; border: 1px solid var(--fh-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; line-height: 1.4; font-family: inherit; color: var(--fh-ink); cursor: pointer; }

/* 한 판 */
#main .gi .fh .fh-stage { display: grid; gap: 10px; }
#main .gi .fh .fh-top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--fh-mute); }
#main .gi .fh .fh-top b { font-size: 18px; color: var(--fh-ink); font-variant-numeric: tabular-nums; display: inline-block; }
#main .gi .fh .fh-top b.is-pop { animation: fh-pop .45s ease; }
@keyframes fh-pop { 30% { transform: scale(1.35); color: #16a34a; } }
#main .gi .fh .fh-combo.is-hot b { color: #ea580c; }
#main .gi .fh .fh-combo.is-hot::after { content: " 🔥"; }
#main .gi .fh .fh-hearts i { font-style: normal; color: #ef4444; font-size: 18px; margin-right: 2px; }
#main .gi .fh .fh-hearts i.is-off { color: #cbd5e1; }
#main .gi .fh .fh-telen { padding: 1px 9px; border-radius: 999px; background: #fef9c3; color: #a16207; font-weight: 800; font-variant-numeric: tabular-nums; }
#main .gi .fh .fh-wave { margin-left: auto; font-weight: 700; }
#main .gi .fh .fh-q { min-height: 74px; padding: 12px 16px; border-radius: 16px; background: #0f172a; color: #fff; text-align: center; }
#main .gi .fh .fh-sent { margin: 0; font-weight: 800; font-size: clamp(17px, 2.4vw, 23px); line-height: 1.45; font-family: inherit; letter-spacing: -0.01em; }
#main .gi .fh .fh-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 .fh .fh-sent mark.is-ok { background: #16a34a; color: #fff; border-style: solid; border-color: #16a34a; }
#main .gi .fh .fh-ko { display: block; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.78); }
#main .gi .fh .fh-ko--hint { color: rgba(255,255,255,.5); }
#main .gi .fh .fh-ko--why { color: #86efac; font-weight: 700; }
#main .gi .fh .fh-hill-wrap { position: relative; display: grid; justify-items: center; }
#main .gi .fh .fh-hill { display: block; width: 100%; border-radius: 18px; touch-action: none; cursor: pointer; box-shadow: 0 30px 60px -30px rgba(2, 6, 23, .6); user-select: none; -webkit-user-select: none; }
#main .gi .fh .fh-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 .fh .fh-overlay[hidden] { display: none; }
#main .gi .fh .fh-card { max-height: 100%; overflow-y: auto; width: min(560px, 100%); padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--fh-ink); box-shadow: 0 30px 60px -20px rgba(2, 6, 23, .8); animation: fh-card .25s ease; }
@keyframes fh-card { from { transform: translateY(14px); opacity: 0; } }
#main .gi .fh .fh-card .fh-sent, #main .gi .fh .fh-wrong .fh-sent { color: var(--fh-ink); font-size: 18px; text-align: left; }
#main .gi .fh .fh-card .fh-sent mark { background: #e2e8f0; color: var(--fh-ink); border-color: #cbd5e1; }
#main .gi .fh .fh-card .fh-sent mark.is-ok, #main .gi .fh .fh-wrong .fh-sent mark.is-ok { background: #16a34a; color: #fff; border-color: #16a34a; }
#main .gi .fh .fh-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 .fh .fh-card__ko { margin: 4px 0 0; font-size: 14px; color: var(--fh-mute); }
#main .gi .fh .fh-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 .fh .fh-card__mine { margin: 8px 0 0; font-size: 13.5px; color: #b91c1c; }
#main .gi .fh .fh-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
#main .gi .fh .fh-card__link { font-size: 13.5px; font-weight: 700; color: var(--fh-accent); }
#main .gi .fh .fh-ctl { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
#main .gi .fh .fh-ctl__lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#main .gi .fh .fh-ctl__lanes button { position: relative; display: grid; place-items: center; min-height: 52px; padding: 4px 8px; border: 1px solid var(--fh-line); border-top: 4px solid var(--z, #3b82f6); border-radius: 12px; background: #fff;
    font-weight: 700; font-size: 15px; line-height: 1.3; font-family: inherit; color: var(--fh-ink); text-align: center; cursor: pointer; touch-action: manipulation; overflow-wrap: anywhere; }
#main .gi .fh .fh-ctl__lanes button small { position: absolute; left: 6px; top: 4px; font-size: 10px; font-weight: 800; color: var(--z, #64748b); }
#main .gi .fh .fh-ctl__lanes button:active { background: #f1f5f9; }
#main .gi .fh .fh-ctl__act { min-width: 96px; min-height: 52px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #38bdf8, #1d4ed8); color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; font-family: inherit;
    cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .8); }
#main .gi .fh .fh-ctl__act:active { transform: translateY(1px); filter: brightness(.95); }
#main .gi .fh .fh-tip { margin: 0; font-size: 12.5px; color: var(--fh-mute); text-align: center; }
#main .gi .fh .fh-tip kbd { border-color: var(--fh-line); background: #f1f5f9; color: var(--fh-ink); }

/* 결과 */
#main .gi .fh .fh-result__head { padding: 22px; border-radius: 20px; color: #fff; text-align: center; background: linear-gradient(135deg, #0f172a, #1e293b); }
#main .gi .fh .fh-result__head.is-win { background: radial-gradient(120% 100% at 50% 0, #1d4ed8 0%, #0b1a3b 70%); }
#main .gi .fh .fh-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 .fh .fh-result__score { margin: 8px 0 0; }
#main .gi .fh .fh-result__score b { font-size: clamp(44px, 7vw, 64px); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#main .gi .fh .fh-result__score small { margin-left: 4px; font-size: 16px; color: rgba(255,255,255,.7); }
#main .gi .fh .fh-result__stars { font-size: 26px; color: #fbbf24; letter-spacing: 3px; }
#main .gi .fh .fh-result__best { display: inline-block; margin: 8px 0 0; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13.5px; font-weight: 800; color: rgba(255,255,255,.85); }
#main .gi .fh .fh-result__best.is-new { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; box-shadow: 0 0 22px rgba(245, 158, 11, .55); animation: fh-best 1.6s ease-in-out infinite; }
@keyframes fh-best { 50% { transform: scale(1.06); } }
#main .gi .fh .fh-result__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
#main .gi .fh .fh-result__row div { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.08); }
#main .gi .fh .fh-result__row small { display: block; font-size: 12px; color: rgba(255,255,255,.7); }
#main .gi .fh .fh-result__row b { font-size: 18px; }
#main .gi .fh .fh-result__note { margin: 12px 0 0; font-size: 14px; color: #fde68a; }
#main .gi .fh .fh-result__sec { margin-top: 18px; }
#main .gi .fh .fh-result__sec h3 { margin: 0 0 8px; font-size: 17px; }
#main .gi .fh .fh-wrong { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#main .gi .fh .fh-wrong li { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--fh-line); border-left: 4px solid #ef4444; border-radius: 12px; background: #fff; }
#main .gi .fh .fh-wrong .fh-sent { font-size: 16px; }
#main .gi .fh .fh-wrong__ko { font-size: 13.5px; color: var(--fh-mute); }
#main .gi .fh .fh-wrong__why { font-size: 14px; color: #14532d; font-weight: 600; }
#main .gi .fh .fh-wrong__link { justify-self: start; font-size: 13px; font-weight: 700; color: var(--fh-accent); }
#main .gi .fh .fh-skills { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
#main .gi .fh .fh-skills li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; }
#main .gi .fh .fh-skills b { color: var(--fh-ink); }
#main .gi .fh .fh-result__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

@media (max-width: 760px) {
    #main .gi .fh .fh-hero { padding: 16px; }
    #main .gi .fh .fh-hero__art { height: 220px; }
    #main .gi .fh .fh-ctl { grid-template-columns: 1fr; }
    #main .gi .fh .fh-ctl__lanes button { font-size: 13px; padding: 4px; }
    #main .gi .fh .fh-card { padding: 12px 14px; }
    #main .gi .fh .fh-card .fh-sent { font-size: 16px; }
    #main .gi .fh .fh-card__why { font-size: 14px; padding: 8px 10px; }
    #main .gi .fh .fh-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    }
