/* Base styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

/* Modal Overlay Base */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.8); /* slate-900 at 80% opacity */
    backdrop-filter: blur(12px);
}

/* Modal Card Base */
.modal-card {
    background-color: rgba(51, 65, 85, 0.8); /* slate-700 at 80% opacity */
    padding: 2rem;
    color: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #475569; /* slate-600 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 24rem;
    width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
}

.modal-card-dark {
    background-color: rgba(30, 41, 59, 0.9); /* slate-800 at 90% opacity */
    border-color: #334155; /* slate-700 */
}

/* Headings & Typography */
.modal-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.game-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
}

.game-instructions {
    color: #94a3b8; /* slate-400 */
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.highlight-text {
    color: #818cf8; /* indigo-400 */
    font-weight: 600;
}

.footer-text {
    margin-top: 1rem;
}

.link {
    color: #818cf8; /* indigo-400 */
    text-decoration: underline;
}

/* Form Styles */
.form-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    background-color: #475569; /* slate-600 */
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffff;
    transition: background-color 0.2s ease;
}

.form-input:hover {
    background-color: #64748b; /* slate-500 */
}

.form-input:focus {
    outline: none;
}

/* Buttons */
.btn {
    width: 100%;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-submit {
    background-color: #4f46e5; /* indigo-600 */
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: #6366f1; /* indigo-500 */
}

.btn-submit:active {
    transform: scale(0.95);
}