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

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    background: linear-gradient(135deg, #FF69B4 0%, #9B59B6 50%, #E91E63 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    background: #FFE5F5;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(255, 20, 147, 0.4);
    border: 4px solid #FF1493;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 5px solid #FF1493;
    background: #FF1493;
    border-radius: 20px;
    padding: 20px;
    position: relative;
}

.view-once-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: white;
    color: #FF1493;
    border: 2px solid white;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.view-once-button:hover {
    background: #FFE5F5;
    transform: scale(1.05);
}

.view-once-button.hidden {
    display: none;
}

.user-profile {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 25px;
    border: 2px solid white;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-emoji {
    font-size: 1.5em;
}

.user-name {
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.edit-profile-button {
    padding: 5px 15px;
    background: white;
    color: #FF1493;
    border: none;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.edit-profile-button:hover {
    background: #FFE5F5;
    transform: scale(1.05);
}

.logout-button {
    padding: 5px 15px;
    background: white;
    color: #FF1493;
    border: none;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logout-button:hover {
    background: #FFE5F5;
    transform: scale(1.05);
}

h1 {
    color: white;
    font-size: 3.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: #FFE5F5;
    font-style: italic;
    font-size: 1.3em;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.input-section {
    background: linear-gradient(135deg, #FF69B4, #F06292);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid #FF1493;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.3);
    position: relative;
    min-height: 280px;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 20, 147, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.login-overlay.hidden {
    display: none;
}

.login-overlay-content {
    text-align: center;
    color: white;
    padding: 60px 30px;
}

.login-overlay-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-overlay-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.login-overlay-button {
    padding: 15px 40px;
    background: white;
    color: #FF1493;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.login-overlay-button:hover {
    background: #FFE5F5;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

input[type="text"],
input[type="number"],
input[type="file"] {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 3px solid #FF1493;
    border-radius: 15px;
    font-size: 0.9em;
    background: white;
    color: #9B59B6;
    font-weight: bold;
}

input[type="file"] {
    padding: 8px 10px;
    font-size: 0.85em;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #FF1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
    background: #FFF0F8;
}

input::placeholder {
    color: #FF69B4;
}

button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF1493, #E91E63);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

button:hover {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6);
}

button:active {
    transform: translateY(0);
}

.hint {
    color: white;
    font-size: 0.65em;
    text-align: center;
    font-style: italic;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.chart-container {
    background: white;
    border: 5px solid #FF1493;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
}

#burnChart {
    width: 100%;
    height: auto;
    display: block;
}

.legend {
    background: linear-gradient(135deg, #FF69B4, #9B59B6);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 3px solid #FF1493;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.3);
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend-label {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

.legend-value {
    color: #FFE5F5;
    font-weight: bold;
    font-size: 1.1em;
}

.person-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.person-card {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    padding: 15px;
    border-radius: 20px;
    border: 3px solid #E91E63;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
}

.person-card:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

.person-pfp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.person-info {
    flex: 1;
}

.person-handle {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.person-score {
    color: #FFE5F5;
    font-size: 0.9em;
    margin-top: 5px;
}

.score-positive {
    color: #FFFACD;
    font-weight: bold;
}

.score-negative {
    color: #FFE5F5;
    font-weight: bold;
}

/* Edit score modal */
.edit-score-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.edit-score-modal-content {
    background: #FFE5F5;
    margin: 10% auto;
    padding: 40px;
    border: 4px solid #FF1493;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(255, 20, 147, 0.6);
}

.edit-score-modal h2 {
    color: #FF1493;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

.edit-score-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-score-form label {
    color: #FF1493;
    font-weight: bold;
    margin-bottom: -10px;
}

.edit-score-form input {
    padding: 12px;
    border: 3px solid #FF1493;
    border-radius: 15px;
    font-size: 1em;
    font-family: inherit;
    background: white;
    color: #9B59B6;
    font-weight: bold;
}

.edit-score-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-score-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 15px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.delete-btn {
    background: #E91E63;
    color: white;
}

.cancel-edit-btn {
    background: #9B59B6;
    color: white;
}

.save-edit-btn {
    background: linear-gradient(135deg, #FF1493, #E91E63);
    color: white;
}

.delete-btn:hover, .cancel-edit-btn:hover, .save-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.person-card {
    cursor: pointer;
}

.person-card.clickable:hover {
    cursor: pointer;
}

.profile-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FF1493;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    background: rgba(255, 20, 147, 0.1);
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 10px;
        border-radius: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .view-once-button {
        position: static;
        margin: 10px auto 0;
        display: block;
        font-size: 0.75em;
        padding: 8px 15px;
    }

    .view-once-button.hidden {
        display: none;
    }

    .user-profile {
        position: static;
        margin: 15px auto 0;
        width: fit-content;
        padding: 8px 12px;
    }

    .user-info-row {
        margin-bottom: 5px;
    }

    .user-name {
        font-size: 0.75em;
    }

    .user-emoji {
        font-size: 1.1em;
    }

    .edit-profile-button {
        font-size: 0.65em;
        padding: 5px 10px;
    }

    .logout-button {
        font-size: 0.65em;
        padding: 5px 10px;
    }

    .input-section {
        min-height: auto;
    }

    .login-overlay-content {
        padding: 30px 20px;
    }

    .login-overlay-content h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .login-overlay-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 8px;
    }

    input[type="text"],
    input[type="number"],
    input[type="file"] {
        width: 100%;
        min-width: 100%;
        font-size: 0.85em;
    }

    button {
        width: 100%;
        padding: 12px;
    }

    .chart-container {
        padding: 5px;
        overflow-x: visible;
    }

    #burnChart {
        width: 100%;
    }
}
