/* =========================================================
   个人主页 · Front-end
   ========================================================= */

:root {
    --bg: #fff7f4;
    --bg-deep: #ffe9ee;
    --surface: rgba(255, 252, 250, 0.78);
    --surface-solid: #fffdfb;
    --ink: #47363f;
    --ink-soft: #68545f;
    --muted: #7b6470;
    --line: rgba(96, 66, 82, 0.1);
    --line-strong: rgba(96, 66, 82, 0.18);
    --accent: #f17898;
    --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
    --accent-mid: color-mix(in srgb, var(--accent) 58%, #47363f);
    --pink: #ffd6e2;
    --pink-deep: #ffacc4;
    --lilac: #e9dcff;
    --mint: #d8f4ea;
    --butter: #fff0c8;
    --shadow-lg: 0 34px 86px -42px rgba(190, 113, 139, 0.38);
    --shadow-md: 0 20px 52px -32px rgba(190, 113, 139, 0.32);
    --shadow-sm: 0 12px 30px -24px rgba(190, 113, 139, 0.3);
    --radius-xl: 44px;
    --radius-lg: 32px;
    --radius-md: 24px;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --font-display: "YouYuan", "Yuanti SC", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: Georgia, "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(48% 34% at 7% 3%, rgba(255, 201, 218, 0.55), transparent 70%),
        radial-gradient(40% 30% at 97% 10%, rgba(203, 240, 230, 0.58), transparent 72%),
        radial-gradient(46% 34% at 88% 84%, rgba(255, 233, 180, 0.38), transparent 72%),
        radial-gradient(rgba(241, 120, 152, 0.07) 1.4px, transparent 1.5px),
        linear-gradient(180deg, #fffaf8 0%, #fff5f4 46%, #fff0f3 100%);
    background-size: auto, auto, auto, 28px 28px, auto;
    background-attachment: fixed;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: #fffdfb;
    background: var(--accent);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.7;
}

.ambient--one {
    top: 16vh;
    left: -190px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 170, 197, 0.38), transparent 68%);
}

.ambient--two {
    right: -210px;
    bottom: -80px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(167, 225, 208, 0.3), transparent 68%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.022;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.page-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 44px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 10px 14px 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 26px;
    background: rgba(255, 251, 249, 0.76);
    box-shadow: 0 16px 42px -32px rgba(180, 99, 128, 0.45);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 251, 249, 0.92);
    box-shadow: 0 20px 48px -30px rgba(180, 99, 128, 0.42);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    border-radius: 16px;
}

.brand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.brand-mark {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px 17px 14px 19px;
    color: #fffdfb;
    background: linear-gradient(145deg, var(--pink-deep), var(--accent));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 9px 20px -10px var(--accent);
    font-size: 17px;
    transform: rotate(-5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    max-width: 150px;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.16em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav > a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav > a:hover {
    color: var(--accent-mid);
    background: var(--accent-soft);
}

.site-nav > a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-nav .nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    font-size: 0.76rem;
}

.site-nav .nav-admin svg {
    opacity: 0.7;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    padding: clamp(28px, 5.5vw, 64px);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(68% 100% at 8% 8%, rgba(255, 214, 226, 0.58), transparent 62%),
        radial-gradient(60% 90% at 100% 0%, rgba(233, 220, 255, 0.52), transparent 65%),
        radial-gradient(45% 60% at 88% 100%, rgba(216, 244, 234, 0.45), transparent 64%),
        linear-gradient(138deg, rgba(255, 253, 251, 0.9), rgba(255, 244, 247, 0.7));
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 206, 220, 0.22);
    overflow: hidden;
}

.hero::before {
    position: absolute;
    top: -190px;
    right: -160px;
    z-index: -1;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), transparent 30%),
        radial-gradient(circle, var(--accent-soft), transparent 68%);
    content: "";
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -260px;
    z-index: -1;
    width: 560px;
    height: 560px;
    border: 2px dashed rgba(241, 120, 152, 0.15);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(30px, 5vw, 76px);
    align-items: center;
}

.hero-spark {
    position: absolute;
    z-index: 0;
    color: var(--accent);
    pointer-events: none;
    user-select: none;
    font-family: var(--font-display);
}

.hero-spark--one {
    top: 13%;
    left: 44%;
    color: var(--pink-deep);
    font-size: 19px;
    opacity: 0.85;
    transform: rotate(-16deg);
}

