/* 1. Base: cores, tipografia e fundo. Fontes locais mantêm o exercício offline. */
:root { color-scheme: dark; --pink: #db2777; --muted: #94a3b8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0c0a15; color: #f8fafc; font-family: Arial, sans-serif; display: flex; flex-direction: column; align-items: center; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 350px 350px at 50% 70px, #db277724, transparent); pointer-events: none; }
.stars { position: fixed; inset: 0; pointer-events: none; opacity: .15; background-image: radial-gradient(circle at 20px 30px, white 1px, transparent 2px), radial-gradient(circle at 90px 70px, white 1px, transparent 2px); background-size: 150px 150px; }
header { position: relative; text-align: center; margin: 40px 0 20px; }
.brand { font: 600 2.8rem Georgia, serif; color: #facc15; text-shadow: 0 0 20px #facc1566; }
.brand-sub { color: #b72b63; font-size: .85rem; font-weight: 600; letter-spacing: .16em; padding: 0 16px; line-height: 1.6; }
.study-label { font-size: .65rem; letter-spacing: .15em; color: var(--muted); margin: 18px 0 0; }
/* 2. Painel responsivo: largura máxima no computador, largura total no celular. */
main { position: relative; width: 100%; max-width: 500px; flex: 1; margin-top: 20px; padding: 50px 30px 70px; text-align: center; background: #ffffff08; border-radius: 40px 40px 0 0; border-top: 1px solid #ffffff1a; box-shadow: 0 -15px 40px #0006; }
h1 { font-size: 2.2rem; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.04em; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 10px; }
p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.subtitle { margin-bottom: 35px; }
.symbol { width: 60px; height: 60px; margin: 20px auto 25px; display: grid; place-items: center; border-radius: 20px; background: #db27771a; color: var(--pink); font-size: 2rem; }
/* 3. Componentes compartilhados entre as telas. */
button { font: inherit; cursor: pointer; transition: transform .2s, background .2s; }
button:hover { transform: translateY(-2px); }
button:focus-visible { outline: 3px solid #facc15; outline-offset: 4px; }
.primary { width: 100%; border: 0; border-radius: 20px; padding: 22px 14px; color: white; background: linear-gradient(135deg, var(--pink), #9d174d); box-shadow: 0 10px 25px #db277766; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; }
.option { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; padding: 20px 24px; margin-bottom: 12px; text-align: left; border: 1px solid #ffffff1a; border-radius: 20px; background: #ffffff0d; color: #f8fafc; font-size: 1.1rem; font-weight: 600; }
.option:hover { background: #db277726; border-color: #db277780; }
.option span:last-child { color: var(--muted); font-size: 1.5rem; }
.step-label { color: var(--pink); font-size: .85rem; font-weight: 700; letter-spacing: 1px; margin: 0 0 30px; text-transform: uppercase; }
.note { font-size: .8rem; margin-top: 30px; }
.back { background: transparent; border: 0; padding: 15px; color: var(--muted); margin-top: 12px; }
.progress { height: 8px; background: #ffffff0d; border-radius: 30px; overflow: hidden; margin-bottom: 40px; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--pink), #f472b6); transition: width .4s; }
.spinner { width: 70px; height: 70px; border: 4px solid #db27771a; border-top-color: var(--pink); border-radius: 50%; margin: 40px auto 30px; animation: spin 1s linear infinite; }
.success { color: #34d399; background: #10b9811a; border: 1px solid #10b9814d; border-radius: 50%; width: 80px; height: 80px; }
.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 25px #10b98144; }
dl { text-align: left; padding: 20px; border-radius: 20px; background: #0004; font-size: .9rem; }
dt { color: var(--muted); margin-top: 14px; }
dt:first-child { margin-top: 0; }
dd { margin: 5px 0 0; line-height: 1.5; }
section { animation: appear .35s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) { main { padding: 35px 20px; } h1 { font-size: 1.9rem; } .option { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* Navegação e biblioteca de receitas. */
nav { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
nav a { color: #cbd5e1; text-decoration: none; border: 1px solid #ffffff20; border-radius: 30px; padding: 9px 20px; font-size: .85rem; }
nav a[aria-current="page"], nav a:hover { color: white; background: #db277730; border-color: #db277780; }
a:focus-visible, summary:focus-visible { outline: 3px solid #facc15; outline-offset: 4px; }
.action-link { display: block; text-decoration: none; line-height: 1.4; }
.library { max-width: 1120px; border-radius: 32px; margin-bottom: 40px; }
.library .subtitle { max-width: 620px; margin: 18px auto 32px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 25px 0 35px; }
.filters button { border: 1px solid #ffffff25; padding: 12px 18px; border-radius: 30px; background: #ffffff08; color: #cbd5e1; }
.filters button[aria-pressed="true"] { background: #db2777; color: white; border-color: #db2777; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; text-align: left; }
.recipe-card { border: 1px solid #ffffff15; border-radius: 24px; overflow: hidden; background: #ffffff04; }
.recipe-visual { height: 150px; background: radial-gradient(ellipse at 50% 75%, #ffffff16, transparent 60%), linear-gradient(145deg, #ffffff06, #0002); display: grid; place-items: center; }
.recipe-visual svg { width: 155px; height: 120px; filter: drop-shadow(0 16px 12px #0005); }
.recipe-content { padding: 24px; }
.recipe-content h2 { font-size: 1.15rem; }
.recipe-content p { font-size: .9rem; }
.category { color: #f9a8d4 !important; text-transform: uppercase; font-size: .65rem !important; letter-spacing: .12em; }
summary { cursor: pointer; color: #f9a8d4; font-size: .9rem; padding: 10px 0; }
.recipe-content ul { padding-left: 18px; color: #cbd5e1; font-size: .9rem; line-height: 1.8; }
.library footer { margin-top: 45px; padding-top: 25px; border-top: 1px solid #ffffff15; }
.library footer p { font-size: .8rem; max-width: 650px; margin: auto; }
[hidden] { display: none !important; }
@media(max-width: 850px) { .recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .library { padding: 35px 22px; } }
@media(max-width: 560px) { .recipe-grid { grid-template-columns: 1fr; } .library { border-radius: 32px 32px 0 0; margin-bottom: 0; } }
