/* --- 基础变量与重置 --- */
:root {
    --bg-darkest: #010409;
    --bg-deep: #0a1128;
    --bg-mid: #121a3a;
    --accent-blue: #5ec8f5;
    --accent-cyan: #7dd3fc;
    --accent-purple: #a5b4fc;
    --accent-lilac: #c4b5fd;
    --accent-rose: #e9d5ff;
    --text-main: #f8fafc;
    --text-muted: #9cb3d4;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100%;
}

body.modal-open {
    width: 100%;
}

/* --- 深海背景与气泡层 --- */
#ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 70% 30%, var(--bg-deep) 0%, var(--bg-darkest) 80%);
    z-index: -2;
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
    animation-name: rise;
    animation-timing-function: ease-in;
    animation-iteration-count: 1;
}

@keyframes rise {
    0% { transform: translateY(0) scale(1) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-100vh) scale(1.5) translateX(20px); opacity: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6%;
}

/* --- 导航栏 --- */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1.25rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-shadow: 0 0 20px rgba(94, 200, 245, 0.15);
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.logo:hover {
    color: var(--text-main);
    text-shadow: 0 0 24px rgba(165, 180, 252, 0.35);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.35s ease, text-shadow 0.35s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 14px rgba(94, 200, 245, 0.4);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 5.5rem 0 2rem;
    z-index: 2;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 100%;
}

.hero-title span {
    display: block;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #dbeafe 35%,
        #c4b5fd 70%,
        #a5b4fc 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 28px rgba(165, 180, 252, 0.2));
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.75;
    text-shadow: 0 1px 12px rgba(1, 4, 9, 0.6);
}

.hero-visual {
    width: 100%;
    max-width: 180px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    animation: fadeUp 0.8s ease-out 0.15s forwards;
    opacity: 0;
}

.avatar-glow-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.4),
        0 0 20px rgba(125, 211, 252, 0.28),
        0 0 48px rgba(88, 166, 255, 0.18);
}

.avatar-glow-wrap::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(125, 211, 252, 0.32) 0%,
        rgba(165, 180, 252, 0.18) 42%,
        rgba(196, 181, 253, 0.06) 68%,
        transparent 78%
    );
    filter: blur(8px);
    animation: avatarPulse 5s ease-in-out infinite alternate;
    pointer-events: none;
}

.avatar-glow-wrap::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid rgba(200, 230, 255, 0.28);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(199, 184, 255, 0.1));
    mix-blend-mode: screen;
    box-shadow:
        inset 0 0 16px rgba(125, 211, 252, 0.16),
        inset 0 0 28px rgba(4, 12, 28, 0.26),
        0 0 20px rgba(94, 200, 245, 0.22),
        0 0 40px rgba(165, 180, 252, 0.12);
}

@keyframes avatarPulse {
    0% { opacity: 0.75; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.03); }
}

.avatar-spark {
    position: absolute;
    z-index: 3;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(220, 240, 255, 0.7);
    box-shadow: 0 0 8px rgba(180, 220, 255, 0.6);
    pointer-events: none;
    animation: sparkFloat 4s ease-in-out infinite;
}

.avatar-spark--1 { top: 8%; right: 5%; animation-delay: 0s; }
.avatar-spark--2 { bottom: 15%; left: 0; width: 3px; height: 3px; animation-delay: 1.2s; }
.avatar-spark--3 { top: 35%; left: -4%; width: 2px; height: 2px; opacity: 0.6; animation-delay: 2.4s; }

@keyframes sparkFloat {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-6px); opacity: 0.85; }
}

.profile-avatar {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 1px solid rgba(200, 230, 255, 0.38);
    box-shadow:
        0 0 24px rgba(120, 210, 255, 0.28),
        0 0 48px rgba(88, 166, 255, 0.14),
        0 8px 22px rgba(0, 0, 0, 0.32);
    background: rgba(10, 20, 42, 0.35);
    filter:
        grayscale(0.92)
        contrast(1.05)
        brightness(0.9)
        sepia(0.08)
        saturate(1.1)
        hue-rotate(186deg);
}

