/* ============================================================
   EggVault — site (landing page + login/cadastro)
   Mesmo visual do jogo: céu azul, grama, madeira, botões "gordinhos"
   ============================================================ */
:root {
  --sky: #8fd3ff; --sky2: #c9ecff; --grass: #7cc644; --grass-d: #4f9a2c; --dirt: #c98a4b; --wood: #8a5530;
  --orange: #ff9a1f; --orange-d: #d86b00; --green: #35c63a; --green-d: #1f9324; --blue: #3ba7ff; --blue-d: #1d74d6;
  --ink: #2a2a2a; --muted: #6b7280; --card: #ffffff;
  --font-game: 'Lilita One', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sky2); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 16px;
  color: #fff; font: 20px var(--font-game); letter-spacing: .3px; white-space: nowrap;
  background: linear-gradient(#ffb340, var(--orange)); box-shadow: inset 0 -5px 0 var(--orange-d), 0 6px 16px rgba(216,107,0,.35);
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--orange-d); }
.btn.green { background: linear-gradient(#55dd5a, var(--green)); box-shadow: inset 0 -5px 0 var(--green-d), 0 6px 16px rgba(31,147,36,.3); }
.btn.white { background: #fff; color: #444; box-shadow: inset 0 -4px 0 #dde3ea, 0 6px 16px rgba(0,0,0,.1); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn.lg { height: 64px; padding: 0 34px; font-size: 24px; border-radius: 18px; }

/* ---------- topo ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font: 26px var(--font-game); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.nav.solid .logo { color: var(--ink); text-shadow: none; }
.logo .egg { width: 34px; height: 42px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: radial-gradient(circle at 35% 30%, #fff, #ffe6a8 60%, #f2c25a); box-shadow: inset -4px -5px 0 rgba(0,0,0,.08), 0 3px 0 rgba(0,0,0,.12); position: relative; }
.logo .egg::after { content: ''; position: absolute; left: 9px; top: 8px; width: 8px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.9); }
.nav-links { display: flex; gap: 22px; margin-left: 18px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.nav.solid .nav-links { color: #3a3a3a; text-shadow: none; }
.nav-links a:hover { opacity: .8; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { height: 42px; padding: 0 10px; border-radius: 12px; border: 0; font: 800 14px var(--font); background: rgba(255,255,255,.85); color: #333; cursor: pointer; }
.nav .login { font-weight: 900; color: #fff; padding: 0 8px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.nav.solid .login { color: #333; text-shadow: none; }
@media (max-width: 900px) { .nav-links, .nav .login { display: none; } .nav .wrap { gap: 10px; } .logo { font-size: 22px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; padding: 110px 0 140px; overflow: hidden;
  background: linear-gradient(180deg, #5fbfff 0%, #8fd3ff 45%, #c9ecff 100%);
}
.cloud { position: absolute; background: #fff; border-radius: 100px; opacity: .9; filter: drop-shadow(0 6px 0 rgba(0,60,120,.08)); animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 12%; top: -70%; } .cloud::after { width: 40%; height: 130%; right: 12%; top: -50%; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.badge { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.9); font-weight: 900; font-size: 14px; color: #8a5a00; box-shadow: 0 4px 0 rgba(0,0,0,.06); }
.hero h1 { margin: 18px 0 16px; font: clamp(44px, 6vw, 76px)/1 var(--font-game); color: #fff; text-shadow: 0 5px 0 #2a7ad6, 0 10px 24px rgba(0,50,120,.25); letter-spacing: .5px; }
.hero h1 span { color: #ffd23f; text-shadow: 0 5px 0 #d86b00, 0 10px 24px rgba(120,60,0,.25); }
.hero p.sub { margin: 0 0 26px; max-width: 520px; font-size: 19px; font-weight: 700; color: #0e3a66; line-height: 1.5; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .ctas a.alt { font-weight: 900; color: #0e3a66; text-decoration: underline; text-underline-offset: 4px; padding: 0 8px; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.stage canvas { width: 100%; height: 100%; display: block; cursor: pointer; touch-action: manipulation; }
.stage .tap { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 900; color: #444; box-shadow: 0 4px 0 rgba(0,0,0,.08); animation: bob 1.4s ease-in-out infinite; white-space: nowrap; }
@keyframes bob { 50% { transform: translate(-50%, -6px); } }
.stage .counter { position: absolute; right: 4%; top: 8%; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.95); font: 22px var(--font-game); color: #444; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.stage .switch { position: absolute; bottom: 6%; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 12px; }
.stage .switch button { width: 46px; height: 46px; border-radius: 50%; background: #fff; font: 22px var(--font-game); color: #555; box-shadow: inset 0 -4px 0 #dde3ea, 0 4px 10px rgba(0,0,0,.12); }
.stage .hen-name { min-width: 190px; text-align: center; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.stage .hen-name b { display: block; font: 18px var(--font-game); font-weight: 400; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 900 10px var(--font); letter-spacing: 1px; color: #1d1d1d; background: var(--rc, #ccc); box-shadow: 0 0 10px var(--rc, transparent); }
.pop { position: absolute; pointer-events: none; font: 24px var(--font-game); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); animation: popup 1s forwards; }
@keyframes popup { to { transform: translateY(-70px); opacity: 0; } }
/* morros de grama na base do hero */
.hills { position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; z-index: 1; }
@media (max-width: 900px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero .ctas { justify-content: center; }
  .stage { max-width: 420px; }
}

/* ---------- estatísticas ---------- */
.stats { background: var(--grass); position: relative; padding: 10px 0 40px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,.95); border-radius: 18px; padding: 18px; text-align: center; box-shadow: inset 0 -5px 0 rgba(0,0,0,.07); }
.stat b { display: block; font: 40px var(--font-game); color: var(--ink); }
.stat span { font-weight: 900; color: var(--muted); }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 32px; } }

