/*
 * The Lure Laboratory – Fishing Reading Catch
 * セレクターを #llrc-catch 以下に限定し、JIN / AFFINGER 等のテーマと干渉しません。
 */
#llrc-catch {
    --llrc-progress: 0%;
    --llrc-bottom: 0px;
    --llrc-reel-angle: 0deg;
    --llrc-net-y: 0px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--llrc-bottom) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    height: 72px;
    margin: 0;
    padding: 0;
    overflow: visible;
    z-index: 2147480000;
    box-sizing: border-box;
    pointer-events: none !important;
    isolation: isolate;
    background: transparent;
    font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: normal;
    transition: bottom .22s ease;
}

#llrc-catch *,
#llrc-catch *::before,
#llrc-catch *::after {
    box-sizing: border-box;
    pointer-events: none !important;
}

#llrc-catch svg {
    display: block;
    max-width: none;
    overflow: visible;
}

#llrc-catch .llrc-catch__line {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .67;
    filter: none;
}

#llrc-catch .llrc-catch__fish {
    position: absolute;
    z-index: 4;
    top: 37px;
    left: 18px;
    width: 50px;
    height: 31px;
    transform-origin: 50% 50%;
    will-change: transform, left;
    filter: drop-shadow(0 3px 3px rgba(3, 18, 24, .36));
}
#llrc-catch .llrc-catch__fish > svg {
    width: 100%;
    height: 100%;
}
#llrc-catch .llrc-catch__tail {
    transform-origin: 32px 53px;
    transform-box: view-box;
    animation: llrc-tail-swim 1.1s ease-in-out infinite alternate;
}
#llrc-catch[data-reeling="true"] .llrc-catch__tail {
    animation-duration: .23s;
}
#llrc-catch .llrc-catch__lure {
    animation: llrc-lure-flash 1.6s ease-in-out infinite;
}

#llrc-catch .llrc-catch__angler {
    position: absolute;
    z-index: 5;
    right: 6px;
    bottom: 1px;
    width: 104px;
    height: 70px;
    overflow: visible;
    filter: drop-shadow(0 3px 2px rgba(4, 18, 26, .12));
}
#llrc-catch .llrc-catch__angler > svg {
    width: 100%;
    height: 100%;
}
#llrc-catch .llrc-catch__net {
    opacity: 0;
    transform: translateY(calc(var(--llrc-net-y) + 5px)) scale(.80);
    transform-origin: 204px 112px;
    transition: transform .2s ease-out, opacity .2s ease-out;
}
#llrc-catch[data-stage="landing"] .llrc-catch__net,
#llrc-catch[data-stage="caught"] .llrc-catch__net {
    opacity: 1;
    transform: translateY(var(--llrc-net-y)) scale(1);
}
#llrc-catch .llrc-catch__reel {
    transform-box: view-box;
    transform-origin: 175px 105px;
    transform: rotate(var(--llrc-reel-angle));
    transition: transform .08s linear;
}
#llrc-catch[data-reeling="true"] .llrc-catch__angler-person {
    animation: llrc-angler-reel .28s ease-in-out infinite alternate;
}

#llrc-catch .llrc-catch__caught-message {
    position: absolute;
    z-index: 7;
    right: 84px;
    top: 5px;
    bottom: auto;
    padding: 3px 5px;
    border-radius: 3px;
    border: 1px solid rgba(38, 91, 98, .50);
    background: #091e27;
    color: #e7f1e9;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
    box-shadow: 0 3px 10px rgba(3, 22, 32, .26), inset 0 0 8px rgba(214, 121, 32, .13);
    opacity: 0;
    transform: translateY(8px) scale(.88);
    transition: opacity .18s, transform .3s cubic-bezier(.18, 1.3, .42, 1);
}
#llrc-catch[data-caught="true"] .llrc-catch__caught-message {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#llrc-catch .llrc-catch__track {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    overflow: visible;
    background: rgba(16, 53, 66, .22);
    box-shadow: none;
}
#llrc-catch .llrc-catch__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--llrc-progress);
    background: linear-gradient(90deg, #0a5265 0%, #248d96 70%, #e7aa65 100%);
    box-shadow: none;
}
#llrc-catch .llrc-catch__glint {
    position: absolute;
    bottom: 0;
    left: var(--llrc-progress);
    width: 5px;
    height: 3px;
    border-radius: 50%;
    background: #d7ae76;
    box-shadow: 0 0 5px rgba(89, 145, 143, .45);
    transform: translateX(-50%);
}

@keyframes llrc-tail-swim {
    0%   { transform: rotate(-7deg); }
    100% { transform: rotate(8deg); }
}
@keyframes llrc-lure-flash {
    0%, 100% { opacity: .9; }
    50% { opacity: 1; filter: brightness(1.35); }
}
@keyframes llrc-angler-reel {
    from { transform: translateY(0); }
    to { transform: translateY(1.5px); }
}

@media (max-width: 600px) {
    #llrc-catch { height: 58px; }
    #llrc-catch .llrc-catch__fish { width: 39px; height: 25px; top: 30px; }
    #llrc-catch .llrc-catch__angler { width: 82px; height: 55px; right: 4px; bottom: 1px; }
    #llrc-catch .llrc-catch__caught-message {
        right: 70px;
        top: 3px;
        bottom: auto;
        padding: 3px 4px;
        font-size: 10px;
    }
    #llrc-catch .llrc-catch__track { height: 3px; }
    #llrc-catch .llrc-catch__glint { height: 3px; width: 4px; }
}
@media (max-width: 359px) {
    #llrc-catch { height: 54px; }
    #llrc-catch .llrc-catch__angler { width: 77px; height: 52px; right: 3px; bottom: 1px; }
    #llrc-catch .llrc-catch__fish { width: 35px; height: 23px; top: 28px; }
    #llrc-catch .llrc-catch__caught-message { right: 66px; top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    #llrc-catch,
    #llrc-catch *,
    #llrc-catch *::before,
    #llrc-catch *::after {
        animation: none !important;
        transition: none !important;
    }
}