@keyframes fadeUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- 文件夹入口 --- */
.folders-section {
    padding: 1rem 0 4rem;
    position: relative;
    z-index: 2;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 22px);
}

.folder-card,
.folder-card * {
    box-sizing: border-box;
    min-width: 0;
}

.folder-card {
    width: 100%;
    min-height: clamp(150px, 32vw, 190px);
    height: auto;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(129, 140, 248, 0.04) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.35rem 1.2rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--glass-highlight);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.folder-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 230, 255, 0.25),
        transparent
    );
    opacity: 0.6;
}

.folder-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(129, 140, 248, 0.08) 100%
    );
    border-color: rgba(125, 211, 252, 0.35);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(94, 200, 245, 0.12),
        0 0 48px rgba(165, 180, 252, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.folder-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.8rem;
    font-size: 1.75rem;
    line-height: 1;
    color: #7dd3fc;
    filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.35));
    transition: filter 0.35s ease, transform 0.35s ease;
}

.folder-icon--svg {
    font-size: 0;
}

.folder-icon svg,
.folder-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.folder-icon--svg .folder-icon-svg path {
    fill: #7dd3fc;
}

.folder-card:hover .folder-icon {
    color: #7dd3fc;
    filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.55));
    transform: scale(1.05);
}

.folder-card:hover .folder-icon--svg .folder-icon-svg path {
    fill: #7dd3fc;
}

@media (max-width: 899px) {
    .folder-card {
        aspect-ratio: auto;
        min-height: 168px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .folder-card {
        padding: 18px;
        min-height: 172px;
    }

    .folder-title {
        font-size: clamp(1.05rem, 4vw, 1.22rem);
    }

    .folder-desc {
        font-size: clamp(0.82rem, 3.3vw, 0.95rem);
        line-height: 1.45;
    }

    .folder-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
}

.folder-title {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #eef2ff;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.folder-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1 1 auto;
    min-height: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.folder-hint {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    margin-top: auto;
    flex-shrink: 0;
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.folder-card:hover .folder-hint {
    color: #bae6fd;
    text-shadow: 0 0 12px rgba(94, 200, 245, 0.35);
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    max-width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    touch-action: pan-y;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(56, 100, 180, 0.15) 0%, transparent 55%),
        rgba(1, 4, 12, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: none;
}

.modal-dialog {
    position: relative;
    width: min(92vw, 640px);
    max-width: 100%;
    max-height: min(
        calc(100vh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)),
        760px
    );
    max-height: min(
        calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)),
        760px
    );
    box-sizing: border-box;
    overflow: hidden;
    touch-action: pan-y;
    background: linear-gradient(
        165deg,
        rgba(18, 28, 58, 0.92) 0%,
        rgba(10, 17, 40, 0.95) 100%
    );
    border: 1px solid rgba(200, 230, 255, 0.12);
    border-radius: 22px;
    padding: 1.5rem 1.25rem 1.25rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(94, 200, 245, 0.08),
        0 0 60px rgba(165, 180, 252, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94) translateY(8px);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.modal-close:hover {
    color: var(--text-main);
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(125, 211, 252, 0.1);
    box-shadow: 0 0 16px rgba(94, 200, 245, 0.2);
}

.modal-header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-right: 2.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
    max-width: 100%;
}

.modal-header > div {
    min-width: 0;
    flex: 1;
}

.modal-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    flex: 0 0 auto;
    flex-shrink: 0;
    color: #7dd3fc;
    filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.35));
}

.modal-icon--svg {
    font-size: 0;
}

