:root {
    --cancelColor: #C0392B;
    --cancelColorDark: #922B21;
}

.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dialog-header {
    font-family: 'Racing Sans One', sans-serif;
    color: black;
}

.dialog-content {
    color: black;
    font-family: sans-serif;
}

.buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cancel-button {
    background-color: var(--cancelColor);
}

.cancel-button:hover {
    background-color: var(--cancelColorDark);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.form-field label {
    font-size: 0.9rem;
    color: #555;
}

.form-field input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.dialog-error {
    color: var(--cancelColor);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.dialog-error.hidden {
    display: none;
}

.choice-button {
    display: block;
    width: 100%;
    text-align: left;
    margin: 4px 0;
    box-sizing: border-box;
}

/* --- Sign-in dialog: a nod to the floating tag's punch-hole look, without
   making the whole dialog tag-shaped. --- */

.signin-dialog-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signin-tag-hole {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.signin-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 999px;
}

.signin-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.new-player-option {
    background-color: #888;
}
