﻿.ajaxcompetition:has(.fpn-page),
.competitionactivity:has(.fpn-page),
.content:has(.fpn-page) {
    overflow: hidden;
    background: #071018;
}

.ajaxcompetition:has(.fpn-page) {
    height: 100% !important;
}

.fpn-page {.fpn-pitch
    position: relative;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e8eef5;
    background:
        radial-gradient(120% 70% at 50% -10%, #1a3348 0%, #0b1520 42%, #071018 100%);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    --fpn-p1: #e11d48;
    --fpn-p2: #2563eb;
    --fpn-p1-soft: #ff4d6d;
    --fpn-p2-soft: #60a5fa;
}

.fpn-top {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 6px;
    flex-shrink: 0;
}

.fpn-page .fpn-top__back {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: block;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.94);
    background-size: 14px auto;
    background-position: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.fpn-top__title {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.fpn-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(232, 238, 245, 0.55);
}

.fpn-name {
    font-size: 1.08rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.fpn-restart {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: #042f2e;
    background: #5eead4;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fpn-restart .ti { font-size: 1.15rem; line-height: 1; }

.fpn-board {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 0 12px 8px;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(8, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.fpn-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    opacity: 0.45;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.fpn-side.is-p1 { align-items: flex-start; }
.fpn-side.is-p2 { align-items: flex-end; }
.fpn-side.is-on {
    opacity: 1;
    transform: translateY(-1px);
}

.fpn-side__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    padding: 4px 9px 3px;
    border-radius: 999px;
    color: #fff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fpn-side.is-p1 .fpn-side__tag {
    background: var(--fpn-p1);
    box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.45), 0 6px 14px rgba(225, 29, 72, 0.28);
    transition: box-shadow 0.45s ease;
}
.fpn-side.is-p2 .fpn-side__tag {
    background: var(--fpn-p2);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.45), 0 6px 14px rgba(37, 99, 235, 0.28);
    transition: box-shadow 0.45s ease;
}
.fpn-side.is-on.is-p1 .fpn-side__tag { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(225, 29, 72, 0.55); }
.fpn-side.is-on.is-p2 .fpn-side__tag { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(37, 99, 235, 0.55); }

.fpn-side__dots {
    display: flex;
    gap: 4px;
}

.fpn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fpn-dot.is-goal { background: #3ddc84; box-shadow: 0 0 8px rgba(61, 220, 132, 0.55); }
.fpn-dot.is-miss { background: #fb7185; }

.fpn-score {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.18);
}

.fpn-pitch {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.4);
    background: #07140c;
}

.fpn-pitch canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    transform: none;
    filter: none;
    -webkit-filter: none;
}

.fpn-flood {
    position: absolute;
    top: -8%;
    width: 46%;
    height: 42%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 244, 196, 0.12), transparent 68%);
    mix-blend-mode: screen;
}

.fpn-flood--l { left: -6%; }
.fpn-flood--r { right: -6%; }

.fpn-pitch.is-decisive::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 2px;
    box-sizing: border-box;
    border: 3px solid rgba(255, 100, 80, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 220, 180, 0.25),
        0 0 28px rgba(255, 70, 50, 0.45),
        inset 0 0 24px rgba(255, 50, 40, 0.18);
    animation: fpn-decisive-frame 1.05s ease-in-out infinite;
}

.fpn-pitch.is-decisive::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(120% 85% at 50% 100%, rgba(255, 40, 35, 0.28) 0%, transparent 58%),
        radial-gradient(90% 70% at 0% 50%, rgba(255, 80, 40, 0.22) 0%, transparent 55%),
        radial-gradient(90% 70% at 100% 50%, rgba(255, 80, 40, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 60, 50, 0.12) 0%, transparent 35%, transparent 65%, rgba(180, 20, 30, 0.2) 100%);
    animation: fpn-decisive-vignette 1.25s ease-in-out infinite;
}

@keyframes fpn-decisive-frame {
    0%, 100% {
        border-color: rgba(255, 95, 75, 0.5);
        box-shadow:
            0 0 0 1px rgba(255, 210, 160, 0.2),
            0 0 22px rgba(255, 60, 45, 0.38),
            inset 0 0 18px rgba(255, 45, 40, 0.14);
    }
    50% {
        border-color: rgba(255, 160, 100, 0.92);
        box-shadow:
            0 0 0 2px rgba(255, 240, 200, 0.45),
            0 0 42px rgba(255, 90, 50, 0.72),
            0 0 80px rgba(255, 40, 30, 0.28),
            inset 0 0 36px rgba(255, 70, 45, 0.32);
    }
}

