/* --- General Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fffaf0 0%, #ffe0c2 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

#quiz-container {
    width: 100%;
    max-width: 750px;
}

.card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-top: 6px solid #ee4d2d;
    animation: fadeIn 0.5s ease-out forwards;
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(238, 77, 45, 0.15); }
    50% { transform: scale(1.01); box-shadow: 1px 12px 35px rgba(238, 77, 45, 0.2); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(238, 77, 45, 0.15); }
}

@keyframes gradientBG {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes logoPulse {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    }
    50% {
        transform: scale(1.02) translateY(-3px); 
        box-shadow: 0 8px 25px rgba(238, 77, 45, 0.25); 
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    }
}

@keyframes doorWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

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

@keyframes slideInFromCenter {
    from { width: 0; opacity: 0; }
    to { width: 100px; opacity: 1; }
}

@keyframes slideInFromCenterSmall {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

.card-content {
    padding: 25px 20px;
    position: relative;
}

h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1.8em;
}

h3 {
    color: #444;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-size: 1.3em;
    text-align: center;
    font-weight: 600;
}

.step-view {
    display: none;
}

.step-view.active {
    display: block;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #ee4d2d;
    box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.2);
    outline: none;
}

/* --- Cadastro Step Enhancements --- */
#step-cadastro .card {
    border-top: 10px solid #ee4d2d;
    box-shadow: 0 20px 50px rgba(238, 77, 45, 0.15);
    background: linear-gradient(to bottom, #ffffff, #fffaf0);
    position: relative;
    animation: fadeIn 0.6s ease-out forwards;
}

#step-cadastro .card::before {
    display: none;
}

#step-cadastro .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 60px;
}

.logo-image {
    width: 140px;
    margin-bottom: 20px;
    animation:
        fadeInUp 0.7s ease-out 0.1s backwards,
        logoPulse 3s ease-in-out infinite 0.5s; 
    transform-origin: center bottom;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

#step-cadastro h2 {
    color: #333;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    text-transform: none;
    letter-spacing: 0px;
    text-shadow: none;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

#step-cadastro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ee4d2d;
    border-radius: 2px;
    animation: slideInFromCenter 1s ease-out 0.5s backwards;
}

#step-cadastro h3 {
    color: #ee4d2d;
    border-bottom: none;
    border-top: 1px solid #eee;
    padding-top: 25px;
    padding-bottom: 0;
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
}

/* Challenge Intro Section */
.challenge-intro {
    text-align: left;
    margin-bottom: 40px;
    background: #fff8f5;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffccbc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
    width: 100%;
    box-sizing: border-box;
}

.challenge-intro::before {
    display: none;
}

.challenge-intro > * {
    position: relative;
    z-index: 2;
}

.challenge-intro h2 {
    color: #ee4d2d;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 700;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid #ee4d2d;
    display: inline-block;
    animation: none;
    opacity: 1;
    transform: none;
}

.challenge-intro h2::after {
    display: none;
}

.challenge-intro p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1em;
    max-width: 100%;
    text-align: left;
}

.challenge-intro strong {
    color: #ee4d2d;
    font-weight: 700;
}

.challenge-intro ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.challenge-intro li {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 35px;
}

.challenge-intro li::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 1.4em;
    color: #ee4d2d;
    width: 25px;
    text-align: center;
}

.challenge-intro .win-message {
    margin-top: 25px;
    margin-bottom: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #28a745;
    text-align: center;
}

.challenge-intro .intro-paragraphs {
    margin-bottom: 25px;
    background-color: #fff5f0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 87, 34, 0.1);
    box-shadow: 0 4px 6px rgba(255, 87, 34, 0.05);
}

.challenge-intro .challenge-highlights {
    background-color: #fffaf0;
    border: 1px solid rgba(255, 87, 34, 0.15);
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 25px;
}

.challenge-intro .challenge-highlights li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 50px;
    color: #333;
    font-weight: 500;
}

.challenge-intro .challenge-highlights li:before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.8em;
    color: #FF5722;
    width: 40px;
    text-align: center;
}

.challenge-intro .challenge-call-to-action {
    background-color: #FF5722;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.challenge-intro .challenge-call-to-action p {
    margin: 10px 0;
    font-size: 1em;
}

.challenge-intro .highlight-text {
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.stats-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    padding: 15px;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid #ffccbc;
    box-shadow: 0 8px 25px rgba(238, 77, 45, 0.08);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #ffccbc, transparent);
}

