/* v2.0.24 - Presentazione del percorso, sempre dentro la demo originale. */
#forestScreen .forest-world { position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;transform-origin:50% 50%;will-change:transform; }
#forestScreen .forest-camera { position:absolute;inset:-1.2%;transform-origin:50% 48%; }
#forestScreen .forest-world .bg-video,
#forestScreen .forest-world .bg-fallback { z-index:0;object-position:50% 50%;transform:none!important; }
#forestScreen .forest-world .bg-fallback { opacity:1; }
#forestScreen #forestVideo { z-index:1;opacity:0;pointer-events:none; }
#forestScreen.journey-video-ready #forestVideo { opacity:1; }
#forestScreen .forest-atmosphere { position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(9,39,35,.22),transparent 29%,transparent 66%,rgba(8,35,29,.18));pointer-events:none; }
#forestScreen.is-stepping .forest-camera { animation:forestForwardStep .58s ease-in-out both; }
#forestScreen.journey-suspended * { animation-play-state:paused!important; }
@keyframes forestForwardStep { 0%,100%{transform:translateY(0) scale(1)} 38%{transform:translateY(.32%) scale(1.006)} 70%{transform:translateY(-.10%) scale(1.002)} }

/* Il sentiero centrale rimane leggibile: il Companion originale resta a destra. */
#forestScreen .main-dog { right:clamp(16px,5vw,90px);bottom:calc(90px + var(--safe-bottom));width:min(29vw,310px);height:min(43svh,400px); }
#forestScreen .main-dog img { object-position:center bottom;filter:drop-shadow(0 12px 20px rgba(13,35,25,.27)); }
#forestScreen.is-stepping .main-dog[data-journey-sway="true"] { animation:companionSmallStep .58s ease-in-out; }
@keyframes companionSmallStep { 0%,100%{translate:0 0} 35%{translate:0 -3px} 70%{translate:0 1px} }

#forestScreen .forest-progress-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
#forestScreen #forestStepCount { color:#3b685f;white-space:nowrap;font-size:12px;font-weight:850; }
#forestScreen .forest-exploration { padding:9px 13px;background:rgba(248,255,249,.94); }
#forestScreen #forestProgressLabel { font-size:13px; }
#forestScreen #forestProgressBar { transition:width .56s ease-out;background:linear-gradient(90deg,#13b49d,#b5dd88); }
#forestScreen .currency-hud { background:rgba(244,255,251,.91);border-color:rgba(226,255,241,.8);box-shadow:0 6px 22px rgba(5,38,30,.14); }
#forestScreen .currency-pill { transition:background-color .18s ease,box-shadow .18s ease; }
#forestScreen .currency-pill.is-collected { animation:resourceReceived .62s ease-out; }
@keyframes resourceReceived { 0%,100%{background-color:transparent;box-shadow:none} 35%{background-color:rgba(207,249,180,.72);box-shadow:0 0 18px rgba(211,245,174,.4)} }
#forestScreen .currency-drop-layer { left:49%;right:auto;bottom:calc(28svh + var(--safe-bottom));width:130px;height:130px;transform:translateX(-50%); }
#forestScreen .currency-drop strong { font-size:14px;background:rgba(251,255,241,.96); }
#forestScreen .currency-drop img { width:34px;height:34px; }

#forestScreen .forest-step-prompt { position:absolute;z-index:19;left:50%;bottom:calc(113px + var(--safe-bottom));transform:translateX(-50%);display:grid;justify-items:center;gap:3px;width:max-content;max-width:66%;padding:10px 17px;border-radius:20px;background:rgba(11,47,40,.78);border:1px solid rgba(231,255,218,.35);box-shadow:0 8px 28px rgba(12,42,30,.12);color:#faffeb;pointer-events:none;text-align:center; }
#forestScreen .forest-step-prompt strong { font-size:14px;font-weight:850;line-height:1.3; }
#forestScreen .forest-step-prompt small { font-size:12px;line-height:1.35;color:#d8eadc; }
#forestScreen .forest-click-ring { position:absolute;z-index:6;left:50%;top:65%;width:76px;height:24px;margin:-12px 0 0 -38px;border:2px solid rgba(248,255,210,.94);border-radius:50%;opacity:0;pointer-events:none;box-shadow:0 0 15px rgba(215,255,166,.44),inset 0 0 12px rgba(214,255,181,.2); }
#forestScreen.is-stepping .forest-click-ring { animation:forestGroundPulse .7s ease-out both; }
@keyframes forestGroundPulse { 0%{opacity:.85;transform:scale(.6)} 70%{opacity:.45} 100%{opacity:0;transform:scale(1.8) translateY(15px)} }
#forestScreen .forest-tap-area { touch-action:manipulation; }
#forestScreen .forest-tap-area:disabled { cursor:wait; }
#forestScreen .forest-step-prompt[data-mode="reading"] { background:rgba(11,47,40,.62); }
#forestScreen .forest-step-prompt[data-mode="moving"] small { color:#eaffb9; }
#forestScreen .forest-step-prompt[data-mode="done"] { border-color:#d2ef9d; }