/* ---------- seções ---------- */
section { position: relative; padding: 84px 0; }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title h2 { margin: 0 0 10px; font: clamp(32px, 4vw, 46px) var(--font-game); font-weight: 400; color: var(--ink); }
.sec-title p { margin: 0 auto; max-width: 620px; font-size: 18px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.sec-grass { background: linear-gradient(var(--grass) 0, #8fd654 100%); }
.sec-grass .sec-title h2 { color: #fff; text-shadow: 0 4px 0 var(--grass-d); } .sec-grass .sec-title p { color: #1f4d10; }
.sec-dirt { background: linear-gradient(#d7995a, var(--dirt)); }
.sec-dirt .sec-title h2 { color: #fff; text-shadow: 0 4px 0 #7a4a20; } .sec-dirt .sec-title p { color: #4a2a10; }
.sec-sky { background: linear-gradient(#c9ecff, #eaf7ff); }

/* passos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border-radius: 22px; padding: 26px 20px 22px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.06), 0 10px 24px rgba(0,60,0,.12); }
.step .n { position: absolute; top: -16px; left: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font: 20px var(--font-game); box-shadow: inset 0 -3px 0 var(--orange-d); }
.step .ic { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font: 22px var(--font-game); font-weight: 400; }
.step p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.45; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* coleção */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.filters button { height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.85); font-weight: 900; color: #555; border: 2px solid transparent; }
.filters button.on { background: #fff; border-color: var(--rc, var(--orange)); color: #222; box-shadow: 0 0 14px var(--rc, transparent); }
.collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.hen { position: relative; background: #fff; border-radius: 18px; padding: 10px 8px 12px; text-align: center; border-bottom: 5px solid var(--rc); box-shadow: 0 8px 18px rgba(80,40,0,.18); transition: transform .15s; }
.hen:hover { transform: translateY(-4px) rotate(-1deg); }
.hen .pic { width: 100%; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 22%, #fff), #f4f6f9 70%); display: grid; place-items: center; overflow: hidden; }
.hen .pic img { width: 100%; height: 100%; object-fit: contain; }
.hen b { display: block; margin: 8px 0 4px; font: 15px var(--font-game); font-weight: 400; line-height: 1.15; }
.hen .sup { position: absolute; top: 8px; right: 8px; font: 900 9px var(--font); padding: 2px 6px; border-radius: 6px; color: #2a0f4a; background: linear-gradient(90deg, #ffd23f, #ff9f1a); }
.hen.skeleton .pic { background: linear-gradient(90deg, #eef1f5, #f8fafc, #eef1f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ovos */
.eggs-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2vw, 22px); flex-wrap: wrap; }
.egg-item { text-align: center; }
.egg-item img { width: clamp(56px, 9vw, 96px); filter: drop-shadow(0 10px 8px rgba(0,0,0,.18)); animation: wobble 3s ease-in-out infinite; }
.egg-item:nth-child(2n) img { animation-delay: -.8s; } .egg-item:nth-child(3n) img { animation-delay: -1.6s; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
.egg-item span { display: block; margin-top: 6px; }

/* caixas */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.box-card.basic { background: linear-gradient(#f3f7ee, #e2ecd8); border-color: #b9cfa4; }
.basic .crate { background: linear-gradient(#c79a6b, #9a6c40); border-color: #e8d3b0; color: #fff6e0; box-shadow: 0 0 14px rgba(160,120,70,.35); }
.box-card { position: relative; border-radius: 26px; padding: 26px; background: linear-gradient(#fff7e6, #ffeccc); border: 3px solid #ffd27a; box-shadow: 0 14px 30px rgba(120,70,0,.18); overflow: hidden; }
.box-card.supreme { background: linear-gradient(135deg, #2a0f4a, #4a1a7a 55%, #2a0f4a); border-color: #ffd23f; color: #fff; }
.box-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.crate { width: 84px; height: 84px; flex: none; border-radius: 14px; display: grid; place-items: center; font: 56px var(--font-game); color: #ffd23f; background: linear-gradient(#a8693a, #7a4520); border: 4px solid #ffcc33; text-shadow: 0 3px 0 #7a4a00; box-shadow: 0 0 22px rgba(255,204,51,.6); animation: crate 2.2s ease-in-out infinite; }
.supreme .crate { background: linear-gradient(#ffd23f, #b07a00); border-color: #fff3b0; color: #fff; box-shadow: 0 0 30px rgba(255,120,255,.7); }
@keyframes crate { 50% { transform: rotate(-6deg) scale(1.06); } }
.box-head h3 { margin: 0; font: 28px var(--font-game); font-weight: 400; }
.supreme .box-head h3 { color: #ffd23f; }
.box-head p { margin: 4px 0 0; font-weight: 800; opacity: .8; }
.price { margin-left: auto; text-align: right; font: 30px var(--font-game); }
.price small { display: block; font: 900 11px var(--font); opacity: .7; }
.odds { display: grid; gap: 6px; }
.odd { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 10px; font-weight: 900; font-size: 13px; }
.odd .bar { height: 12px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; }
.supreme .odd .bar { background: rgba(255,255,255,.12); }
.odd .bar i { display: block; height: 100%; border-radius: 6px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.odd em { font-style: normal; text-align: right; }
@media (max-width: 860px) { .odd { grid-template-columns: 90px 1fr 50px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 20px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.05), 0 6px 14px rgba(0,60,120,.08); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font: 19px var(--font-game); display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--orange); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 16px; color: var(--muted); font-weight: 700; line-height: 1.5; }

/* chamada final + rodapé */
.final { text-align: center; padding: 90px 0 120px; background: linear-gradient(#7cc644, #4f9a2c); color: #fff; overflow: hidden; }
.final h2 { margin: 0 0 10px; font: clamp(34px, 5vw, 54px) var(--font-game); text-shadow: 0 5px 0 #2f6a18; }
.final p { margin: 0 0 28px; font-size: 19px; font-weight: 800; color: #eaffdb; }
.final .hens-line { display: flex; justify-content: center; gap: 4px; margin-top: 36px; }
.final .hens-line img { width: clamp(56px, 9vw, 92px); animation: hop 1.2s ease-in-out infinite; }
.final .hens-line img:nth-child(2n) { animation-delay: -.3s; } .final .hens-line img:nth-child(3n) { animation-delay: -.6s; }
@keyframes hop { 50% { transform: translateY(-12px); } }
footer { background: #3b2417; color: #e8d6c9; padding: 30px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-weight: 700; }
footer .logo { font-size: 20px; }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ============ LOGIN / CADASTRO ============ */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 90px 16px 40px; background: linear-gradient(180deg, #5fbfff 0%, #8fd3ff 50%, #7cc644 50%, #6bb83a 100%); position: relative; overflow: hidden; }
.auth-top { position: absolute; top: 0; left: 0; right: 0; }
.auth-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.auth-top .back { font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.auth-card { position: relative; z-index: 2; width: 100%; max-width: 440px; background: #fff; border-radius: 26px; padding: 28px 26px 24px; box-shadow: 0 20px 50px rgba(0,50,100,.25), inset 0 -6px 0 rgba(0,0,0,.05); }
.auth-hen { width: 120px; height: 120px; margin: -88px auto 4px; border-radius: 50%; background: radial-gradient(#fff, #e9f6ff); box-shadow: 0 8px 0 rgba(0,0,0,.06), 0 0 0 6px #fff; display: grid; place-items: center; }
.auth-hen img { width: 112px; height: 112px; }
.auth-card h1 { margin: 6px 0 4px; text-align: center; font: 30px var(--font-game); font-weight: 400; }
.auth-card .lead { margin: 0 0 18px; text-align: center; font-weight: 700; color: var(--muted); }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #f1f3f6; margin-bottom: 16px; }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 900; color: #777; }
.tabs a.on { background: #fff; color: #222; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: flex; justify-content: space-between; font-weight: 900; font-size: 13px; color: #555; margin-bottom: 5px; }
.field small { font-weight: 700; color: #9aa1ab; }
.input { position: relative; }
.input input { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 2px solid #e1e5ec; font: 700 16px var(--font); background: #fbfcfe; transition: border-color .15s, box-shadow .15s; }
.input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,167,255,.15); background: #fff; }
.input .eye { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: #f1f3f6; font-weight: 900; font-size: 12px; color: #666; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-weight: 700; font-size: 14px; color: #555; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); }
.auth-card .btn { width: 100%; }
.auth-err { min-height: 20px; margin: 0 0 10px; text-align: center; font-weight: 900; color: #e53935; }
.auth-ok { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #e8f8e1; border: 2px solid #9ad97a; color: #2f6b16; font-weight: 800; font-size: 14px; text-align: center; }
.auth-ok[hidden], .auth-card .tabs[hidden], .auth-card form[hidden] { display: none; }
.cf-ts { display: flex; justify-content: center; margin: 4px 0 6px; }
.cf-ts:empty { margin: 0; }
.mail-box { margin: 4px 0 14px; padding: 18px 16px; border-radius: 16px; background: #eef7ff; border: 2px dashed #9fd0ff; text-align: center; font-size: 44px; line-height: 1; }
.mail-box p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; font-weight: 800; color: #35506b; word-break: break-word; }
.forgot-line { margin: -4px 0 8px; text-align: right; font-weight: 800; font-size: 14px; }
.forgot-line a { color: var(--blue-d); }
.switch-line { margin: 14px 0 0; text-align: center; font-weight: 800; color: var(--muted); }
.switch-line a { color: var(--blue-d); }
.auth-deco { position: absolute; bottom: 4%; z-index: 1; width: 120px; opacity: .95; animation: hop 1.6s ease-in-out infinite; }
@media (max-width: 700px) { .auth-deco { display: none; } }
.logo { white-space: nowrap; }
@media (max-width: 480px) { .auth-top .back { display: none; } .auth-top .logo { font-size: 22px; } .auth-page { padding-top: 110px; } }