.stat-number {
    font-size: 1.6em;
    font-weight: 700;
    color: #ee4d2d;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.8em;
    font-weight: 500;
}

/* Challenge Rules Section */
.challenge-rules {
    background-color: #fff8f5;
    border-radius: 12px;
    padding: 30px 40px;
    margin: 35px 0;
    border: 1px solid #ffccbc;
    box-shadow: 0 6px 15px rgba(238, 77, 45, 0.08);
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
    width: 100%;
    box-sizing: border-box;
}

.challenge-rules h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ee4d2d;
    padding-bottom: 10px;
    text-align: left;
    font-size: 1.3em;
    display: inline-block;
}

.challenge-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.challenge-rules li {
    padding: 10px 0 10px 30px;
    border-bottom: 1px dashed #ffccbc;
    color: #555;
    position: relative;
    line-height: 1.6;
    font-size: 0.95em;
}

.challenge-rules li:last-child {
    border-bottom: none;
}

.challenge-rules li:before {
    content: "🔒";
    color: #ee4d2d;
    font-size: 1.2em;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: normal;
}

.challenge-rules li:nth-child(2):before { content: "⏳"; }
.challenge-rules li:nth-child(3):before { content: "⭐"; }

#start-quiz-btn {
    background-color: #ee4d2d;
    color: white;
    padding: 15px 35px;
    font-size: 1.2em;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: auto;
}

#start-quiz-btn:hover {
    background-color: #d34527;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4);
}

.form-validation-text {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-top: 25px;
    font-style: normal;
}

/* Prizes Section (Cadastro) */
.prizes-section {
    background: linear-gradient(to bottom, #fff8f5, #ffffff);
    border-radius: 15px;
    padding: 35px 40px;
    margin-top: 45px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #ffccbc;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
    width: 100%;
    box-sizing: border-box;
}

.prizes-section::before {
    display: none;
}

.prizes-section h3 {
    color: #333;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    border-bottom: none;
}

.prizes-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffb74d 0%, #ee4d2d 100%);
    border-radius: 2px;
}

.prize-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 0 5px;
}

.prize-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

.prize-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(238, 77, 45, 0.15);
    border-color: #ee4d2d;
}