.hero-spark--two {
    right: 5%;
    bottom: 16%;
    color: var(--accent);
    font-size: 27px;
    opacity: 0.45;
    transform: rotate(12deg);
}

.hero-spark--three {
    top: 24%;
    right: 8%;
    color: #b48ee8;
    font-size: 34px;
    line-height: 1;
    opacity: 0.55;
    transform: rotate(8deg);
}

.portrait-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.portrait-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(338px, 86vw);
    aspect-ratio: 1;
    transform: translate(-50%, -58%);
    border: 2px dashed rgba(241, 120, 152, 0.25);
    border-radius: 50%;
    animation: orbit-spin 48s linear infinite;
    pointer-events: none;
}

.portrait-orbit::before,
.portrait-orbit::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.portrait-orbit::before {
    top: 8%;
    left: 18%;
    width: 9px;
    height: 9px;
    background: var(--pink-deep);
    box-shadow: 0 0 0 6px rgba(255, 172, 196, 0.2);
}

.portrait-orbit::after {
    right: 4%;
    bottom: 28%;
    width: 6px;
    height: 6px;
    background: #b48ee8;
    opacity: 0.7;
}

.portrait-orbit span {
    position: absolute;
    bottom: 5%;
    left: 27%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #75c8b7;
    opacity: 0.8;
}

.portrait-sticker {
    position: absolute;
    top: 12%;
    right: 14%;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: var(--accent-mid);
    background: var(--butter);
    box-shadow: 0 10px 22px -14px rgba(180, 99, 128, 0.6);
    font-family: var(--font-display);
    font-size: 21px;
    transform: rotate(12deg);
    pointer-events: none;
}

@keyframes orbit-spin {
    to {
        transform: translate(-50%, -58%) rotate(360deg);
    }
}

.portrait {
    position: relative;
    z-index: 1;
    width: min(272px, 72vw);
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 50%;
    background: conic-gradient(
        from 210deg,
        var(--accent),
        var(--lilac) 24%,
        #fffdfb 45%,
        var(--mint) 66%,
        var(--butter) 80%,
        var(--accent)
    );
    box-shadow:
        0 30px 62px -30px rgba(176, 95, 125, 0.5),
        0 0 0 12px rgba(255, 255, 255, 0.32);
    transform: rotate(-2.5deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.portrait:hover {
    transform: rotate(0deg) scale(1.015);
    box-shadow:
        0 36px 72px -30px rgba(176, 95, 125, 0.58),
        0 0 0 14px rgba(255, 255, 255, 0.4);
}

.portrait img {
    width: 100%;
    height: 100%;
    border: 7px solid var(--surface-solid);
    border-radius: 50%;
    background: #ffeaf1;
    object-fit: cover;
}

.portrait-stamp {
    position: absolute;
    right: -8px;
    bottom: 10px;
    display: flex;
    width: 80px;
    height: 80px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--accent-mid);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 38%),
        linear-gradient(145deg, #fffdfb, #ffe4ec);
    box-shadow: 0 14px 28px -16px rgba(176, 95, 125, 0.55);
    transform: rotate(7deg);
    line-height: 1;
}

.portrait-stamp span {
    margin-bottom: 5px;
    font-family: var(--font-mono);
    font-size: 0.46rem;
    letter-spacing: 0.16em;
    opacity: 0.65;
}

.portrait-stamp strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.portrait-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.16em;
}

.portrait-caption span {
    width: 26px;
    height: 1px;
    background: var(--accent);
    opacity: 0.55;
}

.hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.22em;
}

