body { 
    margin: 0; 
    cursor: grabbing;
}
canvas { 
    width: 100vw; 
    height: 100vh; 
    display: block; 
}
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    min-width: 300px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Arial', sans-serif;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    animation: float 3s ease-in-out infinite;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

#popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(66, 211, 255, 0.3),
        rgba(0, 149, 255, 0.3),
        rgba(0, 255, 255, 0.3));
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#popup h2 {
    color: #fff;
    margin-top: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#popup p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 10px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#popup ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

#popup li {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#popup li::before {
    content: '🐠';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

#popup strong {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#popup::-webkit-scrollbar {
    display: none;
}

#popup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
}

#popup > *:last-child {
    margin-bottom: 20px;
}

.fish-label {
    position: fixed;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.fish-hook-cursor {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16,4 L16,16 C16,20 12,20 12,16' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") 16 16, auto;
}

.chat-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: white;
    padding: 15px;
    font-family: 'Arial', sans-serif;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    font-size: 16px;
    font-weight: bold;
    color: #7289da;
}

.discord-invite {
    font-size: 12px;
    color: #7289da;
    text-decoration: none;
    margin-left: 10px;
    padding: 2px 6px;
    border: 1px solid #7289da;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.discord-invite:hover {
    background: #7289da;
    color: white;
}

.chat-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    word-wrap: break-word;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.message-author {
    font-weight: bold;
    color: #7289da;
    margin-right: 8px;
}

.message-time {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

.message-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Scrollbar styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}