:root {
    --bg-color: #f0f4f8;
    --road-color: #555;
    --primary-blue: #0056b3;
    --success-green: #28a745;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

.game-wrapper {
    width: 90%;
    max-width: 900px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

/* Road Visuals */
.road-container {
    position: relative;
    height: 150px;
    margin: 3rem 0;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    /* Keep char inside if needed, or remove to pop out */
    overflow: visible;
}

.road-line {
    position: absolute;
    top: 70%;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--road-color);
    transform: translateY(-50%);
    z-index: 1;
}

/* Dashed center line */
.road-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #fff 50%, transparent 50%);
    background-size: 40px 100%;
    transform: translateY(-50%);
}

.milestone {
    position: absolute;
    top: 70%;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.milestone-label {
    position: absolute;
    top: 30px;
    /* Moved below */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Character */
.character {
    position: absolute;
    top: 40%;
    /* Sit on top of the road */
    left: 10%;
    /* Starting position matches milestone 1 */
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: left 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth walk */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.char-sprite {
    width: 80px;
    /* Adjusted size for visibility */
    height: 80px;
    background-image: url('paul.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    /* Hide emoji */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    /* Add depth */
}

.char-name {
    display: none;
    /* Removed as requested */
}

/* Interact Area */
.challenge-area {
    margin-top: 2rem;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.verse-display {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 2rem;
}

.full-verse-input {
    width: 100%;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
}

.full-verse-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.action-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background-color: #004494;
}

.secondary-btn {
    background-color: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    background-color: #f8f9fa;
}

.feedback-msg {
    margin-top: 1rem;
    font-weight: bold;
    height: 1.5rem;
}

.feedback-msg.success {
    color: var(--success-green);
}

.feedback-msg.error {
    color: #dc3545;
}

.feedback-msg.hint {
    color: #fd7e14;
    /* Orange/Amber for hint */
    font-style: italic;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}