/* Feedback — universe page, form uplink, sci-fi thanks post, rocket return */

html:has(.page-feedback) {
    scroll-behavior: auto;
}

.page-feedback {
    background: transparent;
    color: #f4f7fb;
}

.page-feedback .site-main {
    overflow: visible;
    background: transparent;
    min-height: 70vh;
}

.page-feedback #universe {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    background: var(--bg);
}

.page-feedback .universe-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 42% at 50% 28%, rgba(37, 99, 235, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 35% at 18% 72%, rgba(56, 189, 248, 0.12), transparent 68%),
        radial-gradient(ellipse 36% 30% at 82% 64%, rgba(99, 102, 241, 0.1), transparent 65%);
    animation: fbUniverseDrift 28s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    opacity: 0.85;
}

@keyframes fbUniverseDrift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.07) translate(-1.5%, 1.2%); opacity: 0.95; }
}

.page-feedback .site-header {
    --header-bg: transparent;
    --header-blur: none;
}

.page-feedback .site-header.scrolled {
    --header-bg: rgba(13, 27, 46, 0.72);
    --header-blur: blur(12px);
}

.page-feedback .grain {
    z-index: 1;
}

.page-feedback.is-departing .site-header,
.page-feedback.is-departing .site-main,
.page-feedback.is-departing .site-footer {
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
    transform: translateY(-120vh);
    opacity: 0;
    pointer-events: none;
}

.fb-kicker {
    margin: 0 0 16px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(96, 165, 250, 0.9);
}

/* ── Hero ── */
.fb-hero {
    position: relative;
    z-index: 2;
    padding: calc(var(--header) + clamp(28px, 6vh, 56px)) var(--pad) clamp(28px, 5vh, 48px);
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.fb-hero-title {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    margin: 0 0 28px;
}

.fb-quote {
    margin: 0 auto;
    max-width: 46ch;
    border: none;
}

.fb-quote p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    line-height: 1.75;
    font-weight: 400;
}

/* ── Form card ── */
.fb-deck {
    position: relative;
    z-index: 2;
    padding: 0 var(--pad) clamp(48px, 8vh, 88px);
}

.fb-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 28px 28px 32px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(12, 28, 52, 0.92), rgba(8, 18, 36, 0.88));
    box-shadow:
        0 0 0 1px rgba(13, 27, 46, 0.6),
        0 24px 80px rgba(3, 10, 22, 0.45),
        0 0 60px rgba(37, 99, 235, 0.08);
}

.fb-sf-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #60a5fa;
    border-style: solid;
    pointer-events: none;
    z-index: 4;
}

.fb-sf-corner.c-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.fb-sf-corner.c-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.fb-sf-corner.c-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.fb-sf-corner.c-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.fb-sf-scan {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(96, 165, 250, 0.035) 3px,
        rgba(96, 165, 250, 0.035) 4px
    );
    mix-blend-mode: screen;
    opacity: 0.7;
}

.fb-sf-scan::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 36%;
    top: -36%;
    background: linear-gradient(to bottom, transparent, rgba(96, 165, 250, 0.1), transparent);
    animation: fbPanelScan 3.4s linear infinite;
}

@keyframes fbPanelScan {
    0% { top: -36%; }
    100% { top: 110%; }
}

.fb-card-head {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.18);
}

.fb-card-head h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.fb-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 52ch;
}

.fb-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fb-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fb-field label,
.fb-field legend {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.92);
}

.fb-field legend {
    padding: 0;
}

.fb-field input,
.fb-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 34, 68, 0.72);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.fb-field textarea {
    min-height: 132px;
    resize: vertical;
    padding-top: 16px;
}

.fb-field input::placeholder,
.fb-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.fb-field input:focus,
.fb-field textarea:focus {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 1px rgba(45, 114, 248, 0.45);
    background: rgba(26, 86, 219, 0.12);
}

