:root { --ink: #17151d; --cream: #fbf8ef; --paper: #fffdf8; --purple: #5e3aa1; --purple-dark: #43247f; --green: #72c94b; --green-dark: #2e762b; --pink: #ed4399; --line: rgba(23, 21, 29, .13); --shadow: 0 14px 40px rgba(44, 24, 87, .12); } * { box-sizing: border-box; } html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); } body { font-family: "DM Sans", system-ui, sans-serif; overflow-x: hidden; } button, a { font: inherit; -webkit-tap-highlight-color: transparent; } button { color: inherit; } a { color: inherit; } img { display: block; max-width: 100%; height: auto; } #app { min-height: 100svh; } .screen { min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); display: none; opacity: 0; transform: translateY(7px); transition: opacity .32s ease, transform .32s ease; } .screen.active { display: flex; flex-direction: column; } .screen.entered { opacity: 1; transform: none; } .svb-logo { width: 66px; height: 68px; object-fit: contain; object-position: left center; filter: grayscale(1) brightness(0); } .primary, .light-button, .secondary { width: 100%; min-height: 58px; border: 0; border-radius: 18px; padding: 15px 20px; font-family: "Nunito", system-ui, sans-serif; font-weight: 900; font-size: .98rem; letter-spacing: .025em; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; text-decoration: none; } .primary { background: var(--purple); color: white; box-shadow: 0 7px 0 var(--purple-dark); } .primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 3px 0 var(--purple-dark); } .primary:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; } button:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; } /* Abertura */ .intro { position: relative; overflow: hidden; isolation: isolate; } .intro::before, .intro::after { content: ""; position: absolute; border-radius: 999px; z-index: -1; } .intro::before { width: 280px; height: 280px; background: var(--green); right: -150px; top: 19%; opacity: .18; } .intro::after { width: 220px; height: 220px; background: var(--purple); left: -125px; bottom: 12%; opacity: .11; } .intro-copy { margin-top: clamp(28px, 6vh, 62px); } .eyebrow, .round-label { margin: 0 0 10px; color: var(--purple); font-weight: 800; letter-spacing: .13em; font-size: .75rem; } h1, h2 { font-family: "Nunito", system-ui, sans-serif; letter-spacing: -.045em; } h1 { margin: 0; max-width: 560px; font-size: clamp(2.65rem, 11vw, 5.2rem); line-height: .94; font-weight: 900; } h1 em { color: var(--purple); font-style: normal; } .subtitle { margin: 15px 0 0; font-size: 1.02rem; } .animal-stage { display: grid; flex: 1; place-items: center; min-height: 205px; margin: -10px -20px -4px; overflow: hidden; } .animal-hero { width: min(136%, 650px); max-width: none; height: auto; transform: translateY(3%); filter: drop-shadow(0 18px 22px rgba(47, 25, 73, .12)); } /* Rodadas */ .game { background: var(--paper); } .game-header { display: flex; justify-content: space-between; align-items: center; } .mini-mark { font: 900 1.2rem/1 "Nunito", sans-serif; letter-spacing: -.05em; } .progress-copy { display: flex; align-items: baseline; gap: 8px; font-size: .78rem; } .progress-copy span { color: #6b6770; } .progress { width: 100%; height: 5px; margin-top: 14px; background: #e7e2dc; border-radius: 10px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--green-dark); border-radius: inherit; transition: width .35s ease; } .question-wrap { flex: 1; display: flex; flex-direction: column; padding-top: clamp(24px, 5vh, 50px); } .question-wrap h2 { margin: 0; font-size: clamp(1.85rem, 8vw, 3.25rem); line-height: 1.02; } .instruction { margin: 10px 0 18px; color: #67616d; font-size: .92rem; } .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .animal-choice { position: relative; min-height: 112px; border: 2px solid var(--line); border-radius: 22px; background: var(--cream); padding: 12px; display: grid; place-items: center; gap: 2px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .16s ease, border .16s ease, background .16s ease; } .animal-choice:active { transform: scale(.97); } .animal-choice[aria-pressed="true"] { border-color: var(--purple); background: #f1eafd; box-shadow: inset 0 0 0 1px var(--purple); } .choice-emoji { font-size: clamp(2.8rem, 13vw, 4rem); line-height: 1; filter: drop-shadow(0 5px 7px rgba(0,0,0,.08)); } .check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: white; opacity: 0; transform: scale(.7); transition: .16s ease; } .animal-choice[aria-pressed="true"] .check { opacity: 1; transform: scale(1); } .confirm { margin-top: 16px; } /* Retorno */ .feedback { background: var(--green); overflow: hidden; } .feedback::after { content: ""; position: fixed; width: 300px; height: 300px; right: -160px; top: 35%; background: var(--paper); border-radius: 45% 55% 48% 52%; opacity: .2; z-index: 0; } .feedback > * { position: relative; z-index: 1; } .feedback-top { display: flex; align-items: center; justify-content: space-between; } .round-chip { padding: 6px 11px; border: 1px solid rgba(23,21,29,.32); border-radius: 999px; font-size: .76rem; font-weight: 700; } .feedback-kicker { font-size: .72rem; font-weight: 900; letter-spacing: .12em; } .feedback-animals { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 145px; padding-top: 16px; } .feedback-animals span { font-size: clamp(4.2rem, 19vw, 7rem); margin: 0 -8px; animation: pop .38s cubic-bezier(.2,.85,.35,1.3) both; filter: drop-shadow(0 9px 10px rgba(27,60,26,.14)); } .feedback-animals span:nth-child(2) { animation-delay: .06s; } .feedback-animals span:nth-child(3) { animation-delay: .12s; } .feedback-animals span:nth-child(4) { animation-delay: .18s; } .feedback-copy { margin: auto 0 20px; } .feedback-copy h2 { margin: 0; font-size: clamp(2.1rem, 9vw, 3.5rem); line-height: .98; } .feedback-copy > p { margin: 13px 0 0; max-width: 38rem; line-height: 1.5; } details { margin-top: 14px; font-size: .78rem; } summary { width: fit-content; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; } details ul { margin: 8px 0 0; padding-left: 18px; } details li + li { margin-top: 5px; } /* Transição */ .bridge { background: var(--cream); overflow: hidden; } .bridge-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; } .bridge-inner img { width: min(125%, 620px); max-width: none; align-self: center; margin: -40px 0 -55px; } .bridge-lines { text-align: center; } .bridge-lines p { margin: 0; font: 900 clamp(1.8rem, 8vw, 3rem)/1.12 "Nunito", sans-serif; opacity: 0; transform: translateY(12px); animation: lineIn .42s ease forwards; animation-delay: calc(var(--delay) * .46s + .2s); } .bridge-lines p:nth-child(even) { color: var(--purple); } .bridge-thought { max-width: 330px; margin: 20px auto 0; text-align: center; line-height: 1.45; opacity: 0; animation: lineIn .5s ease 2.6s forwards; } /* Revelação */ .reveal { position: relative; background: var(--purple); color: white; overflow: hidden; } .reveal::before { content: ""; position: absolute; width: 320px; height: 320px; background: var(--green); border-radius: 48% 52% 55% 45%; right: -180px; top: -100px; opacity: .96; transform: rotate(18deg); } .reveal-mark { position: relative; z-index: 1; margin-top: 4vh; color: var(--green); font-size: 2.3rem; } .reveal-copy { position: relative; z-index: 1; margin: auto 0; } .reveal-copy p { margin: 0; font: 800 clamp(1.1rem, 5vw, 1.8rem)/1.05 "Nunito", sans-serif; letter-spacing: .06em; } .reveal-copy h2 { margin: 0 0 10px; color: var(--green); font-size: clamp(3.6rem, 18vw, 7.4rem); line-height: .78; font-weight: 900; letter-spacing: -.075em; } .reveal-row { display: flex; margin: 0 auto 26px; justify-content: center; } .reveal-row span { font-size: clamp(2.7rem, 14vw, 4.5rem); margin: 0 -4px; } .light-button { position: relative; z-index: 1; background: white; color: var(--purple-dark); box-shadow: 0 7px 0 #d7c9ed; } /* Final */ .final { background: var(--paper); } .final-art { margin: -12px -30px -52px; overflow: hidden; } .final-art img { width: min(125%, 650px); max-width: none; margin: auto; } .final-copy { position: relative; } .final-copy h2 { margin: 0; font-size: clamp(2.15rem, 9vw, 3.9rem); line-height: .98; } .final-copy p { margin: 11px 0 16px; line-height: 1.45; color: #57515c; } .final-actions { margin-top: auto; display: grid; gap: 10px; } .secondary { border: 2px solid var(--ink); background: transparent; box-shadow: none; } .text-button { min-height: 44px; border: 0; background: transparent; font-weight: 700; cursor: pointer; } .copy-status { min-height: 18px; margin: 0; text-align: center; color: var(--green-dark); font-size: .78rem; } @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.7) rotate(-5deg); } to { opacity: 1; transform: none; } } @keyframes lineIn { to { opacity: 1; transform: none; } } @media (min-width: 720px) { .screen { max-width: 760px; margin: 0 auto; padding-inline: 40px; } .intro-copy { margin-top: 7vh; } .animal-choice { min-height: 135px; } .final-art { margin-top: -35px; } } @media (max-height: 700px) { .intro-copy { margin-top: 20px; } .animal-stage { min-height: 155px; } .animal-hero { width: min(115%, 560px); } .question-wrap { padding-top: 18px; } .question-wrap h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); } .animal-choice { min-height: 94px; } .choice-emoji { font-size: 2.65rem; } .feedback-animals { min-height: 115px; } .bridge-inner img { width: min(105%, 520px); margin-bottom: -46px; } .bridge-lines p { font-size: 1.55rem; } .final-art { margin-bottom: -65px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .screen { opacity: 1; transform: none; } }