#forestScreen .journey-bag-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0; }
#forestScreen .journey-bag-grid article { display:flex;align-items:center;gap:12px;padding:16px 12px;border:1px solid #d9eee2;border-radius:18px;background:linear-gradient(140deg,#faffed,#e8f7f1); }
#forestScreen .journey-bag-grid img { width:48px;height:48px;object-fit:contain; }
#forestScreen .journey-bag-grid strong { display:block;font-size:25px;color:#215c51;line-height:1.1; }
#forestScreen .journey-bag-grid span { display:block;font-size:12px;margin-top:4px;color:#527267; }
#forestScreen .journey-bag-progress { display:flex;flex-wrap:wrap;gap:8px; }
#forestScreen .journey-bag-progress span { background:#edf4ef;padding:8px 10px;border-radius:12px;font-size:12px;color:#3d5e51; }

@media(max-width:700px) {
  #forestScreen .main-dog { right:2px;bottom:calc(78px + var(--safe-bottom));width:min(41vw,230px);height:min(32svh,290px); }
  #forestScreen .forest-step-prompt { left:12px;transform:none;bottom:calc(90px + var(--safe-bottom));max-width:55%;padding:9px 11px;text-align:left;justify-items:start;border-radius:15px; }
  #forestScreen .forest-step-prompt strong { font-size:12px; }
  #forestScreen .forest-step-prompt small { font-size:11px; }
  #forestScreen .forest-exploration { padding:7px 9px; }
  #forestScreen #forestProgressLabel,#forestScreen #forestStepCount { font-size:11px; }
  #forestScreen .currency-drop-layer { left:44%;bottom:calc(25svh + var(--safe-bottom)); }
  #forestScreen .currency-drop img { width:29px;height:29px; }
  #forestScreen .currency-drop strong { font-size:12px; }
}
@media(max-height:580px) and (min-width:701px) {
  #forestScreen .main-dog { width:20vw;height:30svh;bottom:90px;right:12px; }
  #forestScreen .forest-step-prompt { left:16px;transform:none;max-width:40%;bottom:95px;padding:7px 12px; }
}
@media(prefers-reduced-motion:reduce) {
  #forestScreen .forest-camera,#forestScreen .main-dog,#forestScreen .forest-click-ring { animation:none!important; }
  #forestScreen #forestProgressBar { transition:none; }
}

/* v2.0.25 — Foglia un poco più riconoscibile e tocco più agevole. */
#forestScreen #forestEasterEgg {
  width:40px!important;height:40px!important;margin-left:-20px!important;margin-top:-20px!important;
}
#forestScreen #forestEasterEgg::before {
  width:12px!important;height:8px!important;
  background:linear-gradient(135deg,#d1bd78,#839750)!important;
  border:1px solid rgba(69,87,43,.50)!important;
  box-shadow:0 1px 2px rgba(28,48,20,.30)!important;
  mix-blend-mode:normal!important;filter:saturate(.82)!important;
}
#forestScreen #forestEasterEgg::after {
  width:7px!important;mix-blend-mode:normal!important;background:rgba(73,90,40,.78)!important;
}
#forestScreen #forestEasterEgg.is-visible { opacity:.36!important; }
#forestScreen #forestEasterEgg.is-visible:hover,
#forestScreen #forestEasterEgg.is-visible:focus-visible { opacity:.72!important; }
#forestScreen .fullscreen-control { margin:14px 0; }
#forestScreen .fullscreen-control button { width:100%; }
@media(max-width:700px),(pointer:coarse) {
  #forestScreen #forestEasterEgg {
    width:56px!important;height:56px!important;margin-left:-28px!important;margin-top:-28px!important;
  }
  #forestScreen #forestEasterEgg::before { width:18px!important;height:11px!important; }
  #forestScreen #forestEasterEgg::after { width:10px!important; }
  #forestScreen #forestEasterEgg.is-visible { opacity:.48!important; }
  #forestScreen #forestEasterEgg.is-visible:focus-visible { opacity:.78!important; }
}

/* Stand final — feedback and collection confirmation. */
.next-event-question .single-choice-note { display:block;margin:2px 0 10px;color:var(--muted);font-size:12px; }
.gadget-confirmation { margin:18px 0;padding:20px 18px;border-radius:22px;background:linear-gradient(135deg,#e2fbf0,#f4f9d9);border:1px solid #b5dfc8;color:#244a3f;text-align:center; }
.gadget-confirmation-check { display:grid;place-items:center;width:52px;height:52px;margin:0 auto 12px;border-radius:50%;background:#129c83;color:#fff;font-size:28px;font-weight:900; }
.gadget-confirmation strong { display:block;font-size:18px;line-height:1.3; }
.gadget-confirmation p { margin:10px 0 0;font-size:14px;line-height:1.55; }
@media(max-width:480px) { .gadget-confirmation { padding:16px 12px;margin:14px 0; }.gadget-confirmation strong { font-size:16px; } }