.fb-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.fb-stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.fb-star {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: transform 0.2s var(--ease), background 0.2s;
}

.fb-star svg {
    width: 28px;
    height: 28px;
    fill: transparent;
    stroke: rgba(147, 197, 253, 0.55);
    stroke-width: 1.4;
    transition: fill 0.2s, stroke 0.2s, filter 0.2s, transform 0.2s;
}

.fb-stars input:checked + label svg,
.fb-stars input:checked ~ label svg {
    fill: #60a5fa;
    stroke: #93c5fd;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.65));
}

.fb-stars:hover label svg {
    fill: transparent;
    stroke: rgba(147, 197, 253, 0.55);
    filter: none;
}

.fb-stars label:hover svg,
.fb-stars label:hover ~ label svg {
    fill: #60a5fa;
    stroke: #93c5fd;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.65));
}

.fb-stars label:hover svg {
    transform: scale(1.08);
}

.fb-star:hover {
    background: rgba(37, 99, 235, 0.12);
}

.fb-rating-live {
    margin: 8px 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    min-height: 1.1em;
}

.fb-form-msg {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.fb-form-msg.is-error {
    color: #fca5a5;
}

.fb-form-msg[hidden] {
    display: none !important;
}

.fb-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    padding: 14px 0 12px;
    border: none;
    border-bottom: 1.5px solid rgba(96, 165, 250, 0.55);
    border-radius: 0;
    background: none;
    color: var(--light);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}

.fb-submit:hover:not(:disabled) {
    color: #fff;
    border-bottom-color: var(--light);
}

.fb-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* ── Thanks post ── */
.fb-post {
    position: relative;
    z-index: 2;
    padding: calc(var(--header) + clamp(20px, 4vh, 40px)) var(--pad) clamp(48px, 8vh, 88px);
}

.fb-post[hidden],
.fb-hero[hidden],
.fb-deck[hidden] {
    display: none !important;
}

.fb-plaque {
    position: relative;
    isolation: isolate;
    overflow: visible;
    width: min(680px, 100%);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px) clamp(40px, 6vw, 56px);
    text-align: center;
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 4px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(12, 28, 52, 0.94), rgba(6, 14, 28, 0.92));
    box-shadow:
        0 0 80px rgba(37, 99, 235, 0.16),
        0 30px 80px rgba(3, 10, 22, 0.5);
}

.fb-plaque-orbit {
    position: absolute;
    left: 50%;
    top: 18%;
    width: min(280px, 70%);
    aspect-ratio: 1;
    transform: translate(-50%, -20%);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: fbOrbitSpin 22s linear infinite;
    box-shadow: inset 0 0 40px rgba(37, 99, 235, 0.08);
}

.fb-plaque-orbit::before,
.fb-plaque-orbit::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.fb-plaque-orbit::before {
    inset: 14%;
    animation: fbOrbitSpinInner 14s linear infinite reverse;
}

.fb-plaque-orbit::after {
    inset: 28%;
    border-color: rgba(96, 165, 250, 0.12);
}

@keyframes fbOrbitSpin {
    to { transform: translate(-50%, -20%) rotate(360deg); }
}

@keyframes fbOrbitSpinInner {
    to { transform: rotate(360deg); }
}

.fb-post-title {
    position: relative;
    z-index: 2;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    margin: 0 0 18px;
}

