@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
* { box-sizing: border-box; }
html { height: 100%; }
body { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #e61d2b, #0d3b66); color: #333; margin: 0; min-height: 100%; }
#app { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 100vh; padding: 80px 20px; }
.container { background-color: white; padding: 30px 40px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); text-align: center; width: 100%; max-width: 500px; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.rewards-market-container, .my-purchases-container { max-width: 700px; padding: 20px;}
.language-selector-container.fade-out { transform: scale(0.9); opacity: 0; }
.main-logo-small { max-height: 60px; margin-bottom: 15px; }
.options-wrapper { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.option { border: 2px solid #ddd; border-radius: 15px; padding: 20px; width: 150px; cursor: pointer; transition: all 0.2s ease-in-out; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.option:hover { transform: translateY(-5px); border-color: #e61d2b; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.option img { width: 80px; border-radius: 5px; }
.option span { font-size: 1.2em; font-weight: 600; }
.location-warning { background-color: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 10px 15px; margin-top: 15px; }
.location-warning p { color: #d46b08; margin: 0; font-size: 0.9em; }
.location-warning strong { color: #cf1322; }
.main-logo { max-height: 70px; margin-bottom: 15px; }
#welcome-title { font-size: 1.5em; font-weight: 600; color: #333; margin-bottom: 20px; }
.auth-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.auth-tab { text-decoration: none; color: #888; font-weight: 600; font-size: 1.1em; padding: 5px 10px; transition: color 0.2s; }
.auth-tab.active { color: #e61d2b; border-bottom: 3px solid #e61d2b; }
form input, form select { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 1em; }
form button { width: 100%; padding: 12px; border: none; border-radius: 8px; background-color: #e61d2b; color: white; font-size: 1.1em; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
form button:hover { background-color: #c01220; }
.card-info { font-size: 0.8em; color: #777; margin-top: -10px; margin-bottom: 15px; text-align: left; }
.card-info a { color: #0d3b66; text-decoration: none; font-weight: 600;}
.follow-rule { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 20px; color: #555; }
.follow-rule input[type="checkbox"] { width: auto; margin: 0 10px 0 0; }
.follow-rule label { margin-bottom: 0; font-size: 0.9em;}
.info-link { margin-top: 20px; }
.info-link a { color: #0d3b66; text-decoration: none; font-weight: 600; font-size: 0.9em; }
.sponsors-footer { margin-top: 25px; border-top: 1px solid #eee; padding-top: 20px; display: flex; justify-content: space-around; align-items: center; }
.sponsors-footer img { max-height: 35px; opacity: 0.8; transition: opacity 0.2s; }
.sponsors-footer img:hover { opacity: 1; }
.notification { padding: 15px; margin-bottom: 20px; border-radius: 8px; text-align: center; font-weight: 600; transition: opacity 0.3s ease-in-out; }
.notification.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.notification.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-extra-links { display: flex; justify-content: flex-end; margin-top: -5px; margin-bottom: 15px; font-size: 0.9em; }
.form-extra-links a { color: #555; text-decoration: none; }
.form-extra-links a:hover { text-decoration: underline; }
.menu-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 30px; gap: 15px; }
.menu-header h2 { margin: 0; font-size: 1.6em; color: #333; }
.menu-header p { margin: 0; color: #777; font-size: 0.9em; }
.header-stats { display: flex; gap: 15px; }
.points-display, .tries-display { text-align: center; background: #f0f2f5; padding: 10px 20px; border-radius: 10px; }
.points-display { border: 2px solid #e61d2b; }
.tries-display { border: 2px solid #0d3b66; }
.points-display span, .tries-display span { font-size: 2em; font-weight: 700; display: block; line-height: 1; }
.points-display span { color: #e61d2b; }
.tries-display span { color: #0d3b66; }
.points-display small, .tries-display small { font-weight: 600; color: #555; }
.menu-actions { display: flex; flex-direction: column; gap: 15px; }
.menu-button { width: 100%; padding: 18px; border: none; border-radius: 10px; color: white; font-size: 1.2em; font-weight: 700; cursor: pointer; transition: all 0.2s; letter-spacing: 1px; }
.menu-button:hover { transform: translateY(-3px); }
.menu-button#start-game-button { background-color: #e61d2b; }
.menu-button#start-game-button:hover { box-shadow: 0 6px 15px rgba(230, 29, 43, 0.4); }
.menu-button#rewards-market-button { background-color: #0d3b66; }
.menu-button#rewards-market-button:hover { box-shadow: 0 6px 15px rgba(13, 59, 102, 0.4); }
.menu-button.tertiary { background-color: #6c757d; }
.menu-button.tertiary:hover { box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4); }
.menu-button.action { background-color: #0d3b66; }
.menu-button.action:hover { box-shadow: 0 6px 15px rgba(13, 59, 102, 0.4); }
.promo-code-area { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.promo-code-area h4 { margin: 0 0 15px 0; color: #555; font-weight: 600; }
.promo-input-wrapper { display: flex; gap: 10px; }
#promo-code-input { flex-grow: 1; margin-bottom: 0; text-transform: uppercase; }
#redeem-code-button { border: none; border-radius: 8px; background-color: #28a745; color: white; font-weight: 600; padding: 0 25px; cursor: pointer; transition: background-color 0.2s; }
#redeem-code-button:hover { background-color: #218838; }
#redeem-code-button:disabled { background-color: #ccc; cursor: not-allowed; }
.menu-footer { margin-top: 30px; }
.menu-footer a { color: #777; text-decoration: none; font-size: 0.9em; }
.menu-footer a:hover { text-decoration: underline; }
.market-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.market-header h2 { margin: 0; font-size: 1.5em; }
.back-button { background: #f0f2f5; border: none; font-size: 1.5em; font-weight: bold; color: #333; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: background-color 0.2s; }
.back-button:hover { background-color: #e0e2e5; }
.rewards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; max-height: 60vh; overflow-y: auto; padding: 10px; }
.reward-card { background: #f9f9f9; border: 1px solid #eee; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.reward-logo { max-height: 50px; margin-bottom: 15px; }
.reward-description { font-size: 1em; font-weight: 600; color: #333; flex-grow: 1; }
.reward-points { font-size: 1.4em; font-weight: 700; color: #e61d2b; margin: 15px 0; }
.claim-button { width: 100%; padding: 12px; border: none; border-radius: 8px; background-color: #0d3b66; color: white; font-size: 1em; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.claim-button:hover { background-color: #0a2c4e; }
.claim-button:disabled { background-color: #ccc; cursor: not-allowed; }
.purchases-list { display: flex; flex-direction: column; gap: 15px; max-height: 60vh; overflow-y: auto; padding: 10px; }
.purchase-item { background: #f9f9f9; border: 1px solid #eee; border-radius: 10px; padding: 15px; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.purchase-details { display: flex; flex-direction: column; }
.purchase-description { font-weight: 600; color: #333; }
.purchase-date { font-size: 0.8em; color: #888; }
.purchase-status { padding: 5px 12px; border-radius: 20px; font-weight: 700; font-size: 0.8em; text-transform: uppercase; }
.purchase-status.review { background-color: #fffbe6; color: #d46b08; }
.purchase-status.completed { background-color: #d4edda; color: #155724; }
.instructions-list { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.instructions-list li { display: flex; align-items: center; margin-bottom: 15px; font-size: 1.1em; }
.instructions-list img { width: 50px; margin-right: 15px; }
.hidden { display: none !important; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 20px; }
.modal-content { background: white; padding: 30px; border-radius: 15px; width: 100%; max-width: 550px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2em; cursor: pointer; color: #888; }
.modal-section-title { font-weight: 700; color: #e61d2b; border-bottom: 2px solid #eee; padding-bottom: 5px; margin-top: 20px; margin-bottom: 10px; }
#modal-rewards-text ul { list-style: none; padding: 0; }
#modal-rewards-text li { background: #f9f9f9; border-left: 4px solid #0d3b66; margin-bottom: 10px; padding: 10px 15px; border-radius: 5px; }
#modal-rewards-text li strong { color: #333; }
#modal-claim-text a { color: #e61d2b; font-weight: bold; }
.persistent-footer { position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(0, 0, 0, 0.5); color: white; text-align: center; padding: 10px 0; font-size: 0.8em; z-index: 1001; }
#game-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, #87CEEB, #FFFFFF); }
#game-container { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
#game-ui { position: fixed; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; color: white; }
.ui-element { background: rgba(0, 0, 0, 0.5); padding: 10px 20px; border-radius: 10px; text-align: center; }
#score-display span { font-size: 2em; font-weight: 700; display: block; }
#score-display small { font-weight: 600; }
#lives-display { display: flex; gap: 10px; }
#lives-display img { height: 30px; }
#game-over-screen .modal-content { text-align: center; }
#final-score-text { font-size: 1.2em; font-weight: 600; margin: 20px 0; }
#final-score { color: #e61d2b; font-size: 2.5em; font-weight: 700; display: block; }
