/* Desafio Vet · visual (cores da Nova Didata: laranja e creme) */
:root { --lar: #FF7B00; --lar2: #E35F00; --ama: #FFC83D; --cre: #FFF6EA; --tin: #2B1A0E; --cin: #7A6858; --ver: #1FA463; --vrm: #D8402B; --bra: #fff; --som: 0 8px 24px rgba(120, 60, 0, .14); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: Nunito, system-ui, sans-serif; color: var(--tin); background: var(--cre); min-height: 100dvh; font-size: 17px; line-height: 1.45; overflow-x: hidden; }
h1, h2, h3, .tit { font-family: 'Baloo 2', Nunito, sans-serif; line-height: 1.1; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lar2); }
.fundo { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fundo i { position: absolute; font-style: normal; font-size: 46px; opacity: .07; animation: boia 14s ease-in-out infinite; }
.fundo i:nth-child(1) { left: 6%; top: 12%; } .fundo i:nth-child(2) { left: 78%; top: 8%; animation-delay: -3s; } .fundo i:nth-child(3) { left: 60%; top: 42%; animation-delay: -6s; }
.fundo i:nth-child(4) { left: 12%; top: 58%; animation-delay: -9s; } .fundo i:nth-child(5) { left: 82%; top: 74%; animation-delay: -5s; } .fundo i:nth-child(6) { left: 34%; top: 86%; animation-delay: -11s; }
@keyframes boia { 50% { transform: translateY(-22px) rotate(14deg); } }
#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 16px 16px 96px; }
.carrega { text-align: center; padding-top: 30vh; color: var(--cin); } .carrega img { animation: pula 1s ease-in-out infinite; }
@keyframes pula { 50% { transform: translateY(-12px); } }
@keyframes sobe { from { opacity: 0; transform: translateY(16px); } }
.cartao { background: var(--bra); border-radius: 22px; padding: 18px; box-shadow: var(--som); margin-bottom: 14px; animation: sobe .45s ease both; }
.cartao:nth-child(2) { animation-delay: .06s; } .cartao:nth-child(3) { animation-delay: .12s; } .cartao:nth-child(4) { animation-delay: .18s; } .cartao:nth-child(5) { animation-delay: .24s; }
.cartao h2 { font-size: 22px; margin-bottom: 8px; }
.peq { font-size: 14px; color: var(--cin); }
.bt { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 16px; padding: 15px 18px; font-weight: 800; font-size: 18px; background: var(--lar); color: #fff; box-shadow: 0 5px 0 var(--lar2); transition: transform .08s, box-shadow .08s; text-decoration: none; }
.bt:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lar2); }
.bt.ver { background: var(--ver); box-shadow: 0 5px 0 #14804b; } .bt.ver:active { box-shadow: 0 1px 0 #14804b; }
.bt.cla { background: #FFE9D2; color: var(--lar2); box-shadow: 0 5px 0 #F5CFA6; } .bt.cla:active { box-shadow: 0 1px 0 #F5CFA6; }
.bt.fino { padding: 10px 14px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 var(--lar2); }
.bt.cla.fino { box-shadow: 0 3px 0 #F5CFA6; }
.bt[disabled] { opacity: .55; }
.lk { background: none; border: 0; color: var(--lar2); font-weight: 800; text-decoration: underline; padding: 8px; }
label { display: block; font-weight: 800; margin: 12px 0 4px; font-size: 15px; }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=number], select, textarea { width: 100%; border: 2px solid #F1DCC4; border-radius: 14px; padding: 13px 14px; background: #FFFBF5; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--lar); }
.marca { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 12px 0; font-size: 15px; } .marca input { width: 22px; height: 22px; accent-color: var(--lar); flex: none; margin-top: 1px; }
.topo { text-align: center; padding: 10px 0 14px; } .topo img.logo { height: 38px; width: auto; }
.heroi { text-align: center; } .heroi img.rap { width: 132px; height: auto; animation: pula 2.4s ease-in-out infinite; } .heroi h1 { font-size: 40px; color: var(--lar2); } .heroi p { margin: 6px 0 0; }
.selo { display: inline-block; background: var(--ama); border-radius: 99px; padding: 4px 14px; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.abas { display: flex; background: #FFE9D2; border-radius: 14px; padding: 4px; margin-bottom: 12px; } .abas button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 11px; font-weight: 800; color: var(--cin); } .abas button.on { background: #fff; color: var(--lar2); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.bichos { display: flex; gap: 10px; } .bichos button { flex: 1; font-size: 30px; padding: 8px 0; border-radius: 16px; border: 3px solid #F1DCC4; background: #FFFBF5; } .bichos button.on { border-color: var(--lar); background: #FFE9D2; transform: scale(1.06); }
.av { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #FFE9D2 center/cover no-repeat; font-size: 28px; flex: none; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); overflow: hidden; }
.av.com { font-size: 0; } .av.g { width: 84px; height: 84px; font-size: 46px; } .av.p { width: 38px; height: 38px; font-size: 20px; border-width: 2px; }
.eu { display: flex; align-items: center; gap: 14px; } .eu h1 { font-size: 26px; } .eu .peq { margin: 0; }
.placar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; } .placar div { background: var(--cre); border-radius: 16px; padding: 10px 4px; text-align: center; } .placar b { display: block; font-family: 'Baloo 2'; font-size: 28px; line-height: 1; color: var(--lar2); } .placar span { font-size: 12px; color: var(--cin); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.quizc { background: linear-gradient(135deg, var(--lar), #FF9E2C); color: #fff; } .quizc h2 { font-size: 26px; } .quizc .bt { background: #fff; color: var(--lar2); box-shadow: 0 5px 0 #FFD6AE; margin-top: 12px; } .quizc.ok { background: linear-gradient(135deg, #1FA463, #49C285); }
.link { display: flex; gap: 8px; align-items: center; background: var(--cre); border: 2px dashed #F1C99A; border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 14px; word-break: break-all; margin: 10px 0; }
.trilha { display: flex; justify-content: space-between; position: relative; margin: 16px 0 6px; } .trilha::before { content: ''; position: absolute; left: 8%; right: 8%; top: 22px; height: 6px; background: #F1DCC4; border-radius: 9px; }
.trilha div { position: relative; width: 24%; text-align: center; font-size: 12px; font-weight: 800; color: var(--cin); } .trilha i { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 4px; border-radius: 50%; background: #fff; border: 4px solid #F1DCC4; font-style: normal; font-size: 22px; }
.trilha .ok i { border-color: var(--ver); background: #E3F7EC; animation: brilho 1.6s ease-in-out infinite; } .trilha .ok { color: var(--ver); }
@keyframes brilho { 50% { box-shadow: 0 0 0 8px rgba(31, 164, 99, .16); } }
.lista { list-style: none; margin: 0; padding: 0; } .lista li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F6E8D6; } .lista li:last-child { border: 0; } .lista .cresce { flex: 1; min-width: 0; } .lista b.pts { font-family: 'Baloo 2'; font-size: 20px; color: var(--lar2); }
.tag { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 800; background: #FFE9D2; color: var(--lar2); } .tag.ver { background: #E3F7EC; color: var(--ver); } .tag.cin { background: #EFE8E0; color: var(--cin); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 246, 234, .94); backdrop-filter: blur(8px); border-top: 1px solid #F1DCC4; }
.nav div { display: flex; width: 100%; max-width: 520px; gap: 6px; } .nav button { flex: 1; border: 0; background: none; border-radius: 14px; padding: 6px 0; font-weight: 800; font-size: 12px; color: var(--cin); } .nav button i { display: block; font-style: normal; font-size: 24px; } .nav button.on { background: #FFE9D2; color: var(--lar2); }
/* quiz */
.barra { height: 10px; background: #F1DCC4; border-radius: 9px; overflow: hidden; margin: 8px 0 16px; } .barra b { display: block; height: 100%; background: var(--lar); border-radius: 9px; transition: width .4s; }
.tempo { height: 6px; background: #F1DCC4; border-radius: 9px; overflow: hidden; margin-bottom: 14px; } .tempo b { display: block; height: 100%; width: 100%; background: var(--ama); transform-origin: left; animation: escoa 20s linear forwards; } @keyframes escoa { to { transform: scaleX(0); } }
.perg { font-family: 'Baloo 2'; font-size: 25px; line-height: 1.15; margin: 0 0 16px; }
.alt { display: block; width: 100%; text-align: left; background: #fff; border: 3px solid #F1DCC4; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; font-weight: 800; box-shadow: 0 4px 0 #F1DCC4; transition: transform .08s; animation: sobe .35s ease both; }
.alt:nth-of-type(2) { animation-delay: .05s; } .alt:nth-of-type(3) { animation-delay: .1s; } .alt:nth-of-type(4) { animation-delay: .15s; }
.alt:active { transform: translateY(3px); } .alt.certa { border-color: var(--ver); background: #E3F7EC; box-shadow: 0 4px 0 #A9E2C4; } .alt.errada { border-color: var(--vrm); background: #FCE7E3; box-shadow: 0 4px 0 #F2B9AF; animation: treme .35s; } .alt[disabled] { cursor: default; }
@keyframes treme { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.expl { background: #FFF3D6; border-radius: 16px; padding: 14px; margin: 6px 0 14px; animation: sobe .3s ease both; } .expl b { display: block; font-family: 'Baloo 2'; font-size: 20px; }
.fimq { text-align: center; } .fimq .num { font-family: 'Baloo 2'; font-size: 84px; line-height: 1; color: var(--lar2); animation: estoura .6s cubic-bezier(.2, 1.6, .4, 1) both; } @keyframes estoura { from { transform: scale(.2); opacity: 0; } }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; } .confete i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: cai 2.6s linear forwards; } @keyframes cai { to { transform: translateY(110vh) rotate(720deg); } }
/* pódio */
.podio { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 26px 0 8px; } .podio .lug { flex: 1; max-width: 132px; text-align: center; animation: sobe .5s ease both; } .podio .lug:nth-child(1) { animation-delay: .15s; } .podio .lug:nth-child(3) { animation-delay: .3s; }
.podio .av { width: 66px; height: 66px; font-size: 34px; margin-bottom: 4px; } .podio .um .av { width: 86px; height: 86px; font-size: 46px; border-color: var(--ama); }
.podio .coroa { font-size: 30px; display: block; margin-bottom: -6px; animation: pula 1.8s ease-in-out infinite; }
.podio .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .podio .pt { font-family: 'Baloo 2'; font-size: 18px; color: var(--lar2); line-height: 1; }
.podio .bl { margin-top: 6px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-family: 'Baloo 2'; font-size: 34px; color: #fff; transform-origin: bottom; animation: cresce .7s cubic-bezier(.2, 1.3, .4, 1) both; } @keyframes cresce { from { transform: scaleY(0); } }
.podio .um .bl { height: 108px; background: linear-gradient(#FFC83D, #F0A800); } .podio .dois .bl { height: 80px; background: linear-gradient(#C9CED6, #9EA6B2); } .podio .tres .bl { height: 60px; background: linear-gradient(#E0A070, #C0763E); }
.rk li.eu-l { background: #FFF3D6; border-radius: 12px; padding-left: 8px; padding-right: 8px; } .rk .ps { width: 30px; text-align: center; font-family: 'Baloo 2'; font-size: 18px; color: var(--cin); }
#aviso { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px); background: var(--tin); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; opacity: 0; transition: .25s; z-index: 20; max-width: 90vw; text-align: center; pointer-events: none; } #aviso.on { opacity: 1; transform: translate(-50%, 0); } #aviso.err { background: var(--vrm); }
.linha { display: flex; gap: 8px; } .linha > * { flex: 1; }
.centro { text-align: center; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
