/* 쉼표 낚시 (/grammar/relative/fishing.jsp, 2026-10-18). 틀(.ra-*)은 css/ps2-relative-arcade.css, 여기는 색 · 로비 그림 · 문장 표시(.rf-*) */
#main .gi .ra--fishing { --ra-bg1: #072a40; --ra-bg2: #0c4a6e; --ra-glow: #fcd34d; --ra-halo: rgba(56, 189, 248, .28); --ra-win: #0e7490; --ra-accent: #0284c7; }

/* 로비 그림: 해 · 바다 · 배 · 쉼표 모양 바늘 · 답을 단 물고기 */
#main .gi .ra--fishing .rf-hero { background: linear-gradient(180deg, #7dd3fc 0%, #e0f2fe 30%, #38bdf8 31%, #0369a1 64%, #082f49 100%); }
#main .gi .ra--fishing .rf-hero__sun { position: absolute; right: 9%; top: 15%; width: 30px; height: 30px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 0 10px rgba(253, 230, 138, .3), 0 0 40px 18px rgba(253, 230, 138, .45); }
#main .gi .ra--fishing .rf-hero__sea { position: absolute; left: 0; right: 0; top: 30%; height: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 18px, transparent 18px 36px); opacity: .55;
    animation: rf-wave 3s linear infinite; }
@keyframes rf-wave { to { background-position: 72px 0; } }
#main .gi .ra--fishing .rf-hero__boat { position: absolute; left: 24%; top: calc(30% - 22px); width: 74px; height: 22px; border-radius: 0 0 26px 26px; background: linear-gradient(#b45309, #78350f);
    box-shadow: inset 0 3px 0 #fef3c7; animation: rf-bob 2.4s ease-in-out infinite; }
@keyframes rf-bob { 50% { transform: translateY(3px) rotate(-2deg); } }
#main .gi .ra--fishing .rf-hero__rod { position: absolute; left: 40px; top: -30px; width: 46px; height: 3px; border-radius: 2px; background: #78350f; transform: rotate(-24deg); transform-origin: 0 50%; }
#main .gi .ra--fishing .rf-hero__line { position: absolute; left: 82px; top: -48px; width: 1.5px; height: 40px; background: rgba(255, 255, 255, .85); transform-origin: 50% 0; animation: rf-line 4s ease-in-out infinite; }
#main .gi .ra--fishing .rf-hero__hook { position: absolute; left: 74px; top: -16px; font: 900 34px/1 Georgia, serif; color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, .8); animation: rf-hook 4s ease-in-out infinite; }
@keyframes rf-line { 0%, 10% { height: 40px; } 45%, 62% { height: 128px; } 90%, 100% { height: 40px; } }
@keyframes rf-hook { 0%, 10% { transform: translateY(0); } 45%, 62% { transform: translateY(88px); } 90%, 100% { transform: translateY(0); } }
#main .gi .ra--fishing .rf-hero__fish { position: absolute; display: grid; place-items: center; height: 30px; padding: 0 22px 0 14px; border-radius: 60% 40% 40% 60% / 50%; color: #0f172a;
    background: linear-gradient(#fde68a, #f59e0b); box-shadow: 0 6px 14px -6px rgba(2, 6, 23, .6); }
#main .gi .ra--fishing .rf-hero__fish::after { content: ""; position: absolute; right: -14px; top: 5px; border: 10px solid transparent; border-left: 16px solid #f59e0b; }
#main .gi .ra--fishing .rf-hero__fish em { font-weight: 900; font-size: 12px; line-height: 1; font-style: normal; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .9); }
#main .gi .ra--fishing .rf-hero__fish--a { left: 8%; top: 46%; animation: rf-swim 7s ease-in-out infinite; }
#main .gi .ra--fishing .rf-hero__fish--b { left: 52%; top: 62%; background: linear-gradient(#c4b5fd, #7c3aed); animation: rf-swim 8s ease-in-out -2s infinite reverse; }
#main .gi .ra--fishing .rf-hero__fish--b::after { border-left-color: #7c3aed; }
#main .gi .ra--fishing .rf-hero__fish--c { left: 22%; top: 80%; background: linear-gradient(#fda4af, #e11d48); animation: rf-swim 6s ease-in-out -1s infinite; }
#main .gi .ra--fishing .rf-hero__fish--c::after { border-left-color: #e11d48; }
@keyframes rf-swim { 50% { transform: translateX(34px) translateY(-4px); } }
#main .gi .ra--fishing .rf-hero__sent { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); padding: 4px 12px; border-radius: 10px; background: rgba(2, 6, 23, .78); color: #fff;
    font-weight: 800; font-size: 13px; line-height: 1.4; white-space: nowrap; }
