/* A Fase 2 usa o mesmo mundo e a mesma câmera da exploração. */
.garden.is-phase-two > :is(.garden-path,.pond,.garden-glow,.decor),
#f2-mundo[hidden], #f2-inventario[hidden], #f2-toque[hidden], #f2-aviso[hidden],
.f2-fruto[hidden], #snake[hidden] { display: none; }
.garden.is-phase-two :is(#landscape,#exploration-world,.map-card) { display:block; }
.garden.is-phase-two .location { display:flex; }
.garden.is-phase-two :is(.game-status,.map-card) { pointer-events:auto; }
#f2-mundo, #f2-plantas, #f2-objetos { display:contents; }
.f2-fruto,.f2-obj { position:absolute; pointer-events:none; background-repeat:no-repeat; background-size:contain; background-position:center; }
.f2-fruto { width:42px; height:40px; transform:translate(-50%,-50%); filter:drop-shadow(0 1px 1px #43643f); }
/* O engaço do segundo cacho parte do alto do pseudocaule. */
#f2-plantas [data-planta="banana"] .desenho-planta::after {
  content:''; position:absolute; left:calc(50% - 38px); bottom:81px; width:38px; height:42px;
  border:solid #738448; border-width:3px 0 0 3px; border-radius:90% 0 0 12%;
  transform:rotate(5deg);
}
#f2-casal-chao,#f2-cao,#snake { position:absolute; width:0; height:0; pointer-events:none; }
#f2-casal-chao .f2-sombra { position:absolute; width:84px; height:13px; left:-42px; top:-7px; border-radius:50%; background:#355a4845; filter:blur(2px); scale:var(--sombra,1); }
#couple { top:0; left:0; transform:translate(-50%,calc(-100% + 10px + var(--salto,0px))); transform-origin:center bottom; }
#couple .adam-shadow { display:none; }
#couple .adam-mouth { position:absolute; left:8px; top:17px; width:9px; height:5px; border-bottom:1.7px solid #955b45; border-radius:20% 20% 65% 65%; }
/* O laço faz parte do penteado e acompanha todos os movimentos da Eva. */
.eve-laco {
  position:absolute; z-index:4; left:40px; top:0; width:6px; height:7px;
  transform:rotate(14deg); border:1px solid #95415e; border-radius:45%;
  background:linear-gradient(120deg,#ffc5d1,#e9779b);
}
.eve-laco::before,.eve-laco::after {
  content:''; position:absolute; z-index:-1; top:-3px; width:9px; height:10px;
  border:1px solid #a45169; background:linear-gradient(145deg,#ffd3de,#ee91af 65%,#d5688d);
}
.eve-laco::before { right:100%; border-radius:55% 80% 32% 58%; transform:rotate(-13deg); }
.eve-laco::after { left:100%; border-radius:80% 55% 58% 32%; transform:rotate(13deg); }
.eve-figure .adam-head::after {
  content:''; position:absolute; top:15px; left:3px; width:4px; height:3px;
  border-radius:50%; background:#df8c7c; box-shadow:13px 0 #df8c7c;
}
#couple .adam-leg { transform-origin:50% 10%; }
#couple[data-modo="walking"] .adam-leg { animation:eden-step .39s ease-in-out infinite alternate; }
#couple[data-modo="walking"] .leg-right { animation-direction:alternate-reverse; }
#couple[data-modo="walking"] { animation:eden-stride .39s ease-in-out infinite alternate; }
#couple:is([data-modo="jumping"],[data-modo="flying"]) .leg-left { transform:translateY(-3px) rotate(26deg); }
#couple:is([data-modo="jumping"],[data-modo="flying"]) .leg-right { transform:translateY(-3px) rotate(-24deg); }
#couple[data-modo="swimming"] { clip-path:inset(0 0 30px); transform:translate(-50%,calc(-100% + 35px)); }
#couple[data-modo="swimming"] .adam-figure { animation:eden-stride .55s ease-in-out infinite alternate; }
#couple.is-hurt .person { animation:hurt-flash .18s steps(2,jump-none) infinite; }
#f2-cao canvas { position:absolute; left:-44px; top:-57px; width:88px; height:61px; }
#f2-cao.latindo::after { content:'Au!'; position:absolute; bottom:43px; left:13px; color:#5d4932; background:#fff7d9; border-radius:10px 10px 10px 2px; padding:2px 7px; font-size:13px; font-weight:800; }
#snake canvas { position:absolute; left:-51px; top:calc(-52px + var(--no-tronco,0px)); width:102px; height:65px; }
#snake.ferida canvas { animation:snake-flash .14s steps(2,end) infinite; }
#f2-vida { position:absolute; left:-33px; top:calc(-58px + var(--no-tronco,0px)); width:66px; height:13px; background:#34483b; border:1.6px solid #fff5d4; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px #304c3f66; }
#snake-energy-fill { display:block; height:100%; background:linear-gradient(90deg,#578449,#95b852); transition:width .13s; }
#f2-vida-num { position:absolute; inset:0; text-align:center; color:white; font:bold 10px/10px system-ui,sans-serif; text-shadow:0 1px 2px #25492b; }
.f2-estrelas { display:none; position:absolute; bottom:62px; left:-24px; width:48px; text-align:center; color:#ffe280; text-shadow:0 1px 2px #6c4e25; }
#snake.tonta .f2-estrelas { display:block; animation:f2-tontura .45s ease-in-out infinite alternate; }
@keyframes f2-tontura { to { transform:translate(4px,-3px) rotate(13deg); } }
#f2-inventario { grid-column:1 / -1; display:flex; align-items:center; gap:10px; padding-top:5px; margin-top:2px; border-top:1px solid #d9e0c7; font-size:.72rem; }
.f2-item,.f2-proxima { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.f2-item b,.f2-proxima b { color:#294a33; }
.f2-icone { display:inline-block; width:22px; height:22px; background-size:contain; background-repeat:no-repeat; background-position:center; }
.f2-nuvem-icone { display:inline-block; position:relative; width:19px; height:10px; margin:2px 2px 0 0; background:#91b662; border:1px solid #5d873c; border-radius:70% 60% 57% 70%; }
.f2-nuvem-icone::before { content:''; position:absolute; left:3px; top:-5px; width:9px; height:8px; border-radius:50%; background:#9dbd70; border-top:1px solid #5d873c; }
.f2-proxima { color:#65765b; padding-left:8px; border-left:1px solid #d9e0c7; }
/* A casca tem o mesmo diâmetro nos dois eixos, inclusive no placar do celular. */
[data-icone="coco"] { display:inline-grid; grid-template:100% / 100%; place-items:center; }
[data-icone="coco"]::before {
  content:"";
  box-sizing:border-box;
  height:86%;
  aspect-ratio:1;
  border:1px solid #61422d;
  border-radius:50%;
  background:
    radial-gradient(circle at 37% 32%, #513427 0 5%, transparent 6.5%),
    radial-gradient(circle at 55% 38%, #543528 0 5%, transparent 6.5%),
    radial-gradient(circle at 41% 50%, #4c3025 0 5%, transparent 6.5%),
    radial-gradient(circle at 32% 26%, #c99d6a, #a5764c 48%, #775035 78%, #65412d);
}
.map-legend .marca-serpente::before { background:#684278; }
.f2-obj { transform:translate(-50%,-50%); }
.f2-tiro,.f2-queda,.f2-toque-fruta { width:36px; height:35px; }
.f2-queda { margin-top:-23px; }
.f2-tiro { margin-top:var(--altura-tiro,-23px); filter:drop-shadow(0 3px 2px #37543e4d); }
.f2-toque-fruta { animation:f2-amassar .14s ease-out both; }
.f2-toque-fruta[data-icone="coco"] { animation-name:f2-impacto-coco; }
@keyframes f2-impacto-coco { to { scale:.85; opacity:0; } }
@keyframes f2-amassar { 40% { scale:1.16 .8; } to { scale:.82 .68; opacity:0; } }
.f2-queda { animation:f2-cair .45s ease-in both; }
@keyframes f2-cair { to { translate:0 21px; rotate:38deg; opacity:.12; } }
.f2-pontos,.f2-perda { font-size:20px; font-weight:850; color:#795328; border-radius:15px; background:#fff3bf; padding:2px 6px; white-space:nowrap; animation:f2-pontos .73s ease-out both; }
.f2-perda { color:#913f35; background:#fbe1c9; }
@keyframes f2-pontos { to { translate:0 -31px; opacity:0; } }
.f2-casca { width:36px; height:18px; border-radius:0 0 75% 70%; border:solid #ad7e2e; border-width:0 1px 2px; background:linear-gradient(15deg,#eab847,#ffe596); clip-path:polygon(0 21%,35% 58%,49% 7%,54% 0,59% 51%,100% 20%,82% 77%,63% 84%,51% 63%,41% 97%,21% 83%); }
.f2-fumaca { filter:drop-shadow(0 1px 1px #61803c); width:112px; height:58px; margin-top:-18px; border-radius:50%; background:radial-gradient(ellipse at 32% 56%,#a9c862cc 0 25%,transparent 45%),radial-gradient(ellipse at 61% 34%,#83ab58ca 0 22%,transparent 43%),radial-gradient(ellipse at 70% 67%,#90be65d5 0 21%,transparent 41%); animation:f2-fumaca 3s ease-out both; }
.f2-fumaca::after { content:''; position:absolute; top:3px; right:16px; width:10px; height:8px; border:1px solid #8ba65c; border-radius:50%; background:#c2d982; box-shadow:-54px 9px 0 -1px #bad47d, -46px 0 0 -2px #bbd87b; }
@keyframes f2-fumaca { 0% {scale:.5;opacity:.45} 12%,77% {scale:1;opacity:1} 100% {scale:1.14;opacity:0} }
#f2-aviso { position:absolute; z-index:7; bottom:14px; left:50%; transform:translateX(-50%); max-width:65%; width:max-content; padding:6px 12px; text-align:center; border:1px solid #fff8dd; border-radius:12px; background:#fff9e8f2; color:#38563d; box-shadow:0 2px 10px #31553630; font-size:.78rem; font-weight:700; pointer-events:none; }
#f2-toque { display:none; }
@media (max-width:760px),(pointer:coarse) {
  .garden.is-phase-two { min-height:300px; height:clamp(300px,64svh,560px); }
  #f2-inventario { gap:3px 8px; flex-wrap:wrap; font-size:.67rem; }
  .f2-proxima { flex-basis:100%; padding:0; border:0; }
  .f2-icone { width:18px; height:17px; }
  .garden.is-phase-two .location { display:none; }
  #f2-toque { position:absolute; z-index:8; bottom:7px; left:7px; right:7px; display:flex; align-items:end; justify-content:space-between; pointer-events:none; gap:8px; }
  #f2-toque .touch-controls { flex:0 0 auto; order:0; margin:0; display:flex; flex-direction:column; align-items:center; gap:3px; }
  #f2-toque .touch-row { display:flex; gap:3px; }
  #f2-toque .f2-acoes { order:1; display:grid; grid-template-columns:repeat(2,1fr); gap:4px; }
  #f2-toque button { min-width:44px; height:44px; padding:4px 8px; border:1px solid #aaba97; border-radius:10px; background:#fffbeaf2; color:#36563b; font-size:.75rem; font-weight:750; box-shadow:0 2px 5px #32523b24; pointer-events:auto; touch-action:none; user-select:none; -webkit-user-select:none; }
  #f2-toque .f2-acoes button { min-width:54px; }
  .garden.is-phase-two .map-heading { font-size:.6rem; }
  .garden.is-phase-two .map-legend { gap:5px; font-size:.55rem; white-space:nowrap; }
  #f2-toque button:active { background:#d5e7b7; }
  #f2-aviso { bottom:105px; width:max-content; max-width:92%; font-size:.7rem; }
}
@media(prefers-reduced-motion:reduce) {
  #couple,#couple .adam-leg,#couple .person,#snake canvas,.f2-estrelas { animation-duration:1s; }
  .f2-pontos,.f2-perda,.f2-fumaca { animation:none; }
}