.prize-header {
    background: linear-gradient(135deg, #ee4d2d, #ff774d);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prize-header svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.prize-image-container {
    background: linear-gradient(to bottom, #fff8f5, #ffffff);
    padding: 15px 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prize-image {
    max-width: 85%;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.prize-item:hover .prize-image {
    transform: scale(1.08);
}

.prize-name {
    text-align: center;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
    padding: 10px 5px;
    margin: 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.prize-item.unavailable-prize {
    opacity: 0.85;
}

.prize-item.unavailable-prize::before {
    content: 'ESGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 8px 40px;
    font-weight: bold;
    font-size: 1em;
    z-index: 3;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.prize-item.unavailable-prize .prize-image {
    filter: grayscale(70%) opacity(0.7);
}

/* Live Players Section (Cadastro) */
.live-players-section {
    background: #fff8f5;
    border-radius: 15px;
    padding: 35px 40px;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffccbc;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
    width: 100%;
    box-sizing: border-box;
}

.live-players-section h3 {
    text-align: center;
    color: #333;
    font-size: 1.5em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #ee4d2d;
    display: inline-block;
}

.live-players-section h3::after {
    display: none;
}

.live-leaderboard {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.leaderboard-header .header-title {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.leaderboard-header .header-title svg {
    width: 22px;
    height: 22px;
    fill: #ee4d2d;
    margin-right: 10px;
}

.leaderboard-header .header-stats {
    font-size: 0.9em;
    color: #555;
}

.leaderboard-header .active-players svg {
    width: 16px;
    height: 16px;
    fill: #4CAF50;
    margin-right: 5px;
    vertical-align: middle;
}

/* Live Player Entry Styling */
.live-player {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.live-player:last-child {
    margin-bottom: 0;
}

.live-player:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.player-rank {
    font-weight: 700;
    color: #ee4d2d;
    font-size: 1em;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.player-avatar-container {
    position: relative;
    margin-right: 15px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ee4d2d;
    object-fit: cover;
}

.country-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #fff;
    border-radius: 50%;
    padding: 2px;
    font-size: 0.8em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.player-name {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.challenge-streak {
    font-size: 0.8em;
    color: #e67e22;
    background-color: #fff3e0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: #666;
}

.progress-label {
    font-weight: 500;
}

.player-progress .progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.player-progress .progress {
    height: 100%;
    background: linear-gradient(90deg, #ffb74d 0%, #ee4d2d 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 600;
    min-width: 35px;
    text-align: right;
    color: #333;
}

.player-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
}

.player-time {
    display: flex;
    align-items: center;
}

.status-winner {
    color: #27ae60;
    font-weight: 600;
}

.status-playing {
    color: #ee4d2d;
    font-weight: 500;
}

.player-prize {
    margin-left: 15px;
    font-size: 0.9em;
    font-weight: 600;
    color: #444;
    text-align: right;
    white-space: nowrap;
}

.player-prize span {
    background-color: #f1f1f1;
    padding: 4px 8px;
    border-radius: 5px;
}

/* --- Shipping Step Enhancements --- */
#step-shipping .card {
    border-top: 8px solid #ee4d2d;
    background: linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
    box-shadow: 0 15px 40px rgba(238, 77, 45, 0.1);
    animation: fadeIn 0.6s ease-out;
}

#step-shipping .card-content {
    padding: 45px 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#step-shipping h2 {
    color: #333;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

#step-shipping h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ee4d2d;
    border-radius: 2px;
    animation: slideInFromCenterSmall 0.8s ease-out 0.3s backwards;
}

#step-shipping .shipping-message {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.6;
}

#step-shipping .shipping-message strong {
    color: #ee4d2d;
    font-weight: 700;
}

.shipping-form {
    margin-top: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.shipping-form .form-group {
    margin-bottom: 20px;
}

.shipping-form label {
    display: block;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.shipping-form input[type="text"],
.shipping-form input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f8f8;
}

.shipping-form input[type="text"]:focus,
.shipping-form input[type="tel"]:focus {
    border-color: #ee4d2d;
    box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.2);
    outline: none;
    background-color: #fff;
}

.shipping-logo {
    width: 160px;
    margin: 0 auto 35px;
    display: block;
    animation: logoPulse 3s ease-in-out infinite;
    border-radius: 8px;
}

#submit-shipping-btn {
    display: block;
    width: 100%;
    background-color: #ee4d2d;
    color: white;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#submit-shipping-btn:hover {
    background-color: #d34527;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(238, 77, 45, 0.4);
}

#submit-shipping-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.shipping-notes {
    margin-top: 40px;
    background-color: #fff8f5;
    border: 1px solid #ffccbc;
    border-radius: 12px;
    padding: 20px 30px;
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
}

.shipping-notes p {
    margin: 0 0 10px 0;
}

.shipping-notes p:last-child {
    margin-bottom: 0;
}

/* --- Quiz Step --- */
#step-quiz .card {
    border-top: 8px solid #ee4d2d;
    background: linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
    box-shadow: 0 15px 40px rgba(238, 77, 45, 0.1);
    animation: fadeIn 0.6s ease-out;
}

#step-quiz .card-content {
    padding: 45px 55px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: #555;
    font-size: 1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.timer {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #ee4d2d;
    background-color: #fff0e9;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.timer-icon {
    width: 22px;
    height: 22px;
    fill: #ee4d2d;
    margin-right: 8px;
}

#time-left {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.question-progress {
    font-weight: 600;
    color: #444;
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.question-progress .q-label {
    font-weight: 500;
    color: #666;
    margin-right: 5px;
}

#current-q-num, #total-q-num {
    font-weight: 700;
}

.progress-bar-container {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffb74d 0%, #ee4d2d 100%);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 0 10px rgba(238, 77, 45, 0.3);
}

.question-area {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 35px;
    animation: fadeInUp 0.5s ease-out 0.2s backwards;
}

.question-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: #ee4d2d;
    margin-top: 4px;
}

#question-text {
    font-size: 1.6em;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0;
    min-height: 0;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
}

.options-container button {
    background-color: #ffffff;
    color: #444;
    border: 2px solid #e0e0e0;
    text-align: left;
    padding: 18px 25px;
    font-size: 1.05em;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
    animation-delay: var(--animation-delay, 0s);
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.03);
}

.options-container button:hover {
    background-color: #fdfdfd;
    border-color: #ee4d2d;
    color: #ee4d2d;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 15px rgba(238, 77, 45, 0.1);
}

.options-container button:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 3px 8px rgba(238, 77, 45, 0.15);
}