#main .gi .ra--fishing .rf-hero__sent b { color: #fcd34d; font-size: 1.15em; }

/* 한 판: 상황 · 문장 · 쉼표 자리 · 묻는 말 */
#main .gi .ra--fishing .ra-q { min-height: 118px; }        /* 문제 ↔ 답 · 까닭으로 바뀔 때 판이 덜 움직이게 */
#main .gi .ra--fishing .rf-ctx { display: inline-block; justify-self: center; margin-bottom: 2px; padding: 2px 10px; border-radius: 999px; background: rgba(125, 211, 252, .16); color: #bae6fd;
    font-size: 13.5px; font-weight: 700; }
#main .gi .ra--fishing .rf-ask { line-height: 1.7; }
#main .gi .ra--fishing .rf-ask .rf-spot { display: inline-block; width: 12px; height: 12px; margin: 0 3px 0 1px; border-radius: 50%; vertical-align: -1px; background: rgba(252, 211, 77, .25);
    box-shadow: inset 0 0 0 2px rgba(252, 211, 77, .85); animation: rf-spot 1.4s ease-in-out infinite; }
@keyframes rf-spot { 50% { box-shadow: inset 0 0 0 2px #fcd34d, 0 0 10px rgba(252, 211, 77, .8); } }
#main .gi .ra--fishing .rf-ask .rf-mark { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin: 0 2px; border-radius: 999px; font-style: normal; font-size: 14px; vertical-align: 1px;
    color: #fcd34d; box-shadow: inset 0 0 0 1.5px rgba(252, 211, 77, .65); }
#main .gi .ra--fishing .rf-ask u { text-decoration: none; padding: 0 6px; border-radius: 6px; background: rgba(134, 239, 172, .22); color: #bbf7d0; }
#main .gi .ra--fishing .rf-ask u.rf-comma, #main .gi .ra--fishing .rf-ask mark.rf-comma { padding: 0 3px; font-size: 1.25em; line-height: 1; animation: rf-drop .5s cubic-bezier(.2, 1.6, .4, 1); }
#main .gi .ra--fishing .rf-ask mark.is-bad { background: rgba(248, 113, 113, .25); color: #fecaca; border: 0; }
@keyframes rf-drop { from { transform: translateY(-16px) scale(1.6); opacity: 0; } }
#main .gi .ra--fishing .rf-q { color: #fde68a; font-weight: 800; }
#main .gi .ra--fishing .rf-q small { color: rgba(255, 255, 255, .6); font-size: 13px; }
#main .gi .ra--fishing .rf-q b { padding: 0 6px; border-radius: 6px; background: rgba(134, 239, 172, .2); color: #bbf7d0; }
#main .gi .ra--fishing .rf-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; color: #e2e8f0; }
#main .gi .ra--fishing .rf-casts { display: inline-flex; align-items: baseline; gap: 3px; }
#main .gi .ra--fishing .rf-casts b { color: var(--ra-accent); font-size: 15px; }
#main .gi .ra--fishing .rf-castbtn { min-width: 110px; }
#main .gi .ra--fishing .rf-castbtn:active { background: #0369a1; }

/* 카드 · 결과 */
#main .gi .ra--fishing .rf-sent u.rf-comma, #main .gi .ra--fishing .rf-mine u.rf-comma, #main .gi .ra--fishing .rf-mine mark.rf-comma { padding: 0 4px 0 1px; font-size: 1.2em; }
#main .gi .ra--fishing .rf-mine__tag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 6px; background: #fee2e2; color: #991b1b; font-weight: 800; }
#main .gi .ra--fishing .rf-sent__mean { display: block; margin-top: 4px; font-size: .88em; font-weight: 700; color: #334155; }
#main .gi .ra--fishing .rf-sent__mean small { margin-right: 6px; color: #64748b; font-weight: 600; }
#main .gi .ra--fishing .rf-sent__mean b { padding: 0 6px; border-radius: 6px; background: #dcfce7; color: #14532d; }
#main .gi .ra--fishing .rf-mine mark { padding: 0 4px; border-radius: 6px; background: #fee2e2; color: #991b1b; }
@media (max-width: 760px) {
    #main .gi .ra--fishing .ra-q { min-height: 136px; }
    #main .gi .ra--fishing .rf-hero__sent { font-size: 11.5px; }
    #main .gi .ra--fishing .rf-castbtn { min-width: 0; }
    #main .gi .ra--fishing .rf-ctx { font-size: 12.5px; }
}
