/* Profiles: hamburger button on the left of the gold counter, and the menu with the three profile slots */
.profile-menu-button {
    flex: 0 0 auto;
    margin-right: 4px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.8;
    cursor: pointer;
}

.profile-menu-button:hover {
    opacity: 1;
}

.profile-panel {
    max-width: 440px;
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

.profile-card:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

/* The selected profile */
.profile-card.is-current {
    border-color: #6bff4a;
    background-color: rgba(107, 255, 74, 0.12);
    cursor: default;
}

/* An empty slot: a new game starts when it is chosen */
.profile-card.is-empty {
    border-style: dashed;
}

.profile-check {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: transparent;
    font-size: 0.7rem;
    box-sizing: border-box;
}

.profile-card.is-current .profile-check {
    border-color: #6bff4a;
    background-color: #3ddc4f;
    color: #222C37;
}

.profile-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.profile-name {
    font-weight: 800;
}

.profile-stats {
    font-size: 0.8rem;
    opacity: 0.85;
}

.profile-card.is-empty .profile-stats {
    font-style: italic;
    opacity: 0.6;
}

.profile-tag {
    flex: 0 0 auto;
    padding: 1px 8px;
    border: 1px solid #6bff4a;
    border-radius: 10px;
    color: #6bff4a;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Development tool: copy another profile onto the current one */
.profile-dev {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-dev-title {
    color: #ffd400;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-dev-empty {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.6;
}

.profile-copy {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    background: none;
    color: #ffffff;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
}

.profile-copy:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

.profile-delete {
    margin-top: 6px;
    padding: 8px 12px;
    border: 1px solid #e8141c;
    border-radius: 8px;
    background: none;
    color: #ff6b70;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.profile-delete:hover {
    background-color: #e8141c;
    color: #ffffff;
}

/* Version number at the bottom of the menu: opens the changelog */
.profile-version {
    align-self: center;
    margin-top: 8px;
    padding: 2px 8px;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 0.75rem;
    opacity: 0.55;
    text-decoration: underline dotted;
    cursor: pointer;
}

.profile-version:hover {
    opacity: 1;
}

/* Changelog window, above the profiles menu */
.changelog-overlay {
    z-index: 10001;
}

.changelog-panel {
    max-width: 520px;
}

.changelog-body {
    gap: 18px;
}

.changelog-empty {
    font-style: italic;
    opacity: 0.6;
}

.changelog-version-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
}

.changelog-date {
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.6;
}

.changelog-kind {
    display: inline-block;
    margin: 8px 0 2px;
    padding: 0 8px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.changelog-kind.is-feature {
    background-color: #3ddc4f;
    color: #222C37;
}

.changelog-kind.is-improvement {
    background-color: #ffd400;
    color: #222C37;
}

.changelog-kind.is-bugfix {
    background-color: #e8141c;
}

.changelog-list,
.changelog-sublist {
    margin: 2px 0 0;
    padding-left: 20px;
    font-size: 0.85rem;
}