.modal-icon svg,
.modal-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.modal-icon--svg .folder-icon-svg path {
    fill: #7dd3fc;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #eef2ff;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.15);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-link-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.15rem;
    min-width: 0;
    max-width: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.modal-link-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(129, 140, 248, 0.03) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.modal-link-card:hover {
    transform: translateX(3px);
    border-color: rgba(125, 211, 252, 0.22);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(129, 140, 248, 0.06) 100%
    );
    box-shadow: 0 0 20px rgba(94, 200, 245, 0.06);
}

.modal-link-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    min-width: 0;
}

.modal-link-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-link-card,
.modal-link-card * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.link-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    font-size: 0.68rem;
    color: var(--accent-cyan);
    background: rgba(94, 200, 245, 0.1);
    border: 1px solid rgba(94, 200, 245, 0.22);
    border-radius: 999px;
}

.modal-link-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.6rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-link-safety {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #a8c4dc;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: rgba(125, 211, 252, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.12);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.link-btn {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 0.45rem 1.2rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(125, 211, 252, 0.08) 100%
    );
    border: 1px solid rgba(200, 230, 255, 0.15);
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.82rem;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.link-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(125, 211, 252, 0.15) 0%,
        rgba(165, 180, 252, 0.12) 100%
    );
    color: #e0f2fe;
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow: 0 0 18px rgba(94, 200, 245, 0.2);
    transform: translateY(-1px);
}

.link-btn-pending {
    cursor: not-allowed;
    opacity: 0.55;
    color: var(--text-muted);
    font-family: inherit;
}

.link-btn-pending:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(125, 211, 252, 0.04) 100%
    );
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: none;
}

.footer {
    text-align: center;
    padding: 1.5rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.55;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 16px rgba(94, 200, 245, 0.08);
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-content {
        text-align: left;
        flex: 1;
    }

    .hero-title {
        font-size: 2.4rem;
        gap: 0.45rem;
    }

    .hero-subtitle {
        margin: 0;
    }

    .profile-avatar {
        width: 160px;
        height: 160px;
    }

}

@media (min-width: 900px) {
    .folder-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .folder-card {
        aspect-ratio: 1 / 0.92;
        min-height: 160px;
        height: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 359px) {
    .folder-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .folder-card {
        aspect-ratio: auto;
        min-height: 150px;
        height: auto;
    }
}

@media (max-width: 767px) {
    .avatar-glow-wrap {
        box-shadow:
            0 0 0 1px rgba(125, 211, 252, 0.35),
            0 0 16px rgba(125, 211, 252, 0.22),
            0 0 36px rgba(88, 166, 255, 0.14);
    }

    .avatar-glow-wrap::before {
        inset: -10px;
        filter: blur(6px);
    }

    .avatar-glow-wrap::after {
        box-shadow:
            inset 0 0 12px rgba(125, 211, 252, 0.14),
            inset 0 0 22px rgba(4, 12, 28, 0.22),
            0 0 14px rgba(94, 200, 245, 0.18),
            0 0 28px rgba(165, 180, 252, 0.1);
    }

    .profile-avatar {
        filter:
            grayscale(0.9)
            contrast(1.04)
            brightness(0.91)
            sepia(0.07)
            saturate(1.08)
            hue-rotate(186deg);
    }

    .modal {
        align-items: center;
        padding:
            max(12px, env(safe-area-inset-top, 0px))
            12px
            max(16px, env(safe-area-inset-bottom, 0px))
            12px;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
    }

    .modal-dialog {
        width: min(100%, 94vw);
        max-height: calc(
            100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
        );
        max-height: calc(
            100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
        );
        padding: 1.25rem 1rem 1rem;
    }

    .modal-link-card:hover {
        transform: none;
    }
}

@supports (height: 100dvh) {
    .modal {
        height: 100dvh;
        min-height: 100dvh;
    }
}

@supports not (height: 100dvh) {
    .modal {
        height: 100vh;
        min-height: 100vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar-glow-wrap::before,
    .avatar-spark,
    .bubble {
        animation: none;
    }

    .folder-card:hover,
    .modal-link-card:hover,
    .link-btn:hover {
        transform: none;
    }
}