@keyframes fpn-decisive-vignette {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

.fpn-decisive {
    position: absolute;
    left: 50%;
    top: 2%;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 94%;
    text-align: center;
}

.fpn-decisive.is-on {
    display: flex;
    animation: fpn-decisive-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fpn-decisive__text {
    display: block;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    font-weight: 900;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow:
        0 0 10px rgba(255, 220, 120, 1),
        0 0 22px rgba(255, 120, 50, 0.85),
        0 0 36px rgba(255, 60, 40, 0.45),
        0 2px 0 rgba(0, 0, 0, 0.95),
        0 4px 14px rgba(0, 0, 0, 0.75);
    animation: fpn-decisive-text-glow 1.15s ease-in-out infinite;
}

@keyframes fpn-decisive-text-glow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(255, 210, 100, 0.9),
            0 0 18px rgba(255, 110, 50, 0.7),
            0 2px 0 rgba(0, 0, 0, 0.95),
            0 4px 12px rgba(0, 0, 0, 0.7);
    }
    50% {
        text-shadow:
            0 0 14px rgba(255, 240, 160, 1),
            0 0 28px rgba(255, 140, 60, 0.95),
            0 0 44px rgba(255, 70, 40, 0.55),
            0 2px 0 rgba(0, 0, 0, 0.95),
            0 4px 16px rgba(0, 0, 0, 0.8);
    }
}

.fpn-decisive__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
    animation: fpn-decisive-pulse 1.1s ease-in-out infinite;
}

@keyframes fpn-decisive-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fpn-decisive-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.fpn-wind {
    position: absolute;
    left: 10px;
    right: auto;
    top: 72%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 4;
    pointer-events: none;
    display: none;
    width: min(96px, 30vw);
    max-width: 96px;
}

.fpn-wind.is-on {
    display: block;
    animation: fpn-wind-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fpn-wind__glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(145deg, rgba(12, 28, 44, 0.88), rgba(8, 18, 30, 0.82));
    border: 1px solid rgba(186, 230, 253, 0.22);
    border-radius: 14px;
    padding: 8px 9px 9px;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.fpn-wind__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.fpn-wind__icon {
    font-size: 1.15rem;
    color: #7dd3fc;
    filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.55));
}

.fpn-wind__label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #e0f2fe;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.fpn-wind__track {
    position: relative;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fpn-wind__flow {
    position: absolute;
    top: 50%;
    left: -40%;
    width: 38%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.95), transparent);
    opacity: 0.85;
    animation: fpn-wind-stream-r calc(var(--fpn-wind-pace, 2.85) * 1s) linear infinite;
}

.fpn-wind__flow--2 {
    top: 35%;
    width: 28%;
    opacity: 0.55;
    animation-duration: calc(var(--fpn-wind-pace, 2.85) * 1.18s);
    animation-delay: -0.85s;
}

.fpn-wind__flow--3 {
    top: 68%;
    width: 32%;
    opacity: 0.65;
    animation-duration: calc(var(--fpn-wind-pace, 2.85) * 1.08s);
    animation-delay: -1.2s;
}

.fpn-wind.is-l .fpn-wind__flow {
    animation-name: fpn-wind-stream-l;
}

.fpn-wind.is-l .fpn-wind__icon {
    transform: scaleX(-1);
}

.fpn-wind.is-calm .fpn-wind__flow {
    opacity: 0.25;
}

.fpn-wind.is-mild .fpn-wind__flow {
    opacity: 0.55;
}

.fpn-wind.is-med .fpn-wind__flow {
    opacity: 0.78;
}

.fpn-wind.is-strong .fpn-wind__flow {
    opacity: 1;
    height: 4px;
    margin-top: -2px;
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.65);
}

.fpn-wind.is-strong .fpn-wind__glass {
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(56, 189, 248, 0.18);
}

