@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary-color: #ff8fb3;
    --primary-hover: #ff6b9e;
    --text-main: #4a4a4a;
    --text-light: #8a8a8a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background: url('https://images.unsplash.com/photo-1549488344-1f9b8d2bd1f3?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

.container {
    width: 90%;
    max-width: 500px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.screen {
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 700; /* rounded font looks better bolder */
}

.btn {
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 143, 179, 0.4);
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 143, 179, 0.6);
}

.button-group {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    flex: 1;
    max-width: 150px;
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.result-box {
    background: rgba(255, 143, 179, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px dashed var(--primary-color);
}

.highlight {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.xp-link {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