.fb-post-copy {
    position: relative;
    z-index: 2;
    margin: 0 auto 28px;
    max-width: 40ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.fb-post-stars {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.fb-post-stars span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    opacity: 0;
    transform: scale(0.4) translateY(8px);
}

.fb-post-stars span svg {
    width: 28px;
    height: 28px;
    fill: #60a5fa;
    stroke: #93c5fd;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.7));
}

.fb-post-stars span.is-empty svg {
    fill: transparent;
    filter: none;
    stroke: rgba(148, 163, 184, 0.4);
}

.fb-post.is-on .fb-post-stars span {
    animation: fbStarPop 0.5s var(--ease) forwards;
}

.fb-post.is-on .fb-post-stars span:nth-child(1) { animation-delay: 0.15s; }
.fb-post.is-on .fb-post-stars span:nth-child(2) { animation-delay: 0.25s; }
.fb-post.is-on .fb-post-stars span:nth-child(3) { animation-delay: 0.35s; }
.fb-post.is-on .fb-post-stars span:nth-child(4) { animation-delay: 0.45s; }
.fb-post.is-on .fb-post-stars span:nth-child(5) { animation-delay: 0.55s; }

@keyframes fbStarPop {
    to { opacity: 1; transform: none; }
}

.fb-post-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(280px, 80%);
    margin: 0 auto 36px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: #93c5fd;
}

.fb-post-bar i {
    flex: 1;
    height: 2px;
    background: rgba(96, 165, 250, 0.18);
    overflow: hidden;
    position: relative;
}

.fb-post-bar i::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, var(--blue), #7dd3fc);
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.7);
}

.fb-post.is-on .fb-post-bar i::after {
    animation: fbBarFill 1.1s var(--ease) 0.2s forwards;
}

@keyframes fbBarFill {
    to { width: 100%; }
}

/* ── Rocket return ── */
.fb-rocket {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 8px auto 0;
    padding: 8px 10px 4px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: rgba(8, 18, 36, 0.55);
    color: #fff;
    overflow: visible;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, padding 0.35s var(--ease);
}

.fb-rocket-copy {
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    opacity: 0;
    transform: translate(12px, -50%);
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.35s var(--ease), transform 0.4s var(--ease);
}

.fb-rocket-copy em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(96, 165, 250, 0.85);
}

.fb-rocket-copy strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.fb-rocket-unit {
    position: relative;
    width: 72px;
    height: 108px;
    display: grid;
    place-items: start center;
}

.fb-rocket-ship {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 84px;
    overflow: visible;
    filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.35));
    transition: transform 0.35s var(--ease), filter 0.35s;
}