.options-container button:disabled {
    cursor: default;
    opacity: 0.8;
    box-shadow: none;
    transform: none;
}

.options-container.answered button {
    cursor: default;
    pointer-events: none;
}

.options-container.answered button:not(.correct):not(.incorrect) {
    opacity: 0.6;
    background-color: #f8f8f8;
    border-color: #e0e0e0;
}

.options-container button.correct {
    background-color: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.options-container button.incorrect {
    background-color: #ffebee;
    border-color: #ef5350;
    color: #c62828;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.2);
    animation: shake 0.5s ease-in-out;
}

.options-container button.correct::after,
.options-container button.incorrect::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: bold;
}

.options-container button.correct::after {
    content: '✔️';
    color: #2e7d32;
}

.options-container button.incorrect::after {
    content: '✖️';
    color: #c62828;
}

.quiz-live-players {
    margin-top: 45px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    background-color: #fffaf8;
    margin-left: -55px;
    margin-right: -55px;
    margin-bottom: -45px;
    padding-left: 55px;
    padding-right: 55px;
    padding-bottom: 30px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.quiz-live-players h3 {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: none;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.quiz-live-players h3 .active-count {
    background-color: #ee4d2d;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    margin-left: 12px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(238, 77, 45, 0.3);
}

.quiz-live-players .live-player {
    padding: 12px 15px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.quiz-live-players .player-avatar {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    border: 2px solid #ee4d2d;
    padding: 1px;
}

.quiz-live-players .player-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.quiz-live-players .player-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.quiz-live-players .player-status {
    font-size: 0.88em;
    margin: 0;
    line-height: 1.3;
}

.quiz-live-players .status-playing {
    color: #6c757d;
}

.quiz-live-players .status-winner {
    color: #28a745;
    font-weight: 600;
}

.quiz-live-players .player-prize {
    font-size: 0.9em;
    color: #ee4d2d;
    font-weight: 600;
    margin-left: auto;
    background: none;
    padding: 0;
    text-align: right;
    white-space: nowrap;
}

/* --- Payment Step Enhancements --- */
#step-payment .card {
    border-top: 8px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.15);
    animation: fadeIn 0.6s ease-out;
}

#step-payment .card-content {
    padding: 45px 55px;
}

#step-payment h2 {
    color: #333;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

#step-payment h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #28a745;
    border-radius: 2px;
    animation: slideInFromCenterSmall 0.8s ease-out 0.3s backwards;
}

#step-payment .payment-message {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

#step-payment .payment-message strong {
    color: #28a745;
    font-weight: 700;
}

.payment-form {
    margin-top: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

.secure-payment-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.secure-payment-header .secure-icon {
    width: 48px;
    height: 48px;
    fill: #28a745;
}

.secure-payment-header h2 {
    color: #28a745;
    font-size: 2em;
    margin: 0;
    font-weight: 700;
}

.payment-amount-display {
    display: none;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.amount-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #495057;
    font-size: 1.1em;
}

.amount-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    color: #212529;
    font-size: 1.2em;
}

.amount-row .amount {
    color: #28a745;
    font-weight: 600;
}

.selected-prize-info {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.prize-summary h3 {
    color: #495057;
    font-size: 1.2em;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.prize-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prize-name {
    color: #212529;
    font-size: 1.1em;
}

.delivery-estimate {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 0.9em;
}

.delivery-estimate svg {
    width: 20px;
    height: 20px;
    fill: #28a745;
}

.payment-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.trust-badge svg {
    width: 24px;
    height: 24px;
    fill: #28a745;
}

.trust-badge span {
    color: #495057;
    font-weight: 600;
    font-size: 0.95em;
}

.payment-form {
    margin: 35px 0;
}

.cta-button {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.35);
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lock-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.security-badges {
    display: none;
}

.payment-icon {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.payment-notes, .note-item {
    display: none;
}

.payment-simulation-note, .payment-amount-display {
    display: none;
}

/* --- Final Message Step Enhancements --- */
#step-final .card {
    border-top: 8px solid #28a745;
    background: linear-gradient(180deg, #e8f5e9 0%, #ffffff 100%);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.1);
    animation: fadeIn 0.6s ease-out;
}

#step-final .card-content {
    padding: 45px 55px;
    text-align: center;
}

#step-final h2 {
    color: #28a745;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

#step-final h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #28a745;
    border-radius: 2px;
    animation: slideInFromCenterSmall 0.8s ease-out 0.3s backwards;
}

#step-final .final-message {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

#step-final .final-message strong {
    color: #28a745;
    font-weight: 700;
}