@keyframes fpn-wind-in {
    from { opacity: 0; transform: translateY(calc(-50% - 10px)) scale(0.96); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes fpn-wind-stream-r {
    from { transform: translateX(0); }
    to { transform: translateX(320%); }
}

@keyframes fpn-wind-stream-l {
    from { transform: translateX(320%); }
    to { transform: translateX(0); }
}

.fpn-stamp {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
    font-size: clamp(2.4rem, 14vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow:
        0 0 24px rgba(61, 220, 132, 0.75),
        0 8px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    z-index: 3;
}

.fpn-stamp.is-goal {
    color: #d8ffe8;
    animation: fpn-stamp-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fpn-stamp.is-save {
    color: #dbeafe;
    text-shadow: 0 0 24px rgba(125, 211, 252, 0.7), 0 8px 0 rgba(0, 0, 0, 0.25);
    animation: fpn-stamp-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fpn-stamp.is-post {
    color: #ffe08a;
    text-shadow: 0 0 24px rgba(255, 222, 1, 0.7), 0 8px 0 rgba(0, 0, 0, 0.25);
    animation: fpn-stamp-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fpn-stamp.is-miss {
    color: #ffe4e6;
    text-shadow: 0 0 24px rgba(251, 113, 133, 0.55), 0 8px 0 rgba(0, 0, 0, 0.25);
    animation: fpn-stamp-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fpn-stamp-in {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.45) rotate(-8deg); }
    18% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(-2deg); }
    55% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -58%) scale(1.08) rotate(0deg); }
}

.fpn-switch {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}
.fpn-switch.is-on { animation: fpn-switch-veil 0.88s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fpn-switch__veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, rgba(10, 16, 26, 0.22) 0%, rgba(4, 8, 14, 0.78) 100%);
}
.fpn-switch__wipe {
    position: absolute;
    top: -22%;
    bottom: -22%;
    left: -34%;
    width: 62%;
    background: linear-gradient(102deg,
        transparent 0%,
        rgba(255, 255, 255, 0.045) 34%,
        rgba(255, 255, 255, 0.2) 47%,
        rgba(8, 14, 22, 0.5) 52%,
        rgba(255, 255, 255, 0.08) 62%,
        transparent 100%);
    transform: translateX(-90%);
    filter: blur(0.4px);
}
.fpn-switch.is-on .fpn-switch__wipe {
    animation: fpn-switch-wipe 0.88s cubic-bezier(0.22, 0.82, 0.28, 1) both;
}
@keyframes fpn-switch-veil {
    0% { opacity: 0; }
    16% { opacity: 1; }
    48% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes fpn-switch-wipe {
    from { transform: translateX(-90%); }
    to { transform: translateX(230%); }
}

.fpn-pitch.is-switch canvas {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.fpn-call {
    position: absolute;
    left: 50%;
    top: 16%;
    z-index: 6;
    pointer-events: none;
    min-width: min(86%, 320px);
    padding: 14px 18px 15px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.88), rgba(8, 10, 16, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.86);
}
.fpn-call.is-on { animation: fpn-call-in 0.48s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fpn-call.is-out { animation: fpn-call-out 0.32s ease both; }
.fpn-call.is-p1 { box-shadow: 0 0 0 2px var(--fpn-p1), 0 18px 40px rgba(225, 29, 72, 0.28); }
.fpn-call.is-p2 { box-shadow: 0 0 0 2px var(--fpn-p2), 0 18px 40px rgba(37, 99, 235, 0.28); }
.fpn-call__kicker {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(232, 238, 245, 0.62);
    margin-bottom: 4px;
}
.fpn-call__title {
    display: block;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.fpn-call.is-p1 .fpn-call__title { color: var(--fpn-p1-soft); text-shadow: 0 0 22px rgba(225, 29, 72, 0.55); }
.fpn-call.is-p2 .fpn-call__title { color: var(--fpn-p2-soft); text-shadow: 0 0 22px rgba(37, 99, 235, 0.55); }
.fpn-call__sub {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(232, 238, 245, 0.82);
}
@keyframes fpn-call-in {
    0% { opacity: 0; transform: translate(-50%, 18px) scale(0.72) skewX(6deg); }
    58% { opacity: 1; transform: translate(-50%, -4px) scale(1.04) skewX(-1deg); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1) skewX(0); }
}
@keyframes fpn-call-out {
    to { opacity: 0; transform: translate(-50%, -16px) scale(1.06); }
}

.fpn-tip {
    flex-shrink: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(232, 238, 245, 0.62);
    padding: 8px 12px 0;
    min-height: 1.4em;
}

.fpn-page.is-booting .fpn-board,
.fpn-page.is-booting .fpn-pitch,
.fpn-page.is-booting .fpn-tip {
    visibility: hidden;
}

.fpn-page.is-booting {
    pointer-events: none;
}

.fpn-page.is-booting .fpn-top {
    pointer-events: auto;
    z-index: 14;
}

.fpn-loader {
    position: absolute;
    inset: 0;
    z-index: 13;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(120% 70% at 50% -10%, #1a3348 0%, #0b1520 42%, #071018 100%);
}

.fpn-loader.is-on {
    display: flex;
}

.fpn-loader__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    border-radius: 18px;
    background: rgba(12, 18, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.fpn-loader__spin {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: fpn-loader-spin 0.75s linear infinite;
}

.fpn-loader__text {
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(232, 238, 245, 0.78);
    text-align: center;
}

@keyframes fpn-loader-spin {
    to { transform: rotate(360deg); }
}

.fpn-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 8, 14, 0.42);
    backdrop-filter: blur(8px);
}

.fpn-overlay.is-on { display: flex; }
.fpn-overlay.is-mode {
    background: rgba(4, 8, 14, 0.38);
    backdrop-filter: blur(6px);
}

.fpn-card {
    width: min(92%, 340px);
    text-align: center;
    padding: 22px 18px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(24, 34, 48, 0.96), rgba(10, 14, 22, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    animation: fpn-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fpn-card__kicker {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(232, 238, 245, 0.55);
    margin-bottom: 6px;
}

.fpn-card__title {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
}

.fpn-card__title.is-goal { color: #3ddc84; text-shadow: 0 0 18px rgba(61, 220, 132, 0.35); }
.fpn-card__title.is-save { color: #7dd3fc; }
.fpn-card__title.is-miss { color: #fb7185; }
.fpn-card__title.is-p1 { color: var(--fpn-p1-soft); }
.fpn-card__title.is-p2 { color: var(--fpn-p2-soft); }

.fpn-card__desc {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
    color: rgba(232, 238, 245, 0.72);
    margin-bottom: 14px;
}

.fpn-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 900;
    color: #042f2e;
    background: linear-gradient(180deg, #bffaf0, #5eead4);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.fpn-card__btn--ghost {
    margin-top: 8px;
    color: #e8eef5;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.fpn-modes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.fpn-mode {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    text-align: right;
    font: inherit;
    color: #e8eef5;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.fpn-mode:active { transform: scale(0.98); }
.fpn-mode.is-bot {
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.16), rgba(255, 255, 255, 0.04));
    border-color: rgba(94, 234, 212, 0.35);
}
.fpn-mode.is-hot {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(255, 255, 255, 0.04));
    border-color: rgba(37, 99, 235, 0.38);
}

.fpn-mode__top {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.fpn-mode__top .ti {
    font-size: 1.25rem;
    color: #5eead4;
}

.fpn-mode.is-hot .ti { color: var(--fpn-p2-soft); }

.fpn-mode strong {
    font-size: 0.98rem;
    font-weight: 900;
}

.fpn-mode span {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(232, 238, 245, 0.62);
}

@keyframes fpn-card-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fpn-card,
    .fpn-side,
    .fpn-restart,
    .fpn-stamp { animation: none !important; transition: none !important; }
    .fpn-stamp { opacity: 1; }
    .fpn-call, .fpn-call.is-on, .fpn-call.is-out { animation: none !important; opacity: 1; transform: translate(-50%, 0); }
}

.fgs-pn .fgs-top__spacer {
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.content:has(.fgs-page.fgs-pn-hub),
.ajaxcompetition:has(.fgs-page.fgs-pn-hub),
.competitionactivity:has(.fgs-page.fgs-pn-hub),
.content:has(.fgs-page.fgs-pn-ch),
.ajaxcompetition:has(.fgs-page.fgs-pn-ch),
.competitionactivity:has(.fgs-page.fgs-pn-ch) {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #0b1520;
}

.fgs-page.fgs-pn-hub,
.fgs-page.fgs-pn-ch {
    height: auto;
    min-height: 100%;
    overflow: visible;
}

.fpn-hub {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 10px 12px 8px;
}

.fgs-pn-hub .fpn-lbwrap {
    position: relative;
    z-index: 3;
    animation: fpn-card-in 0.52s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fgs-pn-hub .fpn-lbwrap.wc26-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 10px 28px;
    background: transparent;
    box-sizing: border-box;
}

.fpn-hubcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 18px;
    padding: 16px 14px 14px;
    text-align: right;
    font: inherit;
    color: #e8eef5;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, border-color 0.18s ease;
}

.fpn-hubcard:active { transform: scale(0.97); }
.fpn-hubcard.is-tour {
    cursor: pointer;
    border-color: rgba(56, 189, 248, 0.38);
    background: linear-gradient(165deg, rgba(56, 189, 248, 0.12) 0%, rgba(255, 255, 255, 0.05) 48%);
}
.fpn-hubcard.is-hot { border-color: rgba(253, 224, 71, 0.32); }
.fpn-hubcard__start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px 10px;
    font: inherit;
    font-weight: 900;
    font-size: 0.92rem;
    line-height: 1;
    color: #082f49;
    cursor: pointer;
    background: linear-gradient(180deg, #e0f2fe 0%, #38bdf8 55%, #0ea5e9 100%);
    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 0.14s ease, box-shadow 0.18s ease;
}
.fpn-hubcard__start .ti {
    font-size: 1.05rem;
    line-height: 1;
}
.fpn-hubcard__start:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.fpn-hubcard__start--stages {
    color: #e8eef5;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.fpn-hubcard__start--stages:active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.fpn-hubcard.is-tour:active:not(:has(.fpn-hubcard__start:active)) {
    transform: scale(0.98);
}
.fpn-hubcard__top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fpn-hubcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(125, 211, 252, 0.16);
    color: #7dd3fc;
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.22);
}
.fpn-hubcard.is-hot .fpn-hubcard__icon {
    color: #fde047;
    background: rgba(253, 224, 71, 0.14);
    box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.22);
}
.fpn-hubcard__icon .ti { font-size: 1.25rem; line-height: 1; }
.fpn-hubcard__copy { min-width: 0; flex: 1; }
.fpn-hubcard__name {
    display: block;
    font-weight: 900;
    font-size: 1.08rem;
    line-height: 1.2;
}
.fpn-hubcard__desc {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(232, 238, 245, 0.62);
}
.fpn-hubcard__prize {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fpn-hubcard__rwd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    padding: 3px 7px 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(232, 238, 245, 0.92);
}
.fpn-hubcard__rwd img {
    width: 15px;
    height: 15px;
    display: block;
    object-fit: contain;
}
.fpn-hubcard__foot {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.fpn-hubcard__track {
    display: block;
    flex: 1;
    min-width: 0;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.fpn-hubcard__track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #7dd3fc;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fpn-hubcard__prog {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
    color: rgba(232, 238, 245, 0.7);
}

.fpn-hubcard.is-ch {
    border-color: rgba(251, 146, 60, 0.38);
    text-align: right;
}
.fpn-hubcard.is-ch .fpn-hubcard__icon {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
}

.fpn-ch-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 12px 24px;
    padding-bottom: 12px;
}
.fpn-ch-item {
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 16px;
    padding: 12px 12px 10px;
    background: rgba(15, 23, 42, 0.55);
}
.fpn-ch-item.is-done {
    border-color: rgba(74, 222, 128, 0.28);
}
.fpn-ch-item.is-cooldown {
    border-color: rgba(251, 191, 36, 0.32);
}
.fpn-ch-item__timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.14);
}
.fpn-ch-item.is-cooldown .fpn-ch-item__timer-row {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.06);
}
.fpn-ch-item__timer-cap {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(232, 238, 245, 0.62);
    line-height: 1.35;
}
.fpn-ch-item__timer {
    flex-shrink: 0;
    font-size: 0.92rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: #fde68a;
}
.fpn-ch-item__timer.is-ready {
    color: #4ade80;
    font-size: 0.82rem;
}
.fpn-ch-item__timer.is-wait {
    color: #fde68a;
}
.fpn-ch-item__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.fpn-ch-item__num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}
.fpn-ch-item__copy {
    flex: 1;
    min-width: 0;
}
.fpn-ch-item__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #e8eef5;
    line-height: 1.35;
}
.fpn-ch-item__badge {
    display: inline-flex;
    align-items: center;
    vertical-align: -2px;
    margin-inline-start: 2px;
    color: #4ade80;
    line-height: 1;
}
.fpn-ch-item__badge .ti {
    font-size: 1rem;
}
.fpn-ch-item__timer-cap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.fpn-ch-item__timer-cap.is-ready {
    color: rgba(74, 222, 128, 0.85);
}
.fpn-ch-item__timer-cap.is-ready .fpn-ch-item__cap-icon {
    color: #4ade80;
}
.fpn-ch-item__cap-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1;
}
.fpn-ch-item__btn .ti {
    font-size: 0.85rem;
    line-height: 1;
    vertical-align: -1px;
}
.fpn-ch-item__btn.is-heart,
.fpn-ch-item__btn:not(.is-heart) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.fpn-ch-item__desc {
    margin-top: 4px;
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(232, 238, 245, 0.65);
}
.fpn-ch-item__coin {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fde68a;
}
.fpn-ch-item__coin img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.fpn-ch-item__foot {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.fpn-ch-item__btn {
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
    color: #052e16;
}
.fpn-ch-item__btn.is-heart {
    gap: 6px;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    color: #0f172a;
}
.fpn-ch-item__heart {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.fpn-ch-item__heart img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}
.fpn-ch-item__btn.is-muted {
    display: inline-block;
    background: rgba(148, 163, 184, 0.2);
    color: rgba(232, 238, 245, 0.5);
    cursor: default;
}
.fpn-ch-item__btn:active:not(.is-muted) {
    transform: scale(0.97);
}