.fb-rocket-ship .fb-body {
    fill: url(#fbHull);
    stroke: rgba(224, 242, 254, 0.55);
    stroke-width: 0.8;
}

.fb-rocket-ship .fb-fin {
    fill: #1e3a8a;
    stroke: #93c5fd;
    stroke-width: 0.7;
}

.fb-rocket-ship .fb-window {
    fill: #0ea5e9;
    stroke: #e0f2fe;
    stroke-width: 1;
}

.fb-rocket-ship .fb-window-in {
    fill: #e0f2fe;
    opacity: 0.85;
}

.fb-rocket-ship .fb-stripe {
    fill: #38bdf8;
}

.fb-rocket-plume {
    position: absolute;
    left: 50%;
    top: 78px;
    width: 22px;
    height: 36px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.fb-rocket-plume i {
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 18px;
    border-radius: 50% 50% 40% 40%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 0%, #fff 0%, #7dd3fc 28%, #f97316 62%, transparent 78%);
    filter: blur(0.4px);
    opacity: 0.15;
}

.fb-rocket-plume i:nth-child(1) { width: 14px; height: 22px; }
.fb-rocket-plume i:nth-child(2) { width: 9px; height: 28px; left: 38%; }
.fb-rocket-plume i:nth-child(3) { width: 8px; height: 24px; left: 62%; }

.fb-rocket:hover,
.fb-rocket:focus-visible,
.fb-rocket.is-hot {
    border-color: rgba(125, 211, 252, 0.7);
    background: rgba(12, 32, 64, 0.82);
    box-shadow: 0 0 28px rgba(37, 99, 235, 0.28);
}

.fb-rocket:hover .fb-rocket-copy,
.fb-rocket:focus-visible .fb-rocket-copy,
.fb-rocket.is-hot .fb-rocket-copy {
    opacity: 1;
    transform: translate(0, -50%);
}

.fb-rocket:hover .fb-rocket-ship,
.fb-rocket:focus-visible .fb-rocket-ship,
.fb-rocket.is-hot .fb-rocket-ship {
    transform: translateY(-6px);
    filter: drop-shadow(0 10px 18px rgba(56, 189, 248, 0.45));
}

.fb-rocket:hover .fb-rocket-plume,
.fb-rocket:focus-visible .fb-rocket-plume,
.fb-rocket.is-hot .fb-rocket-plume {
    opacity: 1;
}

.fb-rocket:hover .fb-rocket-plume i,
.fb-rocket:focus-visible .fb-rocket-plume i,
.fb-rocket.is-hot .fb-rocket-plume i {
    animation: fbFlame 0.22s ease-in-out infinite alternate;
}

.fb-rocket:hover .fb-rocket-plume i:nth-child(2),
.fb-rocket:focus-visible .fb-rocket-plume i:nth-child(2),
.fb-rocket.is-hot .fb-rocket-plume i:nth-child(2) {
    animation-delay: 0.06s;
}

.fb-rocket:hover .fb-rocket-plume i:nth-child(3),
.fb-rocket:focus-visible .fb-rocket-plume i:nth-child(3),
.fb-rocket.is-hot .fb-rocket-plume i:nth-child(3) {
    animation-delay: 0.12s;
}

@keyframes fbFlame {
    from { transform: translateX(-50%) scaleY(0.82) translateY(0); opacity: 0.7; }
    to { transform: translateX(-50%) scaleY(1.18) translateY(4px); opacity: 1; }
}

.fb-rocket.is-launching {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.fb-rocket.is-launching .fb-rocket-copy {
    opacity: 0;
}

.fb-rocket.is-launching .fb-rocket-plume {
    opacity: 1;
}

.fb-rocket.is-launching .fb-rocket-plume i {
    height: 48px;
    animation: fbFlame 0.12s ease-in-out infinite alternate;
}

.fb-rocket.is-launching .fb-rocket-ship {
    animation: fbLaunch 0.7s cubic-bezier(0.22, 0.1, 0.3, 1) forwards;
}

@keyframes fbLaunch {
    0% { transform: translateY(-6px) scale(1); }
    18% { transform: translateY(6px) scale(0.96); }
    100% { transform: translateY(-120vh) scale(1.15); filter: drop-shadow(0 0 24px rgba(125, 211, 252, 0.8)); }
}

html.is-touch .fb-rocket {
    gap: 14px;
    padding: 10px 10px 8px 18px;
}

html.is-touch .fb-rocket-copy {
    position: static;
    transform: none;
    opacity: 1;
    max-width: none;
}

html.is-touch .fb-rocket-plume {
    opacity: 0.55;
}

html.is-touch .fb-rocket-plume i {
    animation: fbFlame 0.28s ease-in-out infinite alternate;
}

@media (max-width: 700px) {
    .fb-row {
        grid-template-columns: 1fr;
    }

    .fb-card {
        padding: 22px 18px 24px;
    }

    .fb-star {
        width: 40px;
        height: 40px;
    }

    .fb-rocket-copy {
        right: auto;
        left: 50%;
        top: auto;
        bottom: calc(100% + 10px);
        align-items: center;
        text-align: center;
        transform: translate(-50%, 8px);
    }

    .fb-rocket:hover .fb-rocket-copy,
    .fb-rocket:focus-visible .fb-rocket-copy,
    .fb-rocket.is-hot .fb-rocket-copy {
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-feedback .universe-glow,
    .fb-sf-scan::after,
    .fb-plaque-orbit,
    .fb-plaque-orbit::before,
    .fb-rocket-plume i {
        animation: none;
    }

    .page-feedback.is-departing .site-header,
    .page-feedback.is-departing .site-main,
    .page-feedback.is-departing .site-footer {
        transition: none;
    }

    .fb-rocket.is-launching .fb-rocket-ship {
        animation: none;
    }
}