#back-to-start-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#back-to-start-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Styles for Ganhou Step (Prize Selection) */
#step-ganhou .card {
    border-top: 8px solid #ffc107;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    box-shadow: 0 15px 40px rgba(238, 77, 45, 0.15);
    animation: fadeIn 0.6s ease-out, pulse 3s ease-in-out infinite 0.5s;
}

#step-ganhou .card-content {
    padding: 45px 55px;
}

#step-ganhou h2 {
    color: #ee4d2d;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#step-ganhou h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ee4d2d 0%, #ff774d 100%);
    border-radius: 2px;
    animation: slideInFromCenter 1s ease-out 0.5s backwards;
}

#step-ganhou .win-message {
    text-align: center;
    color: #28a745;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 40px;
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #28a745;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
    animation: fadeInUp 0.7s ease-out 0.3s backwards;
}

#step-ganhou h3 {
    color: #333;
    font-size: 1.5em;
    margin: 40px 0 35px;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
    position: relative;
    border-bottom: none;
}

#step-ganhou h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ee4d2d 0%, #ff774d 100%);
    border-radius: 2px;
}

.prize-list.selectable {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 15px 5px;
    margin: 35px 0;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.prize-item.selectable-prize {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 0;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prize-item.selectable-prize:hover {
    transform: translateY(-8px);
    border-color: #ee4d2d;
    box-shadow: 0 15px 35px rgba(238, 77, 45, 0.2);
}

.prize-item.selectable-prize.selected {
    border-color: #ee4d2d;
    background-color: #fff8f5;
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(238, 77, 45, 0.25);
}

.prize-item.selectable-prize .prize-header {
    background: linear-gradient(90deg, #ee4d2d 0%, #ff774d 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    gap: 8px;
}

.prize-item.selectable-prize .prize-header svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.prize-item.selectable-prize .prize-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #fff8f5, #ffffff);
    padding: 30px 20px;
    position: relative;
}

.prize-item.selectable-prize .prize-image {
    max-height: 180px;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}

.prize-item.selectable-prize:hover .prize-image {
    transform: scale(1.08);
}

.prize-item.selectable-prize .prize-name {
    text-align: center;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 20px 15px;
    font-size: 1.2em;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

#confirm-prize-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 35px auto 25px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff774d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(238, 77, 45, 0.25);
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

#confirm-prize-btn:not(:disabled):hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ff5e3a 0%, #ff8a66 100%);
    box-shadow: 0 12px 30px rgba(238, 77, 45, 0.35);
}

/* Trust Indicators Section */
.trust-indicators {
    margin-top: 40px;
    padding: 25px;
    background: #fff8f5;
    border-radius: 12px;
    border: 1px solid #ffccbc;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.trust-badge svg {
    width: 24px;
    height: 24px;
    fill: #ee4d2d;
}

.trust-badge span {
    color: #555;
    font-weight: 600;
    font-size: 0.9em;
}

/* Guarantee Section */
.guarantee-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ee4d2d;
}

.guarantee-section p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.guarantee-section strong {
    color: #ee4d2d;
}

/* Leaderboard Table */
#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

#leaderboard-table th,
#leaderboard-table td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

#leaderboard-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9em;
}

#leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

#leaderboard-table tbody tr:nth-child(odd) {
    background-color: #fdfdfd;
}

#leaderboard-table tbody tr:hover {
    background-color: #fff8f5;
}

#leaderboard-table td {
    color: #333;
    font-size: 1em;
}

#leaderboard-table td:first-child {
    font-weight: 500;
}

#leaderboard-table td:last-child {
    font-weight: 600;
    color: #ee4d2d;
}

