body { 
    background-color: #1a1a1b; 
    color: #f5f5f5; 
}

.noise-bg {
    position: fixed; inset: 0; z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.bento-card {
    background: var(--tw-bg-bbCard); 
    border: 1px solid var(--tw-border-bbBorder);
    border-radius: 1.25rem; 
    padding: 1.5rem; 
    transition: border-color 0.3s ease;
    position: relative; 
    overflow: hidden;
}

.poem-trigger::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(255,255,255,0.03) 50%);
    background-size: 100% 4px; pointer-events: none; opacity: 0;
    transition: opacity 0.3s ease; z-index: 0;
}
.poem-trigger:hover { border-color: rgba(255, 255, 255, 0.2); }
.poem-trigger:hover::after { opacity: 1; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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

#poem-modal { transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), backdrop-filter 0.4s ease; backdrop-filter: blur(0px); }
#poem-content { transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }

#poem-modal.modal-open { opacity: 1; pointer-events: auto; backdrop-filter: blur(16px); }
#poem-modal.modal-open #poem-content { transform: scale(1) translateY(0); }
#poem-modal.modal-closed { opacity: 0; pointer-events: none; backdrop-filter: blur(0px); }
#poem-modal.modal-closed #poem-content { transform: scale(0.96) translateY(30px); }

.glowing-text { text-shadow: 0 0 10px rgba(255, 255, 255, 0.15); }
.line-number { display: block; }

#modal-backdrop {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>'), pointer;
}