.eyebrow span {
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(3.3rem, 7.6vw, 6.3rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.title-dot {
    display: inline-block;
    margin-left: 0.08em;
    color: var(--accent);
    font-size: 0.42em;
    vertical-align: 0.65em;
    transform: rotate(-8deg);
}

#heroName {
    display: inline-block;
}

#heroName.is-changing {
    animation: hero-name-in 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

#heroAvatar.is-changing {
    animation: hero-avatar-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hero-name-in {
    from {
        opacity: 0;
        transform: translateY(7px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-avatar-in {
    from {
        opacity: 0.3;
        transform: scale(0.94) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.tagline {
    max-width: 34rem;
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: clamp(0.94rem, 1.45vw, 1.06rem);
    line-height: 1.9;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.account-switcher {
    display: flex;
    width: min(520px, 100%);
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    margin-top: 34px;
}

.account-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    color: var(--accent-mid);
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.95), transparent 36%),
        linear-gradient(145deg, #fffdfb, #ffe6ee);
    box-shadow:
        0 12px 24px -16px rgba(180, 99, 128, 0.5),
        inset 0 1px 0 #fff;
    cursor: pointer;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.account-arrow:hover {
    color: #fffdfb;
    background: linear-gradient(145deg, var(--pink-deep), var(--accent));
    box-shadow: 0 14px 26px -14px rgba(180, 99, 128, 0.6);
    transform: translateY(-2px) rotate(-3deg);
}

.account-arrow:active {
    transform: scale(0.92);
}

.account-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.account-viewport {
    position: relative;
    z-index: 0;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    touch-action: pan-y;
}

.account-switcher:not(.is-single) .account-viewport::before,
.account-switcher:not(.is-single) .account-viewport::after {
    position: absolute;
    top: 10px;
    right: 11px;
    bottom: -7px;
    left: 11px;
    z-index: -1;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 29px;
    background: #ffe5ed;
    content: "";
    pointer-events: none;
    transform: rotate(-2.2deg);
}

.account-switcher:not(.is-single) .account-viewport::after {
    top: 15px;
    right: 18px;
    bottom: -12px;
    left: 18px;
    background: #e6f8f2;
    transform: rotate(2.3deg);
}

.account-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.account-content.is-leaving-left {
    opacity: 0;
    transform: translateX(-24px) rotate(-2deg) scale(0.98);
}

.account-content.is-leaving-right {
    opacity: 0;
    transform: translateX(24px) rotate(2deg) scale(0.98);
}

.account-content.is-entering-right {
    animation: account-in-right 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-content.is-entering-left {
    animation: account-in-left 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes account-in-right {
    from {
        opacity: 0;
        transform: translateX(28px) rotate(2deg) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
    }
}

@keyframes account-in-left {
    from {
        opacity: 0;
        transform: translateX(-28px) rotate(-2deg) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
    }
}

.account-card {
    position: relative;
    display: flex;
    min-height: 116px;
    align-items: center;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 29px;
    background: rgba(255, 252, 250, 0.74);
    box-shadow:
        0 20px 38px -24px rgba(180, 99, 128, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.account-switcher:hover .account-card {
    box-shadow:
        0 24px 46px -24px rgba(180, 99, 128, 0.54),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.account-card-blur {
    position: absolute;
    top: -35%;
    left: -20%;
    z-index: -2;
    width: 145%;
    height: 175%;
    max-width: none;
    object-fit: cover;
    filter: blur(26px) saturate(1.3);
    opacity: 0.72;
    transform: scale(1.12);
    pointer-events: none;
}

.account-card::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(100deg, rgba(255, 253, 251, 0.86), rgba(255, 244, 248, 0.58)),
        radial-gradient(90% 120% at 0% 100%, rgba(255, 255, 255, 0.55), transparent 62%);
    content: "";
    pointer-events: none;
}

.account-card-spark {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 18px;
    opacity: 0.5;
    transform: rotate(12deg);
    pointer-events: none;
}

.account-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 15px;
}

.account-card-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 3px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px -16px rgba(120, 70, 90, 0.45);
    transform: rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-switcher:hover .account-card-avatar {
    transform: rotate(0deg) scale(1.03);
}

.account-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 21px;
    background: #ffeaf1;
    object-fit: cover;
}

.account-card-info {
    min-width: 0;
    flex: 1;
}

.account-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.account-tag {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    padding: 2px 9px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 10px -8px rgba(180, 99, 128, 0.4);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-platform {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-main {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-handle {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.06rem, 2.1vw, 1.32rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-open {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 6px 14px -10px rgba(180, 99, 128, 0.5);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.account-open:hover {
    color: #fffdfb;
    background: var(--accent);
    transform: translate(1px, -1px) rotate(5deg);
}

.account-open:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.account-empty {
    padding: 34px 24px;
    border: 2px dashed rgba(241, 120, 152, 0.25);
    border-radius: 28px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
    text-align: center;
}

.account-dots {
    display: flex;
    min-height: 40px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
}

.account-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(150, 104, 123, 0.2);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.account-dots button:hover {
    background: var(--pink-deep);
    transform: scale(1.15);
}

.account-dots button[aria-current="true"] {
    width: 24px;
    background: linear-gradient(90deg, var(--pink-deep), var(--accent));
}

.account-dots button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.72rem;
}

.status-dot {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
}

.status-dot::after {
    position: absolute;
    inset: -4px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    content: "";
    opacity: 0;
    animation: status-pulse 2.8s ease-out infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.55;
    }
    65%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ---------- Section heading ---------- */

.content-section {
    margin-top: clamp(68px, 9vw, 112px);
    scroll-margin-top: 110px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 22px;
    padding: 0 4px;
}

.section-index {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    margin-bottom: 4px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50% 46% 52% 44%;
    color: var(--accent-mid);
    background: var(--accent-soft);
    box-shadow: 0 8px 18px -14px rgba(180, 99, 128, 0.5);
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transform: rotate(-6deg);
}

.section-heading-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-kicker {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.2em;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.section-heading h2::after {
    display: inline-block;
    margin-left: 0.18em;
    color: var(--accent);
    content: "♡";
    font-size: 0.42em;
    vertical-align: 0.85em;
    transform: rotate(-10deg);
}

.section-note {
    margin-left: auto;
    padding-bottom: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.section-note::before {
    display: inline-block;
    width: 34px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--pink-deep);
    content: "";
    opacity: 0.55;
}

/* ---------- Info cards ---------- */

.about-stack {
    position: relative;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

.about-stack-stage {
    display: grid;
    gap: 16px;
}

.about-stack-tabs {
    display: none;
}

.about-stack.is-ready .about-stack-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.about-stack.is-ready .about-stack-stage .info-card {
    grid-area: 1 / 1;
    transform-origin: 50% 55%;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        filter 0.4s ease,
        box-shadow 0.4s ease;
}

.about-stack.is-ready .about-stack-stage .info-card.is-next {
    z-index: 2;
    opacity: 0.96;
    filter: saturate(0.88);
    transform: translate(28px, -17px) rotate(2.4deg) scale(0.958);
}

.about-stack.is-ready .about-stack-stage .info-card.is-prev {
    z-index: 1;
    opacity: 0.92;
    filter: saturate(0.84);
    transform: translate(-28px, 17px) rotate(-2.4deg) scale(0.958);
}

.about-stack.is-ready .about-stack-stage .info-card.is-active {
    z-index: 3;
    opacity: 1;
    filter: none;
    transform: translate(0, 0) rotate(0) scale(1);
}

.about-stack.is-ready .about-stack-stage .info-card:not(.is-active) {
    pointer-events: none;
}

.about-stack.is-ready .about-stack-stage .info-card:not(.is-active) > * {
    opacity: 0;
    visibility: hidden;
}

.about-stack.is-ready .about-stack-stage .info-card.is-active {
    box-shadow:
        0 30px 60px -36px rgba(180, 99, 128, 0.4),
        inset 0 1px 0 #fff;
}

.about-stack.is-ready .about-stack-stage .info-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.about-stack.is-ready .about-stack-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.about-tab {
    min-height: 34px;
    padding: 6px 16px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 7px 16px -14px rgba(180, 99, 128, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-tab:hover {
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.86);
    transform: translateY(-1px);
}

.about-tab[aria-selected="true"] {
    border-color: rgba(255, 255, 255, 0.95);
    color: #fffdfb;
    background: linear-gradient(145deg, var(--pink-deep), var(--accent));
    box-shadow: 0 10px 20px -14px rgba(180, 99, 128, 0.55);
}

.about-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.info-card {
    position: relative;
    display: flex;
    min-height: 228px;
    flex-direction: column;
    padding: 23px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.info-card--birthday {
    background-color: #fff1e9;
    background-image: linear-gradient(155deg, rgba(255, 250, 245, 0.94), rgba(255, 225, 213, 0.72));
}

.info-card--constellation {
    background-color: #f1eaff;
    background-image: linear-gradient(155deg, rgba(255, 252, 255, 0.94), rgba(232, 220, 255, 0.72));
}

.info-card--personality {
    background-color: #e9faf4;
    background-image: linear-gradient(155deg, rgba(252, 255, 253, 0.94), rgba(215, 244, 234, 0.74));
}

.info-card::before {
    position: absolute;
    top: -76px;
    right: -76px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.62), transparent 68%);
    content: "";
    pointer-events: none;
}

.info-card::after {
    position: absolute;
    right: 24px;
    bottom: 28px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.45rem;
    opacity: 0.18;
    content: "♡";
    pointer-events: none;
    transform: rotate(10deg);
}

.info-card--constellation::after {
    color: #9d79dd;
    content: "✦";
}

.info-card--personality::after {
    color: #56a18d;
    content: "✿";
}

.info-card.is-visible:hover {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 30px 64px -36px rgba(180, 99, 128, 0.42), inset 0 1px 0 #fff;
    transform: translateY(-6px) rotate(-0.35deg);
}

.info-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.info-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50% 47% 52% 45%;
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 16px -13px rgba(180, 99, 128, 0.45);
    transform: rotate(-4deg);
}

.info-card--birthday .info-icon {
    color: #c87361;
    background: rgba(255, 255, 255, 0.72);
}

.info-card--constellation .info-icon {
    color: #916bd1;
}

.info-card--personality .info-icon {
    color: #4d9985;
}

.info-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
}

.info-en {
    margin-left: auto;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.13em;
    opacity: 0.72;
}

.birthday-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.025em;
}

.birthday-display em {
    padding: 0 3px;
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
    opacity: 0.75;
}

.info-foot {
    margin-top: auto;
    padding-top: 16px;
    color: var(--muted);
    font-size: 0.7rem;
}

.card-watermark {
    position: absolute;
    right: -4px;
    bottom: -16px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0.055;
    pointer-events: none;
}

.constellation-display {
    display: flex;
    align-items: center;
    gap: 14px;
}

.constellation-symbol {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 27px 23px 29px 24px;
    color: #9d79dd;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 12px 24px -18px rgba(130, 93, 190, 0.45);
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-variant-emoji: text;
    line-height: 1;
    text-shadow: 0 8px 22px rgba(157, 121, 221, 0.2);
    transform: rotate(-3deg);
}

.constellation-display h3 {
    font-family: var(--font-display);
    font-size: 1.58rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.constellation-display p {
    margin-top: 6px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.03em;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.tag-list li {
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    line-height: 1.7;
}

.tag-list li:nth-child(4n + 1) {
    color: #a85e77;
    background: #ffe6ee;
}

.tag-list li:nth-child(4n + 2) {
    color: #4d917f;
    background: #ddf6ed;
}

.tag-list li:nth-child(4n + 3) {
    color: #917043;
    background: #fff1cc;
}

.tag-list li:nth-child(4n + 4) {
    color: #7e63b3;
    background: #eee5ff;
}

.personality-copy {
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.empty-value {
    margin-top: auto;
    margin-bottom: auto;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ---------- Favorite cards ---------- */

.favorite-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-card {
    position: relative;
    display: grid;
    grid-template-columns: 40px 72px minmax(0, 1fr) 46px;
    gap: 18px;
    align-items: center;
    padding: 15px 20px 15px 15px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 29px;
    color: inherit;
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(255, 220, 231, 0.32), transparent 50%),
        linear-gradient(100deg, rgba(255, 253, 251, 0.9), rgba(255, 243, 246, 0.7));
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.favorite-card::before {
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--pink-deep), var(--accent));
    content: "";
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

a.favorite-card:hover,
button.favorite-card:hover,
.favorite-card--group:hover {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 26px 54px -34px rgba(180, 99, 128, 0.46), inset 0 1px 0 #fff;
    transform: translateX(6px) translateY(-2px) rotate(-0.25deg);
}

a.favorite-card:hover::before,
button.favorite-card:hover::before,
.favorite-card--group:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

a.favorite-card:focus-visible,
button.favorite-card:focus-visible,
.favorite-card--group:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.favorite-card.has-level {
    grid-template-columns: 40px 72px minmax(0, 1fr) auto 46px;
}

article.favorite-card {
    grid-template-columns: 40px 72px minmax(0, 1fr);
}

article.favorite-card.has-level {
    grid-template-columns: 40px 72px minmax(0, 1fr) auto;
}

button.favorite-card,
.favorite-card--group {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.favorite-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorite-card--group {
    position: relative;
}

.favorite-group.is-open .favorite-card--group {
    border-color: rgba(255, 255, 255, 1);
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(233, 220, 255, 0.42), transparent 54%),
        linear-gradient(100deg, rgba(255, 253, 251, 0.94), rgba(245, 240, 255, 0.74));
    box-shadow: 0 24px 50px -34px rgba(150, 112, 196, 0.42), inset 0 1px 0 #fff;
}

.group-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: #7e63b3;
    background: #eee5ff;
    box-shadow: 0 5px 12px -10px rgba(126, 99, 179, 0.4);
    font-size: 0.61rem;
    font-weight: 700;
    line-height: 1.55;
    white-space: nowrap;
}

.group-chevron {
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}

.group-chevron svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.group-members {
    margin: 0 14px 4px 60px;
    padding: 15px;
    border: 2px dashed rgba(180, 144, 231, 0.32);
    border-radius: 23px;
    background:
        radial-gradient(100% 150% at 0% 0%, rgba(233, 220, 255, 0.42), transparent 55%),
        rgba(255, 253, 251, 0.64);
}

.group-members.is-opening {
    animation: group-open 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes group-open {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-members-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.group-members-title {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.group-members-title em {
    margin-left: 3px;
    color: #8f6bcc;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-style: normal;
}

.group-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #8f6bcc;
    font-size: 0.66rem;
    text-decoration: none;
}

.group-link:hover {
    color: var(--accent-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.group-member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-member {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    color: inherit;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 7px 16px -14px rgba(150, 112, 196, 0.45);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a.group-member:hover {
    background: #fff;
    box-shadow: 0 10px 20px -14px rgba(150, 112, 196, 0.45);
    transform: translateX(3px);
}

.group-member-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.group-member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
}

.group-member-avatar .avatar-initial {
    border-radius: 11px;
    font-size: 1rem;
}

.group-member-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.35;
}

.group-member-info strong {
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.83rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-info span {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-arrow {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    margin-left: auto;
    place-items: center;
    border-radius: 50%;
    color: #8f6bcc;
    background: #f1eaff;
}

.group-members-empty {
    padding: 16px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    text-align: center;
}

.favorite-index {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50% 45% 53% 46%;
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 6px 14px -12px rgba(180, 99, 128, 0.6);
    font-family: var(--font-display);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transform: rotate(-6deg);
}

.favorite-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px -16px rgba(120, 70, 90, 0.45);
    transform: rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

a.favorite-card:hover .favorite-avatar,
button.favorite-card:hover .favorite-avatar,
.favorite-card--group:hover .favorite-avatar {
    transform: rotate(0deg) scale(1.04);
}

.favorite-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

a.favorite-card:hover .favorite-avatar img,
button.favorite-card:hover .favorite-avatar img,
.favorite-card--group:hover .favorite-avatar img {
    transform: scale(1.06);
}

.avatar-initial {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 20px;
    color: hsl(var(--avatar-hue) 48% 34%);
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.8), transparent 38%),
        linear-gradient(145deg, hsl(var(--avatar-hue) 76% 88%), hsl(calc(var(--avatar-hue) + 35) 68% 78%));
    font-family: var(--font-display);
    font-size: 1.58rem;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.favorite-info {
    min-width: 0;
}

.favorite-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.favorite-title-row h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    overflow-wrap: anywhere;
}

.fan-club {
    display: flex;
    min-width: 132px;
    max-width: 182px;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 19px;
    color: var(--accent-mid);
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.92), transparent 34%),
        linear-gradient(145deg, #ffeaf1, #ffd4e2);
    box-shadow:
        0 10px 20px -16px rgba(180, 99, 128, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fan-club-icon {
    flex: 0 0 auto;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1;
}

.fan-club-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
}

.fan-club-label {
    overflow: hidden;
    color: var(--accent-mid);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fan-club-level {
    overflow: hidden;
    margin-top: 3px;
    color: var(--accent-mid);
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-note {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 18px -14px rgba(180, 99, 128, 0.4);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}

a.favorite-card:hover .favorite-arrow,
button.favorite-card:hover .favorite-arrow,
.favorite-card--group:hover .favorite-arrow {
    border-color: rgba(255, 255, 255, 0.95);
    color: #fffdfb;
    background: linear-gradient(145deg, var(--pink-deep), var(--accent));
    transform: rotate(8deg) scale(1.04);
}

.favorite-group.is-open .favorite-card--group .group-chevron {
    color: #fffdfb;
    background: linear-gradient(145deg, #b48ee8, #8f6bcc);
    transform: none;
}

.favorite-group.is-open .group-chevron svg {
    transform: rotate(180deg);
}

.favorite-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    border: 2px dashed rgba(241, 120, 152, 0.24);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 214, 226, 0.35), transparent 40%),
        rgba(255, 252, 250, 0.48);
    text-align: center;
}

.favorite-empty > span {
    margin-bottom: 12px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 25px;
}

.favorite-empty p {
    color: var(--muted);
    font-size: 0.86rem;
}

.favorite-empty a {
    margin-top: 16px;
    padding: 8px 18px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: var(--accent-mid);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    font-size: 0.75rem;
    text-decoration: none;
}

.favorite-empty a:hover {
    border-color: var(--pink-deep);
    color: var(--accent-mid);
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: clamp(72px, 10vw, 120px);
    padding: 42px 4px 8px;
    border-top: 2px dashed rgba(241, 120, 152, 0.2);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-mark {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 20px;
    transform: rotate(-8deg);
}

.footer-main p {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.07em;
}

.footer-bottom a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    opacity: 0.5;
}

/* ---------- Reveal motion ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .favorite-card.is-visible:nth-child(2) {
    transition-delay: 0.05s;
}

.js .favorite-card.is-visible:nth-child(3) {
    transition-delay: 0.1s;
}

.js .favorite-card.is-visible:nth-child(4) {
    transition-delay: 0.15s;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .portrait {
        width: min(238px, 62vw);
    }

    .portrait-orbit {
        width: min(294px, 76vw);
        transform: translate(-50%, -56%);
    }

    .portrait-caption {
        margin-top: 22px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .tagline {
        max-width: 36rem;
    }

    .account-switcher {
        width: min(520px, 100%);
        margin-right: auto;
        margin-left: auto;
    }

    .hero-note {
        justify-content: center;
    }

    .info-card {
        min-height: 0;
    }

    .info-foot {
        padding-top: 18px;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 28px, 1120px);
        padding-top: 14px;
    }

    .site-header {
        top: 8px;
        margin-bottom: 20px;
    }

    .site-nav > a {
        padding: 8px 10px;
        font-size: 0.77rem;
    }

    .site-nav .nav-admin span {
        display: none;
    }

    .site-nav .nav-admin {
        padding: 9px;
    }

    .hero {
        border-radius: 32px;
    }

    .hero-spark--one {
        left: auto;
        right: 12%;
    }

    .section-heading {
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-note {
        width: 100%;
        margin-left: 0;
        padding-bottom: 0;
        white-space: normal;
    }

    .section-note::before {
        width: 22px;
    }

    .favorite-card {
        grid-template-columns: 32px 68px minmax(0, 1fr) 42px;
        gap: 14px;
        padding: 13px 16px 13px 12px;
        border-radius: 23px;
    }

    .favorite-card.has-level {
        grid-template-columns: 32px 68px minmax(0, 1fr) auto 42px;
    }

    article.favorite-card {
        grid-template-columns: 32px 68px minmax(0, 1fr);
    }

    article.favorite-card.has-level {
        grid-template-columns: 32px 68px minmax(0, 1fr) auto;
    }

    .favorite-avatar {
        width: 66px;
        height: 66px;
        border-radius: 22px;
    }

    .fan-club {
        min-width: 118px;
        padding: 6px 10px;
    }

    .group-members {
        margin: 0 8px 4px 38px;
        padding: 13px;
    }
}

@media (max-width: 540px) {
    .page-shell {
        width: min(100% - 22px, 1120px);
        padding-bottom: 30px;
    }

    .site-header {
        padding: 8px 9px 8px 8px;
        border-radius: 20px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px 15px 12px 16px;
    }

    .brand-text strong {
        max-width: 126px;
        font-size: 0.84rem;
    }

    .brand-text small {
        display: none;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav > a {
        padding: 8px 9px;
    }

    .site-nav > a:not(.nav-admin) {
        font-size: 0.73rem;
    }

    .hero {
        padding: 26px 18px 30px;
        border-radius: 28px;
    }

    .portrait {
        width: min(204px, 58vw);
        padding: 7px;
    }

    .portrait img {
        border-width: 5px;
    }

    .portrait-orbit {
        width: min(252px, 72vw);
    }

    .portrait-stamp {
        width: 66px;
        height: 66px;
    }

    .portrait-stamp strong {
        font-size: 0.9rem;
    }

    .portrait-sticker {
        top: 11%;
        right: 13%;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .portrait-caption {
        margin-top: 17px;
        font-size: 0.49rem;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 15vw, 4rem);
        margin-top: 11px;
    }

    .tagline {
        margin-top: 17px;
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .account-switcher {
        gap: 14px;
        margin-top: 28px;
    }

    .account-controls {
        gap: 8px;
    }

    .account-arrow {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .account-dots {
        min-height: 38px;
    }

    .account-viewport {
        padding: 0;
    }

    .account-card {
        min-height: 108px;
        padding: 13px;
        border-radius: 24px;
    }

    .account-card-body {
        gap: 12px;
    }

    .account-card-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        padding: 2px;
        border-radius: 20px;
    }

    .account-card-avatar img {
        border-radius: 18px;
    }

    .account-card-spark {
        top: 9px;
        right: 12px;
        font-size: 15px;
    }

    .account-handle {
        font-size: 1rem;
    }

    .account-platform {
        font-size: 0.6rem;
    }

    .account-tag {
        padding: 1px 7px;
        font-size: 0.58rem;
    }

    .hero-note {
        margin-top: 18px;
        font-size: 0.67rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .section-index {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 0.56rem;
    }

    .info-card {
        padding: 20px;
        border-radius: 26px;
    }

    .about-stack.is-ready .about-stack-stage .info-card.is-next {
        transform: translate(12px, -10px) rotate(1.8deg) scale(0.966);
    }

    .about-stack.is-ready .about-stack-stage .info-card.is-prev {
        transform: translate(-12px, 10px) rotate(-1.8deg) scale(0.966);
    }

    .about-stack.is-ready .about-stack-tabs {
        gap: 6px;
        margin-top: 24px;
    }

    .about-tab {
        min-height: 32px;
        padding: 5px 13px;
        font-size: 0.68rem;
    }

    .info-card-top {
        margin-bottom: 16px;
    }

    .birthday-display {
        font-size: 2.9rem;
    }

    .constellation-symbol {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 23px;
        font-size: 2.5rem;
    }

    .favorite-list {
        gap: 11px;
    }

    .favorite-card {
        grid-template-columns: 58px minmax(0, 1fr) 38px;
        gap: 11px;
        padding: 12px 13px;
        border-radius: 22px;
    }

    .favorite-card.has-level {
        grid-template-columns: 58px minmax(0, 1fr) auto 38px;
    }

    article.favorite-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    article.favorite-card.has-level {
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }

    .favorite-index {
        display: none;
    }

    .favorite-avatar {
        width: 58px;
        height: 58px;
        padding: 2px;
        border-radius: 19px;
    }

    .fan-club {
        min-width: 0;
        max-width: 84px;
        gap: 4px;
        padding: 5px 7px;
        border-radius: 14px;
    }

    .fan-club-icon {
        font-size: 14px;
    }

    .fan-club-label {
        font-size: 0.47rem;
    }

    .fan-club-level {
        font-size: 1rem;
    }

    .favorite-avatar img,
    .avatar-initial {
        border-radius: 15px;
    }

    .avatar-initial {
        font-size: 1.32rem;
    }

    .favorite-title-row {
        gap: 6px;
    }

    .favorite-title-row h3 {
        font-size: 0.98rem;
    }

    .favorite-note {
        font-size: 0.69rem;
    }

    .favorite-arrow {
        width: 36px;
        height: 36px;
    }

    a.favorite-card:hover,
    button.favorite-card:hover,
    .favorite-card--group:hover {
        transform: translateX(2px);
    }

    .group-members {
        margin: 0;
        padding: 12px;
        border-radius: 20px;
    }

    .group-members-head {
        padding: 0 2px;
    }

    .group-member {
        gap: 10px;
        padding: 8px 10px;
        border-radius: 16px;
    }

    .group-member-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .group-member-avatar img,
    .group-member-avatar .avatar-initial {
        border-radius: 9px;
    }

    .group-member-avatar .avatar-initial {
        font-size: 0.9rem;
    }

    .group-member-info strong {
        font-size: 0.8rem;
    }

    .footer-main p {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.53rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .portrait-orbit {
        animation: none;
    }
}