#play-again-btn {
    display: block;
    width: auto;
    margin: 30px auto 0 auto;
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#play-again-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-content {
        padding: 25px 20px;
    }

    #step-cadastro .card-content,
    #step-quiz .card-content,
    #step-ganhou .card-content,
    #step-shipping .card-content,
    #step-payment .card-content,
    #step-final .card-content {
        padding: 35px 25px;
    }

    .challenge-intro,
    .challenge-rules,
    .prizes-section,
    .live-players-section,
    .shipping-form,
    .shipping-notes,
    .payment-simulation-note,
    .payment-form {
        padding: 20px 20px;
    }

    #step-cadastro h2 {
        font-size: 1.6em;
    }

    .challenge-intro h2 {
        font-size: 1.3em;
    }

    .challenge-intro li {
        padding-left: 30px;
        font-size: 0.95em;
    }

    .challenge-intro li::before {
        font-size: 1.3em;
        width: 20px;
    }

    #step-quiz h2 {
        font-size: 1.4em;
    }

    .options-container button {
        padding: 15px 20px;
        font-size: 1em;
    }

    .options-container button.correct::after,
    .options-container button.incorrect::after {
        right: 15px;
        font-size: 1.2em;
    }

    .prize-list {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 20px;
    }

    .prize-item {
        padding: 0;
    }

    .prize-image-container {
        padding: 15px 10px;
        min-height: 100px;
    }

    .prize-image {
        max-height: 100px;
    }

    .prize-name {
        font-size: 0.9em;
        padding: 10px 5px;
    }

    #start-quiz-btn,
    #submit-shipping-btn {
        padding: 12px 20px;
        font-size: 1.1em;
    }

    #step-shipping h2,
    #step-payment h2,
    #step-ganhou h2,
    #step-final h2 {
        font-size: 1.6em;
    }

    #step-shipping .shipping-message,
    #step-payment .payment-message,
    #step-ganhou .win-message,
    #step-final .final-message {
        font-size: 1em;
    }

    .shipping-form input[type="text"],
    .shipping-form input[type="tel"] {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .live-player {
        padding: 12px;
    }

    .player-avatar {
        width: 40px;
        height: 40px;
    }

    .player-name {
        font-size: 0.95em;
    }

    .player-status,
    .player-time,
    .player-prize {
        font-size: 0.85em;
    }

    .challenge-streak {
        font-size: 0.8em;
    }

    .player-progress {
        font-size: 0.8em;
        gap: 5px;
    }

    .quiz-live-players {
        margin-left: -25px;
        margin-right: -25px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .quiz-live-players h3 {
        font-size: 1.1em;
    }

    #leaderboard-table th,
    #leaderboard-table td {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    #leaderboard-table th {
        font-size: 0.8em;
    }

    #confirm-prize-btn {
        font-size: 1em;
        padding: 12px 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 20px 15px;
    }

    #step-cadastro .card-content,
    #step-quiz .card-content,
    #step-ganhou .card-content,
    #step-shipping .card-content,
    #step-payment .card-content,
    #step-final .card-content {
        padding: 25px 15px;
    }

    .challenge-intro,
    .challenge-rules,
    .prizes-section,
    .live-players-section,
    .shipping-form,
    .shipping-notes,
    .payment-simulation-note,
    .payment-form {
        padding: 15px 15px;
    }

    #step-cadastro h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    #step-cadastro h2::after {
        width: 60px;
        bottom: -8px;
    }

    .challenge-intro h2 {
        font-size: 1.2em;
        border-bottom: 1px solid #ee4d2d;
    }

    .challenge-intro p, .challenge-rules li {
        font-size: 0.9em;
    }

    .challenge-intro li {
        padding-left: 25px;
    }

    .challenge-intro li::before {
        font-size: 1.2em;
    }

    .quiz-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .timer, .question-progress {
        width: 100%;
        justify-content: center;
    }

    .timer-icon {
        width: 18px;
        height: 18px;
    }

    .question-progress .q-label {
        margin-right: 2px;
    }

    #step-quiz h2 {
        font-size: 1.3em;
        margin-bottom: 25px;
    }

    .question-area {
        flex-direction: column;
        gap: 10px;
    }

    .question-icon {
        width: 24px;
        height: 24px;
        margin-top: 0;
    }

    .options-container {
        gap: 12px;
    }

    .options-container button {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    .options-container button.correct::after,
    .options-container button.incorrect::after {
        right: 10px;
        font-size: 1em;
    }

    .prize-list {
        grid-template-columns: 1fr;
    }

    .prize-item {
        max-width: 100%;
    }

    #question-text {
        font-size: 1.2em;
    }

    .door-button {
        padding: 12px;
        font-size: 0.9em;
    }

    .shipping-form {
        padding: 15px 10px;
    }

    .shipping-logo {
        width: 100px;
    }

    #submit-shipping-btn,
    #submit-payment-btn,
    #confirm-prize-btn {
        padding: 12px;
        font-size: 0.9em;
    }

    .guarantee-banner {
        padding: 12px;
    }

    .guarantee-banner h3 {
        font-size: 1.1em;
    }

    .guarantee-banner p {
        font-size: 0.85em;
    }

    /* Improve touch targets */
    button,
    input,
    .door-button,
    .prize-item {
        min-height: 44px; /* Minimum size for touch targets */
    }

    /* Adjust spacing for better mobile readability */
    p, h2, h3, .challenge-intro {
        margin-bottom: 15px;
    }

    .challenge-intro li {
        margin-bottom: 10px;
    }

    /* Improve form field spacing */
    .form-group {
        margin-bottom: 15px;
    }

    /* Make sure buttons are easily tappable */
    .options-container {
        gap: 10px;
    }

    .options-container button {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .card-content {
        padding: 15px 10px;
    }

    #step-cadastro h2 {
        font-size: 1.2em;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .prize-item .prize-name {
        font-size: 0.85em;
    }

    #question-text {
        font-size: 1.1em;
    }

    .options-container button {
        font-size: 0.85em;
    }
}

