body, html { margin: 0; padding: 0; width: 100%; height: 100%; font-family: system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; background: #f0fdf4; color: #14532d; user-select: none; -webkit-user-select: none; }
#app { width: 100vw; height: 100vh; position: relative; overflow: hidden; }

canvas { display: block; width: 100%; height: 100%; image-rendering: auto; }

#ui-overlay { position: absolute; inset: 0; pointer-events: none; }
.score-board { position: absolute; top: 40px; left: 40px; }
.score-val { font-size: 48px; font-weight: 900; color: #14532d; letter-spacing: -2px; }
.level-val { font-size: 14px; font-weight: 700; color: #14532d; opacity: 0.6; text-transform: uppercase; letter-spacing: 2px; }

#landing, #selection, #rider-selection { position: absolute; inset: 0; background: #f0fdf4; z-index: 100; overflow-y: auto; pointer-events: auto; display: flex; flex-direction: column; }
#selection, #rider-selection { display: none; }
#game-view { display: none; width: 100%; height: 100%; position: relative; background: #87CEEB; }
#interstitial { display: none; position: absolute; inset: 0; background: white; z-index: 500; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 40px; }

header { padding: 48px; border-bottom: 1px solid rgba(20, 83, 45, 0.1); background: white; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
h1 { font-family: serif; font-weight: 900; text-transform: uppercase; line-height: 0.8; letter-spacing: -0.05em; margin: 0; font-size: 72px; }

#Navigation { padding: 15px 48px; background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.05); }
#Navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: bold; }
#Navigation ul li a { color: #14532d; text-decoration: none; }
#Navigation ul li a:hover { text-decoration: underline; }
#Navigation form { margin-top: 15px; display: flex; gap: 8px; }
#Navigation form input { padding: 5px 10px; border: 1px solid #ccc; border-radius: 4px; }
#Navigation form button { padding: 5px 15px; background: #14532d; color: white; border: none; border-radius: 4px; cursor: pointer; }

main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 48px; width: 100%; box-sizing: border-box; }
.hero { display: flex; gap: 64px; align-items: center; margin-bottom: 64px; flex-wrap: wrap; }
.hero-img { flex: 1; min-width: 300px; aspect-ratio: 1; background: white; border-radius: 40px; border: 8px solid white; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden; position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { flex: 1; min-width: 300px; }
.hero-content h2 { font-family: serif; font-size: 36px; font-style: italic; margin-bottom: 32px; line-height: 1.2; }

.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 16px; padding: 24px 48px; background: #14532d; color: white; border: none; font-weight: 900; text-transform: uppercase; border-radius: 24px; transition: 0.2s; font-size: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.btn:hover { background: #15803d; transform: scale(1.02); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; border-top: 1px solid rgba(20, 83, 45, 0.1); padding-top: 64px; }
.feat-item h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.4; margin-bottom: 8px; }
.feat-item p { font-size: 18px; margin: 0; }

.goat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.goat-card { background: white; border: 4px solid transparent; padding: 25px; border-radius: 25px; cursor: pointer; text-align: center; transition: 0.2s; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.goat-card:hover { transform: translateY(-5px); border-color: rgba(20, 83, 45, 0.2); }
.goat-card.active { border-color: #14532d; background: #f0fdf4; }

#goat-desc { padding: 40px; background: white; border-radius: 30px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); max-height: 500px; overflow-y: auto; }

footer { padding: 48px; background: white; border-top: 1px solid rgba(20, 83, 45, 0.1); text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; margin: 20px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links ul li a { color: #14532d; text-decoration: none; font-size: 12px; font-weight: bold; }
.copy { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.4; }

.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 768px) {
    h1 { font-size: 48px; }
    main { padding: 24px; }
    .hero { gap: 32px; }
}

/* Standalone Settings UI Modifications */
.btn-outline { 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 16px; 
    padding: 16px 48px; 
    background: white; 
    color: #14532d; 
    border: 3px solid rgba(20, 83, 45, 0.2); 
    font-weight: 900; 
    text-transform: uppercase; 
    border-radius: 24px; 
    transition: 0.2s; 
    font-size: 18px; 
    width: 100%; 
    box-sizing: border-box; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.btn-outline:hover { 
    background: #f0fdf4; 
    border-color: #14532d; 
}
.modal-overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 1000; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}
.modal-content { 
    background: white; 
    padding: 40px; 
    border-radius: 40px; 
    width: 100%; 
    max-width: 500px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); 
    position: relative; 
    border: 1px solid rgba(20, 83, 45, 0.1); 
    color: #14532d; 
    box-sizing: border-box; 
}
.modal-close { 
    position: absolute; 
    top: 24px; 
    right: 24px; 
    border: none; 
    background: #f3f4f6; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.modal-close:hover { 
    background: #e5e7eb; 
}
.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 24px; 
    text-align: left; 
}
.form-group label { 
    font-size: 10px; 
    font-weight: 950; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    opacity: 0.6; 
}
.form-group input { 
    padding: 16px; 
    border: 2px solid rgba(20, 83, 45, 0.1); 
    background: #f0fdf4; 
    border-radius: 16px; 
    font-family: monospace; 
    font-size: 14px; 
    color: #14532d; 
    width: 100%;
    box-sizing: border-box;
}
.form-group input:focus { 
    outline: none; 
    border-color: #14532d; 
}
.agreement-card { 
    padding: 20px; 
    background: #f9fafb; 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    border-radius: 20px; 
    font-size: 11px; 
    color: #4b5563; 
    text-align: left; 
    line-height: 1.5; 
    margin-bottom: 24px; 
}
.agreement-card ul { 
    margin: 5px 0 0 0; 
    padding-left: 15px; 
}
.modal-buttons { 
    display: flex; 
    gap: 12px; 
}

