:root {
    --brand: #1d61d8;
    --brand-dark: #1e4fae;
    --accent: #f97316;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .875rem;
    line-height: 1;
    padding: .7rem 1.15rem;
    transition: all .18s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: #1d61d8; color: #fff; box-shadow: 0 10px 24px -12px rgba(29, 97, 216, .75); }
.btn-primary:hover { background: #1e4fae; }
.btn-accent { background: #f97316; color: #fff; box-shadow: 0 10px 24px -12px rgba(249, 115, 22, .75); }
.btn-accent:hover { background: #ea580c; }
.btn-ghost { background: #fff; color: #334155; border-color: #e2e8f0; }
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-danger:hover { background: #be123c; }
.btn-sm { padding: .5rem .85rem; font-size: .8rem; }
.btn-xs { padding: .38rem .65rem; font-size: .72rem; gap: .3rem; }
.btn-xs svg { width: .85rem; height: .85rem; }

.input, .select, .textarea {
    width: 100%;
    border-radius: .85rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: .65rem .85rem;
    font-size: .875rem;
    color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: #60b4fa;
    box-shadow: 0 0 0 3px rgba(96, 180, 250, .22);
}
.input.error, .select.error, .textarea.error {
    border-color: #fb7185;
    box-shadow: 0 0 0 3px rgba(251, 113, 133, .18);
}
.textarea { min-height: 6rem; resize: vertical; }

.label {
    display: block;
    margin-bottom: .4rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}
.hint { font-size: .75rem; color: #94a3b8; }
.field-error { color: #e11d48; font-size: .75rem; margin-top: .3rem; font-weight: 500; }

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px -32px rgba(15, 23, 42, .4);
}
.card-pad { padding: 1.25rem; }
@media (min-width: 640px) { .card-pad { padding: 1.5rem; } }

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 9999px;
    padding: .28rem .62rem;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 9999px;
    background: #f1f5f9;
    padding: .35rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th {
    background: #f8fafc;
    text-align: left;
    padding: .75rem 1rem;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
}
table.data td { padding: .75rem 1rem; border-top: 1px solid #f1f5f9; vertical-align: middle; }
table.data tbody tr:hover { background: #f8fafc; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 9999px;
    padding: .5rem .8rem;
    font-size: .875rem;
    font-weight: 600;
    color: #475569;
    transition: all .15s ease;
}
.nav-link svg { width: 1rem; height: 1rem; }
.nav-link:hover { background: #eff6ff; color: #1d61d8; }
.nav-link.active { background: #1d61d8; color: #fff; box-shadow: 0 10px 20px -12px rgba(29, 97, 216, .8); }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: .85rem;
    padding: .65rem .8rem;
    font-size: .875rem;
    font-weight: 600;
    color: #475569;
    transition: all .15s ease;
}
.sidebar-link svg { width: 1.1rem; height: 1.1rem; }
.sidebar-link:hover { background: #f1f5f9; color: #0f172a; }
.sidebar-link.active { background: #1d61d8; color: #fff; box-shadow: 0 12px 22px -14px rgba(29, 97, 216, .9); }

.stat-value {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.stat-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #94a3b8;
}

.hero-gradient {
    background:
        radial-gradient(900px 400px at 15% -10%, rgba(96, 180, 250, .55), transparent 60%),
        radial-gradient(700px 400px at 90% 10%, rgba(249, 115, 22, .4), transparent 55%),
        linear-gradient(135deg, #102a56 0%, #1d61d8 55%, #0e7fc4 100%);
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    border-radius: 1rem;
    padding: .8rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: opacity .3s ease;
}
.flash svg { width: 1.1rem; height: 1.1rem; margin-top: .05rem; flex-shrink: 0; }

.avatar-fallback {
    background: linear-gradient(135deg, #3b97f6, #1e4589);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    letter-spacing: .02em;
}

.rank-pill {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: .85rem;
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
}
.rank-pill.gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.rank-pill.silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-pill.bronze { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }

#crop-modal .crop-stage {
    background: #0f172a;
    border-radius: 1rem;
    overflow: hidden;
    max-height: 62vh;
}
#crop-modal .crop-stage img { display: block; max-width: 100%; }

.prose-season a { color: #1d61d8; }

@media print {
    .no-print { display: none !important; }
}

/* ==========================================================
   Public site — dark lagoon theme
   ========================================================== */
body.public-site {
    --pub-bg: #07100e;
    --pub-bg-soft: #0a1513;
    --pub-surface: #0d1a18;
    --pub-surface-2: #112421;
    --pub-line: rgba(213, 240, 232, .10);
    --pub-line-strong: rgba(213, 240, 232, .18);
    --pub-text: #e9f4ef;
    --pub-muted: #9db6ae;
    --pub-dim: #6f8d84;
    --pub-teal: #2ec4bb;
    --pub-teal-soft: #7fe6df;
    --pub-orange: #ff7a5c;

    background: var(--pub-bg);
    color: var(--pub-text);
    font-family: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.public-site .font-display,
.public-site .pub-display {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
}

.public-site .pub-display {
    line-height: .98;
    letter-spacing: -.035em;
}

.pub-shell {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) { .pub-shell { padding-inline: 1.5rem; } }

.pub-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--pub-line);
    background: rgba(7, 16, 14, .82);
    backdrop-filter: blur(18px);
}

.public-site .card {
    background: var(--pub-surface);
    border-color: var(--pub-line);
    border-radius: 1.75rem;
    box-shadow: 0 34px 80px -58px rgba(0, 0, 0, .9);
}

.public-site .btn-primary {
    background: var(--pub-teal);
    color: #04100e;
    box-shadow: 0 16px 34px -18px rgba(46, 196, 187, .8);
}
.public-site .btn-primary:hover { background: #46d6cd; }

.public-site .btn-accent {
    background: var(--pub-orange);
    color: #200b05;
    box-shadow: 0 16px 34px -18px rgba(255, 122, 92, .8);
}
.public-site .btn-accent:hover { background: #ff9177; }

.public-site .btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--pub-line-strong);
    color: var(--pub-text);
}
.public-site .btn-ghost:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(213, 240, 232, .34);
}

.public-site .btn-light {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
    color: #f0f7f3;
}
.public-site .btn-light:hover { background: rgba(255, 255, 255, .18); }

.public-site .nav-link { color: rgba(233, 244, 239, .64); }
.public-site .nav-link:hover { background: rgba(255, 255, 255, .06); color: var(--pub-text); }
.public-site .nav-link.active {
    background: var(--pub-teal);
    color: #04100e;
    box-shadow: 0 12px 26px -16px rgba(46, 196, 187, .9);
}

.public-site .hero-gradient {
    background:
        radial-gradient(900px 420px at 12% -15%, rgba(46, 196, 187, .4), transparent 60%),
        radial-gradient(700px 380px at 92% 5%, rgba(255, 122, 92, .28), transparent 55%),
        linear-gradient(135deg, #04100e 0%, #0b2a26 55%, #11433d 100%);
}

.public-site .avatar-fallback {
    background: linear-gradient(135deg, #2ec4bb, #0c3a36);
    color: #f0fffb;
}

.public-site .chip {
    background: rgba(255, 255, 255, .06);
    color: #b9cec7;
}

.public-site .table-wrap {
    border-color: var(--pub-line);
    border-radius: 1.5rem;
    background: var(--pub-surface);
}
.public-site table.data th { background: #0f201d; color: var(--pub-muted); }
.public-site table.data td { border-color: var(--pub-line); color: var(--pub-text); }
.public-site table.data tbody tr:hover { background: rgba(255, 255, 255, .03); }

.public-site .input,
.public-site .select,
.public-site .textarea {
    background: #0b1715;
    border-color: var(--pub-line-strong);
    border-radius: 1rem;
    color: var(--pub-text);
}
.public-site .input::placeholder,
.public-site .textarea::placeholder { color: var(--pub-dim); }
.public-site .input:focus,
.public-site .select:focus,
.public-site .textarea:focus {
    border-color: var(--pub-teal);
    box-shadow: 0 0 0 3px rgba(46, 196, 187, .18);
}

.public-site .stat-value { color: var(--pub-text); }
.public-site .rank-pill { background: rgba(255, 255, 255, .07); color: #c2d6d0; }

/* Utility remaps so legacy views follow the dark theme */
.public-site .text-slate-900,
.public-site .text-slate-800,
.public-site .text-slate-700,
.public-site .text-slate-600 { color: var(--pub-text); }
.public-site .text-slate-500 { color: var(--pub-muted); }
.public-site .text-slate-400 { color: var(--pub-dim); }
.public-site .text-slate-300 { color: #54706a; }

.public-site .bg-white,
.public-site .bg-slate-50 { background-color: var(--pub-surface); }
.public-site .bg-white\/70,
.public-site .bg-white\/80 { background-color: rgba(255, 255, 255, .05); }
.public-site .bg-slate-100 { background-color: rgba(255, 255, 255, .06); }
.public-site .bg-cream\/60 { background-color: rgba(255, 255, 255, .03); }
.public-site .bg-sand-50 { background-color: rgba(233, 189, 121, .10); }
.public-site .bg-orange-50\/50 { background-color: rgba(255, 122, 92, .12); }
.public-site .bg-brand-50,
.public-site .bg-brand-100 { background-color: rgba(46, 196, 187, .12); }
.public-site .bg-emerald-50,
.public-site .bg-emerald-100 { background-color: rgba(52, 211, 153, .14); }
.public-site .bg-emerald-50\/60 { background-color: rgba(52, 211, 153, .10); }
.public-site .bg-rose-50 { background-color: rgba(251, 113, 133, .14); }
.public-site .bg-sky-50 { background-color: rgba(56, 189, 248, .14); }
.public-site .bg-accent-50 { background-color: rgba(255, 122, 92, .12); }
.public-site .bg-amber-50 { background-color: rgba(251, 191, 36, .14); }
.public-site .bg-sky-100 { background-color: rgba(56, 189, 248, .14); }
.public-site .bg-amber-100 { background-color: rgba(251, 191, 36, .16); }
.public-site .bg-rose-100 { background-color: rgba(251, 113, 133, .16); }

.public-site .border-slate-100,
.public-site .border-slate-200 { border-color: var(--pub-line); }
.public-site .border-emerald-200 { border-color: rgba(110, 231, 183, .3); }
.public-site .border-rose-200 { border-color: rgba(253, 164, 175, .3); }
.public-site .border-amber-200 { border-color: rgba(252, 211, 77, .3); }
.public-site .border-sky-200 { border-color: rgba(125, 211, 252, .3); }
.public-site .border-brand-200,
.public-site .border-brand-300 { border-color: rgba(46, 196, 187, .38); }
.public-site .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--pub-line); }

.public-site .text-brand-700 { color: var(--pub-teal-soft); }
.public-site .text-brand-300 { color: #8fe9e1; }
.public-site .text-emerald-600,
.public-site .text-emerald-700 { color: #6ee7b7; }
.public-site .text-orange-600,
.public-site .text-orange-700 { color: #ffb08f; }
.public-site .text-amber-600,
.public-site .text-amber-700 { color: #f5c451; }
.public-site .text-rose-600,
.public-site .text-rose-700 { color: #fda4af; }
.public-site .text-rose-800 { color: #fecdd3; }
.public-site .text-emerald-800 { color: #a7f3d0; }
.public-site .text-amber-800 { color: #fde68a; }
.public-site .text-sky-800 { color: #bae6fd; }
.public-site .text-accent-600 { color: #ffb08f; }
.public-site .text-sand-700 { color: #eebf7f; }

.public-site .ring-white { --tw-ring-color: rgba(255, 255, 255, .22); }
.public-site .ring-emerald-200 { --tw-ring-color: rgba(110, 231, 183, .35); }
.public-site .ring-sky-200 { --tw-ring-color: rgba(125, 211, 252, .35); }
.public-site .ring-amber-200 { --tw-ring-color: rgba(252, 211, 77, .35); }
.public-site .ring-rose-200 { --tw-ring-color: rgba(253, 164, 175, .35); }
.public-site .ring-slate-200 { --tw-ring-color: rgba(213, 240, 232, .18); }
.public-site .ring-ink\/10 { --tw-ring-color: var(--pub-line); }

.public-site .hover\:bg-brand-50\/40:hover { background-color: rgba(46, 196, 187, .10); }
.public-site .hover\:bg-brand-100:hover { background-color: rgba(46, 196, 187, .16); }
.public-site .hover\:border-brand-200:hover { border-color: rgba(46, 196, 187, .42); }
.public-site .group:hover .group-hover\:text-brand-700 { color: var(--pub-teal-soft); }
.public-site .group:hover .group-hover\:border-brand-300 { border-color: rgba(46, 196, 187, .42); }

.pub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pub-teal-soft);
}

.pub-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--pub-text);
}

/* Page header used by secondary public pages */
.pub-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 84% 8%, rgba(255, 122, 92, .10), transparent 60%),
        radial-gradient(55% 70% at 8% 0%, rgba(46, 196, 187, .16), transparent 60%),
        var(--pub-bg-soft);
    border-bottom: 1px solid var(--pub-line);
}
.pub-hero::before {
    content: "";
    position: absolute;
    right: -16rem;
    bottom: -24rem;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    border: 1px solid rgba(213, 240, 232, .06);
    box-shadow: 0 0 0 70px rgba(213, 240, 232, .02), 0 0 0 140px rgba(213, 240, 232, .015);
    pointer-events: none;
}

/* Next challenge block */
.pub-next {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(65% 80% at 88% 0%, rgba(255, 122, 92, .10), transparent 60%),
        radial-gradient(55% 80% at 4% -10%, rgba(46, 196, 187, .16), transparent 60%),
        var(--pub-bg);
}
.pub-next::before {
    content: "";
    position: absolute;
    right: -16rem;
    bottom: -26rem;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    border: 1px solid rgba(213, 240, 232, .06);
    box-shadow: 0 0 0 70px rgba(213, 240, 232, .02), 0 0 0 140px rgba(213, 240, 232, .015);
    pointer-events: none;
}
.pub-next > .pub-shell { position: relative; z-index: 1; }

.pub-next-card {
    display: block;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid var(--pub-line);
    background: var(--pub-surface);
    box-shadow: 0 40px 90px -70px rgba(0, 0, 0, .95);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.pub-next-card:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 196, 187, .38);
    box-shadow: 0 46px 100px -66px rgba(46, 196, 187, .35);
}
.pub-next-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1715;
}
.pub-next-media img { display: block; height: 100%; width: 100%; object-fit: cover; }
.pub-next-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    width: 100%;
    color: rgba(46, 196, 187, .55);
    background:
        radial-gradient(70% 90% at 20% 10%, rgba(46, 196, 187, .22), transparent 65%),
        radial-gradient(60% 80% at 90% 100%, rgba(255, 122, 92, .18), transparent 60%),
        #0b1715;
}
.pub-next-tag,
.pub-next-time {
    position: absolute;
    top: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 9999px;
    border: 1px solid rgba(213, 240, 232, .14);
    background: rgba(4, 16, 14, .78);
    padding: .3rem .62rem;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pub-text);
    backdrop-filter: blur(10px);
}
.pub-next-tag { left: .8rem; }
.pub-next-time { right: .8rem; letter-spacing: .06em; color: var(--pub-teal-soft); }

.pub-next-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
}
.pub-next-team { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.pub-next-team.is-right { align-items: flex-end; text-align: right; }
.pub-next-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pub-text);
}
.pub-next-vs {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    color: var(--pub-dim);
}

.pub-next-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border: 1px dashed var(--pub-line-strong);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, .02);
    padding: 1.4rem 1.5rem;
}
.pub-next-empty > div { flex: 1 1 16rem; }
.pub-next-empty .btn { margin-left: auto; }

.pub-leader-card {
    position: relative;
    border-radius: 2rem;
    border: 1px solid var(--pub-line);
    background: rgba(13, 26, 24, .86);
    backdrop-filter: blur(18px);
    box-shadow: 0 44px 90px -64px rgba(0, 0, 0, .95);
    padding: 1.35rem;
}

.pub-leader-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    border-radius: 1.15rem;
    padding: .7rem .75rem;
}
.pub-leader-row.is-male { background: rgba(46, 196, 187, .10); }
.pub-leader-row.is-female { background: rgba(255, 122, 92, .10); }

.pub-tabs {
    display: inline-flex;
    gap: .2rem;
    padding: .25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--pub-line);
}
.pub-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 9999px;
    padding: .48rem .95rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--pub-muted);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.pub-tab svg { width: .95rem; height: .95rem; }
.pub-tab:hover { color: var(--pub-text); }
.pub-tab.is-active {
    background: var(--pub-teal);
    color: #04100e;
    box-shadow: 0 12px 24px -16px rgba(46, 196, 187, .95);
}

.pub-rank-board {
    border-radius: 2rem;
    border: 1px solid var(--pub-line);
    background: var(--pub-surface);
    box-shadow: 0 46px 100px -78px rgba(0, 0, 0, .95);
    overflow: hidden;
}
.pub-rank-column { padding: 1.05rem; }
@media (min-width: 1024px) {
    .pub-rank-column + .pub-rank-column { border-left: 1px dashed rgba(213, 240, 232, .14); }
}
@media (max-width: 1023.98px) {
    .pub-rank-column + .pub-rank-column { border-top: 1px dashed rgba(213, 240, 232, .14); }
}

.pub-rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .2rem .45rem .7rem;
}

.pub-rank-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .55rem .5rem;
    border-radius: 1rem;
    transition: background .16s ease;
}
.pub-rank-row:hover { background: rgba(255, 255, 255, .04); }
.pub-rank-row.is-podium {
    background: linear-gradient(90deg, rgba(245, 196, 81, .13), rgba(245, 196, 81, 0) 72%);
}
.pub-rank-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 700;
    color: var(--pub-text);
}
.pub-rank-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .68rem;
    color: var(--pub-dim);
}
.pub-rank-points {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    color: var(--pub-text);
}
.pub-rank-bar {
    display: block;
    margin-top: .38rem;
    height: 4px;
    border-radius: 9999px;
    background: rgba(213, 240, 232, .09);
    overflow: hidden;
}
.pub-rank-bar > span { display: block; height: 100%; border-radius: inherit; }
.pub-rank-bar.male > span { background: linear-gradient(90deg, #46d6cd, #1a8b84); }
.pub-rank-bar.female > span { background: linear-gradient(90deg, #ff9a80, #d4523a); }
.pub-rank-empty {
    padding: 2.4rem .75rem;
    text-align: center;
    font-size: .8rem;
    color: var(--pub-dim);
}

.pub-tab-panel[hidden] { display: none; }
.pub-tab-panel.is-entering { animation: pubFade .3s ease both; }
@keyframes pubFade {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
}

.pub-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: .68rem .55rem;
    border-radius: 1rem;
    transition: background .16s ease;
}
.pub-result:hover { background: rgba(255, 255, 255, .04); }
.pub-score {
    display: inline-flex;
    align-items: center;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .06);
    padding: .2rem .55rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: .95rem;
    font-weight: 600;
    color: var(--pub-text);
    white-space: nowrap;
}

.pub-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 2rem;
    padding: 1.75rem;
    background:
        radial-gradient(60% 120% at 12% 0%, rgba(46, 196, 187, .35), transparent 60%),
        radial-gradient(50% 100% at 95% 100%, rgba(255, 122, 92, .26), transparent 60%),
        #061311;
    border: 1px solid var(--pub-line);
    color: var(--pub-text);
}
@media (min-width: 640px) {
    .pub-cta { padding: 2.5rem; }
}
@media (min-width: 900px) {
    .pub-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

.pub-footer {
    margin-top: 4rem;
    background: #040b0a;
    border-top: 1px solid var(--pub-line);
    color: rgba(233, 244, 239, .66);
}