/* --- Caminho Certeiro Step --- */
#step-caminho-certeiro .card.challenge-card {
    border-top: 8px solid #8e44ad; /* Purple theme for mystery */
    background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 100%);
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.15);
    animation: challengeFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#step-caminho-certeiro .card-content {
    padding: 45px 55px;
    text-align: center;
}

#step-caminho-certeiro .challenge-title {
    color: #8e44ad;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#step-caminho-certeiro .challenge-description {
    color: #555;
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 45px;
}

#step-caminho-certeiro .challenge-description strong {
    color: #c0392b; /* Red for warning */
    font-weight: 700;
}

.doors-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.door-button {
    background: linear-gradient(145deg, #a569bd, #8e44ad);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 25px 35px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(142, 68, 173, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.door-button::before { /* Subtle shine effect */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.door-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.4);
}

.door-button:hover::before {
    transform: rotate(30deg) translateX(20px) translateY(10px); /* Move shine on hover */
}

.door-button:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.35);
}

.door-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.door-button:hover .door-icon {
    animation: doorWiggle 0.5s ease-in-out infinite;
}

.door-text {
    display: block;
}

.door-button:disabled {
    background: linear-gradient(145deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: none;
}

.door-button:disabled .door-icon {
    animation: none;
    opacity: 0.7;
}

.door-button.selected { /* Optional style for clicked button */
    outline: 3px solid #f1c40f;
    outline-offset: 3px;
}

#step-caminho-certeiro .challenge-hint {
    margin-top: 30px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 1em;
}

/* Responsive adjustments for Caminho Certeiro */
@media (max-width: 768px) {
    #step-caminho-certeiro .card-content {
        padding: 35px 25px;
    }
    .doors-container {
        gap: 20px;
    }
    .door-button {
        padding: 20px 25px;
        min-width: 130px;
        font-size: 1em;
    }
    .door-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    #step-caminho-certeiro .challenge-title {
        font-size: 1.8em;
    }
    #step-caminho-certeiro .challenge-description {
        font-size: 1.05em;
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    #step-caminho-certeiro .card-content {
        padding: 25px 15px;
    }
    .doors-container {
        flex-direction: column; /* Stack doors vertically */
        gap: 20px;
    }
    .door-button {
        width: 80%; /* Make buttons wider */
        max-width: 250px;
        padding: 15px 20px;
    }
    #step-caminho-certeiro .challenge-title {
        font-size: 1.6em;
    }
    #step-caminho-certeiro .challenge-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}

.guarantee-banner {
    background: linear-gradient(145deg, #e8f5e9, #f1f8e9);
    border: 1px solid #66bb6a;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.15);
    animation: fadeInUp 0.6s ease-out;
}

.guarantee-banner .guarantee-icon {
    font-size: 2.5em;
    color: #2e7d32;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guarantee-banner .guarantee-text {
    flex: 1;
}

.guarantee-banner h3 {
    color: #2e7d32;
    font-size: 1.2em;
    margin: 0 0 5px 0;
    padding: 0;
    border: none;
    text-align: left;
}

.guarantee-banner p {
    color: #1b5e20;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .guarantee-banner {
        padding: 15px;
        gap: 15px;
    }
    
    .guarantee-banner .guarantee-icon {
        font-size: 2em;
    }
    
    .guarantee-banner h3 {
        font-size: 1.1em;
    }
    
    .guarantee-banner p {
        font-size: 0.9em;
    }
}