@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Luckiest+Guy&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&display=swap');

/* ---------- Palette ---------- */
:root {
    --ink: #0f2533;
    /* derived from 133C55 for text */
    --p1: #133C55;
    /* deep navy */
    --p2: #386FA4;
    /* blue */
    --p3: #59A5D8;
    /* sky */
    --p4: #84D2F6;
    /* light */
    --p5: #91E5F6;
    /* lightest */
    --card: #ffffffee;
    /* glass card */
    --shadow: 0 20px 60px rgba(19, 60, 85, .18);
    --radius: 22px;
    --glass-bg: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-inner: rgba(255, 255, 255, 0.18);
    /* subtle inner glow */
    --glass-shadow-strong: 0 24px 80px rgba(19, 60, 85, 0.25), 0 2px 6px rgba(19, 60, 85, 0.06);
}

/* ---------- Base ---------- */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

.logo p {
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
}

h1 {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: <700>;
    font-style: normal;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(160deg, var(--p5), var(--p4));
    overflow-x: hidden;
}

p {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

button,
a {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: .8rem;
}

/* Background ornaments */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden
}

.blob {
    position: absolute;
    filter: blur(40px);
    opacity: .55;
    transform: translateZ(0);
}

.blob-a {
    width: 48vmax;
    height: 48vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--p3), var(--p2));
    left: -10vmax;
    top: -12vmax;
    animation: floatA 18s ease-in-out infinite alternate;
}

.blob-b {
    width: 44vmax;
    height: 44vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, var(--p4), var(--p2));
    right: -12vmax;
    bottom: -16vmax;
    animation: floatB 22s ease-in-out infinite alternate;
}

@keyframes floatA {
    to {
        transform: translate(4vmax, 3vmax) scale(1.05);
    }
}

@keyframes floatB {
    to {
        transform: translate(-3vmax, -2vmax) scale(1.03);
    }
}

.grain {
    position: absolute;
    inset: 0;
    opacity: .08;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' opacity='0.6' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' /></svg>");
    mix-blend-mode: multiply;
    z-index: -1;
}

/* ---------- Topbar ---------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: linear-gradient(to bottom, rgba(19, 60, 85, 0.06), rgba(19, 60, 85, 0.00));
}

.logo {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-family: "Nunito", sans-serif;
    letter-spacing: .2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.nav {
    display: flex;
    gap: 12px
}

.nav-link {
    color: var(--ink);
    /* darker ink color */
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 12px;

    /* glass button look */
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: background .2s ease, transform .1s ease, color .2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    color: var(--p1);
    /* deep navy on hover for clarity */
}

/* ---------- Shell ---------- */
.shell {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

/* ---------- Card (clean liquid glass) ---------- */
.card {
    width: min(980px, 96vw);
    position: relative;
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 44px);

    /* cleaner, non-glare glass */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.20));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-strong);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);

    /* prevent blending from ancestors */
    isolation: isolate;
}

/* subtle, static edge polish (no animation) */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 1px 0 var(--glass-inner),
        /* top inner highlight */
        inset 0 -1px 0 rgba(255, 255, 255, 0.10);
    /* bottom inner line */
}

/* Fallback for no backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .card {
        background: rgba(255, 255, 255, 0.92);
    }
}

/* optional moving glare for a “liquid” feel; very subtle */
.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* bleed slightly to avoid hard edge */
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 60% at -10% -10%,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.12) 25%,
            rgba(255, 255, 255, 0.06) 45%,
            rgba(255, 255, 255, 0) 60%);
    opacity: 0.7;
    mix-blend-mode: screen;
    animation: glassGlare 14s ease-in-out infinite alternate;
}

@keyframes glassGlare {
    0% {
        transform: translate3d(0, 0, 0) rotate(0.001deg);
    }

    100% {
        transform: translate3d(4%, 2%, 0) rotate(0.001deg);
    }
}

/* Fallback when backdrop-filter isn’t available: make the card more opaque */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .card {
        background: rgba(255, 255, 255, 0.86);
    }

    .card::before {
        display: none;
    }
}

.title {
    font-size: clamp(28px, 3vw, 42px);
    margin: 0 0 6px 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0 0 24px 0;
    color: rgba(15, 37, 51, .75);
}

/* ---------- Choices ---------- */
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 760px) {
    .choices {
        grid-template-columns: 1fr;
    }
}

.choice {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(19, 60, 85, 0.08);
    backdrop-filter: blur(3px);
    /* light touch only */
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 6px 20px rgba(19, 60, 85, 0.10);
    border-radius: 18px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(19, 60, 85, .16);
    border-color: rgba(19, 60, 85, .16);
}

.choice:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(56, 111, 164, .35);
}

.choice-support {
    background: linear-gradient(180deg, rgba(132, 210, 246, .95), rgba(89, 165, 216, .1))
}

.choice-reflect {
    background: linear-gradient(180deg, rgba(132, 210, 246, .95), rgba(89, 165, 216, .1))
}

.choice .emoji {
    font-size: 28px;
    line-height: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(19, 60, 85, .06);
}

.choice .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.choice .text strong {
    font-size: 18px
}

.choice .text em {
    font-style: normal;
    opacity: .8;
    font-size: 13px
}

.choice .arrow {
    margin-left: auto;
    font-weight: 700;
    opacity: .5
}

/* ---------- Mini row ---------- */
.mini {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pill {
    appearance: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, var(--p2), var(--p3));
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(56, 111, 164, .28);
    transition: transform .12s ease, box-shadow .12s ease;
}

.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(56, 111, 164, .34)
}

.hint {
    color: rgba(15, 37, 51, .65)
}

kbd {
    background: #fff;
    border: 1px solid rgba(19, 60, 85, .12);
    padding: 0 6px;
    border-radius: 6px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .07);
}

/* ---------- Footer ---------- */
.foot {
    text-align: center;
    margin-top: 16px;
    color: rgba(15, 37, 51, .6);
}

.sw {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 3px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff
}

.sw1 {
    color: #fff;
    background: #133C55
}

.sw2 {
    color: #fff;
    background: #386FA4
}

.sw3 {
    color: #0b2a3a;
    background: #59A5D8
}

.sw4 {
    color: #0b2a3a;
    background: #84D2F6
}

.sw5 {
    color: #0b2a3a;
    background: #91E5F6
}

.blob {
    opacity: 0.45;
}

/* was 0.55 */
.grain {
    opacity: 0.06;
}

.blob {
    opacity: 0.45;
}

/* was 0.55 */
.grain {
    opacity: 0.06;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {

    .blob-a,
    .blob-b,
    .choice:hover,
    .pill:hover {
        animation: none;
        transform: none;
        transition: none;
    }
}