/* Escena y controles de la misión. Ilustraciones SVG locales. */
.refuge-scene { position: relative; isolation: isolate; overflow: hidden; border: 3px solid white; border-radius: 22px; aspect-ratio: 400/260; background: #64c6c9; box-shadow: 0 5px 0 #b9d8cf; }
.refuge-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.refuge-water-label { position: absolute; top: 10px; left: 10px; background: #fff9de; padding: 5px 9px; border-radius: 20px; font-size: .75rem; font-weight: 900; }
.refuge-shelter { position: absolute; left: 37%; bottom: 10%; display: grid; justify-items: center; color: #fff; text-shadow: 0 2px 3px #104f54; font-size: .8rem; }
.refuge-shelter > span:first-child { font-size: 4rem; line-height: 1; }
.refuge-fish { position: absolute; width: 33%; left: 18%; top: 36%; animation: refuge-swim 3s ease-in-out infinite; filter: drop-shadow(0 5px 2px #0d636944); }
.refuge-fish svg { width: 100%; display: block; }
.refuge-pulse { position: absolute; right: 9%; top: 26%; font-size: 4rem; color: #f5df96; text-shadow: 0 2px 0 #8d681a; animation: refuge-pulse 2s ease-in-out infinite; }
.refuge-empty { position: absolute; top: 42%; left: 15%; padding: 8px 12px; border: 2px dashed #ffffffaa; border-radius: 20px; background: #e4fffaab; font-size: .8rem; }
.refuge-reveal { position: absolute; right: 8px; top: 37%; background: #fff6cd; border: 2px solid #c59424; padding: 8px; border-radius: 14px; font-size: .78rem; font-weight: 900; }
.effect-protect .refuge-shelter { animation: refuge-guard .65s ease-out; }
.effect-rest .refuge-fish { animation: refuge-heal .7s ease-out; }
.is-restored .refuge-shelter { color: #fff2a5; }
.is-restored { border-color: #e6c14a; }
.refuge-goal { padding: 14px 0 4px; text-align: center; }
.refuge-goal p { margin: 5px 0 10px; }
.refuge-label { font-size: 1rem; margin: 18px 0 10px; }
.refuge-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.refuge-choice { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 10px 7px; border: 2px solid #badbd0; border-radius: 16px; background: #ffffffc9; color: var(--ink); font: inherit; cursor: pointer; }
.refuge-choice svg { width: 100%; max-width: 125px; height: 65px; }
.refuge-choice strong { font-size: .86rem; }
.refuge-choice span { font-size: .75rem; }
.refuge-choice[aria-pressed="true"], .refuge-tool[aria-pressed="true"] { border-color: #177366; background: #d5f5dc; box-shadow: inset 0 0 0 1px #177366; }
.refuge-traits { line-height: 1.35; }
.refuge-affinity { background: #fff1bb; padding: 10px; border-radius: 12px; font-size: .85rem; }
.refuge-tool { width: 100%; min-height: 48px; border: 2px solid #badbd0; border-radius: 14px; background: white; color: var(--ink); font: inherit; cursor: pointer; padding: 10px; }
.refuge-tool span { font-size: .8rem; margin-left: 8px; }
.refuge-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.refuge-meter > div { display: flex; justify-content: space-between; gap: 5px; font-size: .78rem; }
.refuge-meter meter { width: 100%; height: 18px; accent-color: #198d78; }
.refuge-turns { display: flex; justify-content: center; gap: 12px; margin: 12px 0; }
.refuge-turns span { border: 2px solid #8cbeb1; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: .8rem; }
.refuge-turns .completed { background: #216f60; color: white; }
.refuge-feedback { min-height: 50px; background: #fff4cc; padding: 10px; border-radius: 12px; font-size: .83rem; }
.refuge-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.refuge-actions button { display: flex; flex-direction: column; align-items: center; padding: 8px 3px; font-size: .75rem; gap: 4px; min-width: 0; }
.refuge-actions button > span { font-size: 1.6rem; }
.refuge-actions small { font-size: .65rem; font-weight: 400; }
.phone[data-screen="survey"] button:disabled { opacity: .45; cursor: default; box-shadow: none; }
.refuge-rules { margin: 18px 0 0; font-size: .78rem; color: var(--muted); }
.refuge-rules summary { cursor: pointer; padding: 8px 0; }
.phone[data-screen="survey"] button:focus-visible { outline: 3px solid #b36709; outline-offset: 3px; }
@keyframes refuge-swim { 50% { transform: translate(8px, -4px); } }
@keyframes refuge-pulse { 50% { transform: translateX(-12px); opacity: .55; } }
@keyframes refuge-guard { 50% { transform: scale(1.2); color: #fff09c; } }
@keyframes refuge-heal { 50% { filter: drop-shadow(0 0 12px #eeffac); transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .refuge-scene * { animation: none !important; transition: none !important; } }

/* Amenaza visible y resolución paso a paso. */
.refuge-objective { display: grid; gap: 3px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: #174e52; color: white; }
.refuge-objective span { font-size: .78rem; }
.refuge-enemy { position: absolute; top: 27%; right: 3%; width: 32%; text-align: center; animation: refuge-swim 3s ease-in-out infinite; }
.refuge-enemy svg { display: block; width: 100%; }
.refuge-enemy span { display: block; color: white; background: #403651; border-radius: 9px; font-size: .65rem; padding: 3px; }
.refuge-fish { left: 12%; top: 35%; }
.refuge-reveal { z-index: 2; top: auto; bottom: 3%; right: 3%; font-size: .7rem; }
.refuge-intent { display: grid; gap: 3px; padding: 10px; margin-bottom: 10px; border-left: 4px solid #766087; background: #ede6f3; border-radius: 8px; }
.refuge-intent span, .refuge-stage-label { font-size: .78rem; }
.effect-protect .refuge-fish { animation: refuge-interpose .7s ease-out forwards; }
.effect-protect .refuge-shelter { border: 3px solid #fff0a5; border-radius: 50%; padding: 4px 12px; background: #fff5bc44; }
.effect-attack .refuge-enemy { animation: refuge-strike .8s ease-in-out; }
.effect-attack .refuge-shelter, .effect-attack .refuge-fish { animation: refuge-hit .8s ease-out; }
@keyframes refuge-interpose { to { transform: translate(40px, 12px); } }
@keyframes refuge-strike { 45% { transform: translate(-55px, 20px) scale(1.12); } }
@keyframes refuge-hit { 40%, 60% { opacity: .4; transform: translateX(-6px); } 50%, 70% { opacity: 1; transform: translateX(6px); } }
.refuge-progress { text-align: center; font-size: .8rem; font-weight: 900; margin: 12px 0 0; }
