body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 25px;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.input-container {
    margin-bottom: 30px;
    position: relative;
}

input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

input:focus {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    outline: none;
}

.rules-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-height: 600px;
    overflow-y: auto;
}

.rule {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rule:hover {
    background-color: #f8f9fa;
}

.rule:last-child {
    border-bottom: none;
}

.rule-number {
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    color: #2c3e50;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f2f6;
    border-radius: 50%;
}

.rule-text {
    flex-grow: 1;
    font-size: 16px;
}

.rule.completed {
    background-color: #e8f5e9;
}

.rule.completed .rule-text {
    color: #388e3c;
}

.rule.completed .rule-number {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status-indicator {
    margin-left: 15px;
    font-size: 22px;
    transition: all 0.3s ease;
}

.status-indicator.success {
    color: #27ae60;
}

.status-indicator.error {
    color: #e74c3c;
}

.hidden {
    display: none;
}

.win-message {
    text-align: center;
    font-size: 28px;
    color: #27ae60;
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #27ae60;
    border-radius: 12px;
    background-color: #e8f5e9;
    display: none;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.total-rules {
    text-align: right;
    margin-top: 15px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #27ae60);
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Scrollbar Styling */
.rules-container::-webkit-scrollbar {
    width: 8px;
}

.rules-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rules-container::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

.rules-container::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}